CTubePolylineComp.h
Go to the documentation of this file.
1 #ifndef i2d_CTubePolylineComp_included
2 #define i2d_CTubePolylineComp_included
3 
4 
5 // ACF includes
7 #include <i2d/CTubePolyline.h>
8 
9 
10 namespace i2d
11 {
12 
13 
17 class CTubePolylineComp: public TObject2dCompWrap<CTubePolyline>
18 {
19 public:
21 
22  I_BEGIN_COMPONENT(CTubePolylineComp);
23  I_REGISTER_INTERFACE(CTubePolyline);
24  I_ASSIGN(m_minTubeRangeValueAttrPtr, "DefaultLeftTubeRange", "Default left tube range value", false, -10);
25  I_ASSIGN(m_maxTubeRangeValueAttrPtr, "DefaultRightTubeRange", "Default right tube range value", false, 10);
26  I_ASSIGN(m_defaultAXPtr, "Default_A_X", "Default x coordinate for first line point", false, 40);
27  I_ASSIGN(m_defaultAYPtr, "Default_A_Y", "Default y coordinate for first line point", false, 40);
28  I_ASSIGN(m_defaultBXPtr, "Default_B_X", "Default x coordinate for second line point", false, 120);
29  I_ASSIGN(m_defaultBYPtr, "Default_B_Y", "Default y coordinate for second line point", false, 40);
30  I_END_COMPONENT;
31 
32  // reimplemented (i2d::CPolygon)
33  virtual bool InsertNode(const i2d::CVector2d& node);
34  virtual bool InsertNode(int index, const i2d::CVector2d& node);
35 
36 protected:
37  // reimplemented (i2d::CPolygon)
38  virtual void SetNodesCount(int count);
39 
40  // reimplemented (icomp::CComponentBase)
41  virtual void OnComponentCreated();
42 
43 private:
44  I_ATTR(double, m_minTubeRangeValueAttrPtr);
45  I_ATTR(double, m_maxTubeRangeValueAttrPtr);
46  I_ATTR(int, m_defaultAXPtr);
47  I_ATTR(int, m_defaultAYPtr);
48  I_ATTR(int, m_defaultBXPtr);
49  I_ATTR(int, m_defaultBYPtr);
50 
51  istd::CRange m_defaultTubeRange;
52 };
53 
54 
55 } // namespace i2d
56 
57 
58 #endif // !i2d_CTubePolylineComp_included
59 
60 
Component definition of the tube region based on a polyline.
Definition of tube region based on polyline.
Definition: CTubePolyline.h:17
TObject2dCompWrap< CTubePolyline > BaseClass
virtual void OnComponentCreated()
virtual void SetNodesCount(int count)
Set new nodes count.
Definition of position or mathematical vector on 2D plane.
Definition: CVector2d.h:28
virtual bool InsertNode(const i2d::CVector2d &node)
Insert a node at the end of node table.
Base class for all components implementing 2D objects.

© 2007-2017 Witold Gantzke and Kirill Lepskiy