CPosition2dComp.h
Go to the documentation of this file.
1 #ifndef i2d_CPosition2dComp_included
2 #define i2d_CPosition2dComp_included
3 
4 
5 // ACF includes
7 #include <i2d/CPosition2d.h>
8 
9 
10 namespace i2d
11 {
12 
13 
18 class CPosition2dComp: public TObject2dCompWrap<CPosition2d>
19 {
20 public:
22 
23  I_BEGIN_COMPONENT(CPosition2dComp);
24  I_REGISTER_INTERFACE(i2d::CPosition2d);
25  I_ASSIGN(m_xAttrPtr, "X", "X-Position", true, 0);
26  I_ASSIGN(m_yAttrPtr, "Y", "Y-Position", true, 0);
27  I_END_COMPONENT;
28 
29 protected:
30  // reimplemented (icomp::CComponentBase)
31  virtual void OnComponentCreated();
32 
33 private:
34  I_ATTR(double, m_xAttrPtr);
35  I_ATTR(double, m_yAttrPtr);
36 };
37 
38 
39 } // namespace i2d
40 
41 
42 #endif // !i2d_CPosition2dComp_included
43 
44 
Implementation of a 2D-position as a component.
TObject2dCompWrap< CPosition2d > BaseClass
virtual void OnComponentCreated()
Base class for all components implementing 2D objects.
Definition of graphical point object.
Definition: CPosition2d.h:17

© 2007-2017 Witold Gantzke and Kirill Lepskiy