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

© 2007-2017 Witold Gantzke and Kirill Lepskiy