6#include <QtGui/QPolygonF>
26 CPolygon(
const QPolygonF& qpolygon = QPolygonF());
28 operator QPolygonF()
const;
60 double GetArea(
bool oriented =
false)
const;
Definition of the data model for a polygon.
virtual QByteArray GetFactoryId() const override
virtual void Rotate(double radians)
Rotate object around its center.
virtual istd::TUniqueInterfacePtr< istd::IChangeable > CloneMe(CompatibilityMode mode=CM_WITHOUT_REFS) const override
Make a copy of this object.
virtual void ReverseNodes()
Reverses nodes order.
bool Contains(const i2d::CVector2d &point) const
Check if the polygon contains a given point.
virtual double GetOutlineLength() const
Get outline length of this polygon.
double GetPerimeter() const
Get perimeter of the polygon.
virtual bool CopyFrom(const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) override
virtual void FlipByY()
Flip object by Y-axis.
CPolygon(const QPolygonF &qpolygon=QPolygonF())
static QByteArray GetTypeName()
virtual void FlipByX()
Flip object by X-axis.
double GetArea(bool oriented=false) const
Get area of the polygon.
Definition of the data model for a polygon.
Definition of position or mathematical vector on 2D plane.
CompatibilityMode
Control how relationship betweeen objects are interpreted.
@ CM_WITHOUT_REFS
External references are simple ignored.
Unique ownership smart pointer for interface types.