ACF $AcfVersion:0$
CTubeNode.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// ACF includes
6#include <istd/TRange.h>
7
9
10#include <i2d/i2d.h>
11
12
13namespace i2d
14{
15
16
22{
23public:
25 CTubeNode(const CTubeNode& node);
26
30 const istd::CRange& GetTubeRange() const;
31
35 void SetTubeRange(const istd::CRange& tubeRange);
36
44 virtual void SetInterpolated(const CTubeNode& first, const CTubeNode& second, double alpha);
45
46 // reimplemented (qcom::ISerializable)
47 virtual bool Serialize(iser::IArchive& archive) override;
48
49private:
50 istd::CRange m_tubeRange;
51};
52
53
54} // namespace i2d
55
56
57
58
Polygon node used to define tube boundaries at the given point.
Definition CTubeNode.h:22
void SetTubeRange(const istd::CRange &tubeRange)
Set boundaries of the tube node.
virtual void SetInterpolated(const CTubeNode &first, const CTubeNode &second, double alpha)
Set this object to be linear interpolated between first and second parameter.
const istd::CRange & GetTubeRange() const
Get boundaries of the tube node.
CTubeNode(const CTubeNode &node)
virtual bool Serialize(iser::IArchive &archive) override
Load or store state of this object as a archive stream.
Represents an input/output persistence archive for object serialization.
Definition IArchive.h:164
Common class for all classes which objects can be archived or restored from archive.
Contains the 2D objects.
Definition CAffine2d.h:11