CAnnulusSegmentComp.h
Go to the documentation of this file.
1 #ifndef i2d_CAnnulusSegmentComp_included
2 #define i2d_CAnnulusSegmentComp_included
3 
4 
5 // ACF includes
7 #include <i2d/CAnnulusSegment.h>
8 
9 
10 namespace i2d
11 {
12 
13 
18 class CAnnulusSegmentComp: public TObject2dCompWrap<CAnnulusSegment>
19 {
20 public:
22 
23  I_BEGIN_COMPONENT(CAnnulusSegmentComp);
24  I_REGISTER_INTERFACE(CAnnulusSegment);
25  I_REGISTER_INTERFACE(CAnnulus);
26  I_REGISTER_INTERFACE(CPosition2d);
27  I_REGISTER_INTERFACE(IObject2d);
28  I_REGISTER_INTERFACE(iser::ISerializable);
29  I_ASSIGN(m_centerXAttrPtr, "X", "X-Position of the annulus center", true, 0);
30  I_ASSIGN(m_centerYAttrPtr, "Y", "X-Position of the annulus center", true, 0);
31  I_ASSIGN(m_innerRadiusAttrPtr, "InnerRadius", "Inner radius of the annulus", true, 0);
32  I_ASSIGN(m_outerRadiusAttrPtr, "OuterRadius", "Outer radius of the annulus", true, 0);
33  I_ASSIGN(m_beginAngleAttrPtr, "BeginAngle", "Begin angle (in degree) of the annulus segment", true, 0);
34  I_ASSIGN(m_endAngleAttrPtr, "EndAngle", "End angle (in degree) of the annulus segement", true, 360);
35  I_END_COMPONENT;
36 
37 protected:
38  // reimplemented (icomp::CComponentBase)
39  virtual void OnComponentCreated();
40 
41 private:
42  I_ATTR(double, m_centerXAttrPtr);
43  I_ATTR(double, m_centerYAttrPtr);
44  I_ATTR(double, m_innerRadiusAttrPtr);
45  I_ATTR(double, m_outerRadiusAttrPtr);
46  I_ATTR(double, m_beginAngleAttrPtr);
47  I_ATTR(double, m_endAngleAttrPtr);
48 };
49 
50 
51 } // namespace i2d
52 
53 
54 #endif // !i2d_CAnnulusSegmentComp_included
55 
56 
Common class for all classes which objects can be archived or restored from archive.
Definition: ISerializable.h:23
TObject2dCompWrap< CAnnulusSegment > BaseClass
Implementation of a annulus segment as a component.
Definition of graphical annulus object.
Definition: CAnnulus.h:19
virtual void OnComponentCreated()
Common interface for describing the 2D-objects.
Definition: IObject2d.h:22
Radial segment of the annulus object.
Base class for all components implementing 2D objects.
Definition of graphical point object.
Definition: CPosition2d.h:17

© 2007-2017 Witold Gantzke and Kirill Lepskiy