CPolylineComp.h
Go to the documentation of this file.
1 #ifndef i2d_CPolylineComp_included
2 #define i2d_CPolylineComp_included
3 
4 
5 // ACF includes
7 #include <i2d/CPolyline.h>
8 
9 
10 namespace i2d
11 {
12 
13 
18 class CPolylineComp: public TObject2dCompWrap<CPolyline>
19 {
20 public:
22 
23  I_BEGIN_COMPONENT(CPolylineComp);
24  I_REGISTER_INTERFACE(CPolyline);
25  I_REGISTER_INTERFACE(CPolygon);
26  I_REGISTER_INTERFACE(IObject2d);
27  I_REGISTER_INTERFACE(iser::ISerializable);
28  I_ASSIGN_MULTI_0(m_xAttrPtr, "X", "X-Positions of the poly-line points", true);
29  I_ASSIGN_MULTI_0(m_yAttrPtr, "Y", "Y-Positions of the poly-line points", true);
30  I_ASSIGN(m_isClosedAttrPtr, "IsClosed", "Indicate if poly-line should be initially closed", true, false);
31  I_END_COMPONENT;
32 
33 protected:
34  // reimplemented (icomp::CComponentBase)
35  virtual void OnComponentCreated();
36 
37 private:
38  I_MULTIATTR(double, m_xAttrPtr);
39  I_MULTIATTR(double, m_yAttrPtr);
40  I_ATTR(bool, m_isClosedAttrPtr);
41 };
42 
43 
44 } // namespace i2d
45 
46 
47 #endif // !i2d_CPolylineComp_included
Definition of the data model for a polygon.
Definition: CPolygon.h:16
Common class for all classes which objects can be archived or restored from archive.
Definition: ISerializable.h:23
virtual void OnComponentCreated()
Implementation of a poly-line as a component.
Definition: CPolylineComp.h:18
TObject2dCompWrap< CPolyline > BaseClass
Definition: CPolylineComp.h:21
Common interface for describing the 2D-objects.
Definition: IObject2d.h:22
Base class for all components implementing 2D objects.
2D-object representing a polyline.
Definition: CPolyline.h:18

© 2007-2017 Witold Gantzke and Kirill Lepskiy