CCircleComp.h
Go to the documentation of this file.
1 #ifndef i2d_CCircleComp_included
2 #define i2d_CCircleComp_included
3 
4 
5 // ACF includes
7 #include <i2d/CCircle.h>
8 
9 
10 namespace i2d
11 {
12 
13 
18 class CCircleComp: public TObject2dCompWrap<CCircle>
19 {
20 public:
22 
23  I_BEGIN_COMPONENT(CCircleComp);
24  I_REGISTER_INTERFACE(CCircle);
25  I_REGISTER_INTERFACE(CPosition2d);
26  I_ASSIGN(m_centerXAttrPtr, "X", "X-Position of the circle center", true, 0);
27  I_ASSIGN(m_centerYAttrPtr, "Y", "Y-Position of the circle center", true, 0);
28  I_ASSIGN(m_radiusAttrPtr, "Radius", "Radius of the circle", 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_centerXAttrPtr);
37  I_ATTR(double, m_centerYAttrPtr);
38  I_ATTR(double, m_radiusAttrPtr);
39 };
40 
41 
42 } // namespace i2d
43 
44 
45 #endif // !i2d_CCircleComp_included
46 
47 
virtual void OnComponentCreated()
Implementation of a circle as a component.
Definition: CCircleComp.h:18
Definition of graphical circle object.
Definition: CCircle.h:21
TObject2dCompWrap< CCircle > BaseClass
Definition: CCircleComp.h:21
Base class for all components implementing 2D objects.
Definition of graphical point object.
Definition: CPosition2d.h:17

© 2007-2017 Witold Gantzke and Kirill Lepskiy