CArcComp.h
Go to the documentation of this file.
1 #ifndef i2d_CArcComp_included
2 #define i2d_CArcComp_included
3 
4 
5 // ACF includes
7 #include <i2d/CArc.h>
8 
9 
10 namespace i2d
11 {
12 
13 
18 class CArcComp: public TObject2dCompWrap<CArc>
19 {
20 public:
22 
23  I_BEGIN_COMPONENT(CArcComp);
24  I_REGISTER_INTERFACE(CArc);
25  I_REGISTER_INTERFACE(CCircle);
26  I_REGISTER_INTERFACE(CPosition2d);
27  I_ASSIGN(m_centerXAttrPtr, "X", "X-Position of the arc center", true, 0);
28  I_ASSIGN(m_centerYAttrPtr, "Y", "Y-Position of the arc center", true, 0);
29  I_ASSIGN(m_radiusAttrPtr, "Radius", "Radius of the arc", true, 0);
30  I_ASSIGN(m_startAngleAttrPtr, "StartAngle", "Start angle of the arc", true, 0);
31  I_ASSIGN(m_endAngleAttrPtr, "EndAngle", "End angle of the arc", true, 0);
32  I_END_COMPONENT;
33 
34 protected:
35  // reimplemented (icomp::CComponentBase)
36  virtual void OnComponentCreated();
37 
38 private:
39  I_ATTR(double, m_centerXAttrPtr);
40  I_ATTR(double, m_centerYAttrPtr);
41  I_ATTR(double, m_radiusAttrPtr);
42  I_ATTR(double, m_startAngleAttrPtr);
43  I_ATTR(double, m_endAngleAttrPtr);
44 };
45 
46 
47 } // namespace i2d
48 
49 
50 #endif // !i2d_CArcComp_included
51 
52 
Implementation of a arc as a component.
Definition: CArcComp.h:18
TObject2dCompWrap< CArc > BaseClass
Definition: CArcComp.h:21
Definition of graphical circle object.
Definition: CCircle.h:21
Definition: CArc.h:13
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