CPolygon.h
Go to the documentation of this file.
1 #ifndef i2d_CPolygon_included
2 #define i2d_CPolygon_included
3 
4 
5 // ACF includes
6 #include <i2d/CPolypoint.h>
7 
8 
9 namespace i2d
10 {
11 
12 
16 class CPolygon: public CPolypoint
17 {
18 public:
20 
24  virtual double GetOutlineLength() const;
25 
29  virtual void FlipByX();
33  virtual void FlipByY();
37  virtual void Rotate(double radians);
41  virtual void ReverseNodes();
42 
43  // reimplemented (istd::IChangeable)
44  virtual bool CopyFrom(const IChangeable& object, CompatibilityMode mode = CM_WITHOUT_REFS);
45 };
46 
47 
48 } // namespace i2d
49 
50 
51 #endif // !i2d_CPolygon_included
52 
53 
Definition of the data model for a polygon.
Definition: CPolygon.h:16
External references are simple ignored.
Definition: IChangeable.h:197
CompatibilityMode
Control how relationship betweeen objects are interpreted.
Definition: IChangeable.h:186
virtual void Rotate(double radians)
Rotate object around its center.
virtual bool CopyFrom(const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS)
Definition of the data model for a polygon.
Definition: CPolypoint.h:20
CPolypoint BaseClass
Definition: CPolygon.h:19
virtual void ReverseNodes()
Reverses nodes order.
virtual void FlipByY()
Flip object by Y-axis.
virtual double GetOutlineLength() const
Get outline length of this polygon.
virtual void FlipByX()
Flip object by X-axis.

© 2007-2017 Witold Gantzke and Kirill Lepskiy