COrientedCircleComp.h
Go to the documentation of this file.
1 #ifndef i2d_COrientedCircleComp_included
2 #define i2d_COrientedCircleComp_included
3 
4 
5 // ACF includes
7 #include <i2d/COrientedCircle.h>
8 
9 
10 namespace i2d
11 {
12 
13 
18 class COrientedCircleComp: public TObject2dCompWrap<COrientedCircle>
19 {
20 public:
22 
23  I_BEGIN_COMPONENT(COrientedCircleComp);
24  I_REGISTER_INTERFACE(COrientedCircle);
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_ASSIGN(m_isOrientedOutsideAttrPtr, "IsOrientedOutside", "Flag indicating that this circle is oriented to outside", true, false);
30  I_END_COMPONENT;
31 
32 protected:
33  // reimplemented (icomp::CComponentBase)
34  virtual void OnComponentCreated();
35 
36 private:
37  I_ATTR(double, m_centerXAttrPtr);
38  I_ATTR(double, m_centerYAttrPtr);
39  I_ATTR(double, m_radiusAttrPtr);
40  I_ATTR(bool, m_isOrientedOutsideAttrPtr);
41 };
42 
43 
44 } // namespace i2d
45 
46 
47 #endif // !i2d_COrientedCircleComp_included
48 
49 
Definition of an oriented graphical circle object.
Implementation of a circle as a component.
virtual void OnComponentCreated()
TObject2dCompWrap< COrientedCircle > BaseClass
Base class for all components implementing 2D objects.
Definition of graphical point object.
Definition: CPosition2d.h:17

© 2007-2017 Witold Gantzke and Kirill Lepskiy