Go to the documentation of this file.
10#include <QtGui/QPolygonF>
30 CPolygon(
const QPolygonF& qpolygon = QPolygonF());
32 operator QPolygonF()
const;
64 double GetArea(
bool oriented =
false)
const;
Definition of the data model for a polygon.
QByteArray GetFactoryId() const override
virtual void Rotate(double radians)
Rotate object around its center.
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 void FlipByY()
Flip object by Y-axis.
bool CopyFrom(const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) override
CPolygon(const QPolygonF &qpolygon=QPolygonF())
std::unique_ptr< istd::IChangeable > CloneMe(CompatibilityMode mode=CM_WITHOUT_REFS) const override
Make a copy of this object.
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.
© Witold Gantzke and Kirill Lepskiy