CTubeNode.h
Go to the documentation of this file.
1 #ifndef i2d_CTubeNode_included
2 #define i2d_CTubeNode_included
3 
4 
5 // ACF includes
6 #include <istd/TRange.h>
7 
8 #include <iser/ISerializable.h>
9 
10 #include <i2d/i2d.h>
11 
12 
13 namespace i2d
14 {
15 
16 
22 {
23 public:
24  CTubeNode();
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);
48 
49 private:
50  istd::CRange m_tubeRange;
51 };
52 
53 
54 } // namespace i2d
55 
56 
57 #endif // !i2d_CTubeNode_included
58 
59 
Common class for all classes which objects can be archived or restored from archive.
Definition: ISerializable.h:23
void SetTubeRange(const istd::CRange &tubeRange)
Set boundaries of the tube node.
virtual bool Serialize(iser::IArchive &archive)
Load or store state of this object as a archive stream.
Represent input/output persistence archive.
Definition: IArchive.h:30
Polygon node used to define tube boundaries at the given point.
Definition: CTubeNode.h:21
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.

© 2007-2017 Witold Gantzke and Kirill Lepskiy