CLine2dComp.h
Go to the documentation of this file.
1 #ifndef i2d_CLine2dComp_included
2 #define i2d_CLine2dComp_included
3 
4 
5 // ACF includes
7 #include <i2d/CLine2d.h>
8 
9 
10 namespace i2d
11 {
12 
13 
18 class CLine2dComp: public TObject2dCompWrap<CLine2d>
19 {
20 public:
22 
23  I_BEGIN_COMPONENT(CLine2dComp);
24  I_REGISTER_INTERFACE(CLine2d);
25  I_ASSIGN(m_x1AttrPtr, "X1", "X-Position of start line point", true, 0);
26  I_ASSIGN(m_y1AttrPtr, "Y1", "Y-Position of start line point", true, 0);
27  I_ASSIGN(m_x2AttrPtr, "X2", "X-Position of end line point", true, 0);
28  I_ASSIGN(m_y2AttrPtr, "Y2", "Y-Position of end line point", true, 0);
29  I_END_COMPONENT;
30 
31 protected:
32  // reimplemented (icomp::CComponentBase)
33  virtual void OnComponentCreated();
34 
35 private:
36  I_ATTR(double, m_x1AttrPtr);
37  I_ATTR(double, m_y1AttrPtr);
38  I_ATTR(double, m_x2AttrPtr);
39  I_ATTR(double, m_y2AttrPtr);
40 };
41 
42 
43 } // namespace i2d
44 
45 
46 #endif // !i2d_CLine2dComp_included
47 
48 
TObject2dCompWrap< CLine2d > BaseClass
Definition: CLine2dComp.h:21
virtual void OnComponentCreated()
Definition of a line in 2D-space.
Definition: CLine2d.h:24
Base class for all components implementing 2D objects.
Implementation of a 2D-line as a component.
Definition: CLine2dComp.h:18

© 2007-2017 Witold Gantzke and Kirill Lepskiy