|
| Shape (unsigned int type, unsigned int flags, const QPolygonF &basePoints, const QTransform &transform=QTransform()) |
|
| Shape (unsigned int type, unsigned int flags, const QPolygonF &basePoints, int index, const QTransform &transform=QTransform()) |
|
| Shape (unsigned int type, unsigned int flags, const QPolygonF &basePoints, int index, const QString &name, const QTransform &transform=QTransform()) |
|
| Shape (unsigned int type, unsigned int flags, const QPolygonF &basePoints, const QString &name, const QTransform &transform=QTransform()) |
|
| Shape (const Shape &other) |
|
Shape & | operator= (const Shape &other) |
|
Shape | normalized () const |
|
bool | isValid () const |
|
unsigned int | flags () const |
|
void | setFlags (const unsigned int &flags) |
|
bool | unclosed () const |
| return true if this shape (e.g. polygon) is currently being created and not closed, yet.
|
|
void | setUnclosed (bool unclosed) |
|
int | index () const |
|
void | setIndex (const int &index) |
|
QString | name () const |
|
void | setName (const QString &name) |
|
unsigned int | type () const |
|
void | setType (const unsigned int &type) |
|
QColor | color () const |
|
void | setColor (const QColor &color) |
|
QTransform | transform () const |
|
QTransform & | rtransform () const |
|
void | setTransform (const QTransform &trafo) |
|
double | rotationAngleDeg () const |
|
double | rotationAngleRad () const |
|
void | setRotationAngleDeg (double degree) |
|
void | setRotationAngleRad (double radians) |
|
void | rotateByCenterDeg (double degree) |
|
void | rotateByCenterRad (double radians) |
|
void | translate (const QPointF &delta) |
|
ito::float64 | userData1 () const |
|
void | setUserData1 (const ito::float64 &userData1) |
|
ito::float64 | userData2 () const |
|
void | setUserData2 (const ito::float64 &userData2) |
|
QPolygonF | basePoints () const |
|
QPolygonF & | rbasePoints () |
|
const QPolygonF & | rbasePoints () const |
|
QPolygonF | contour (bool applyTrafo=true, qreal tol=-1.0) const |
|
QRegion | region () const |
|
void | point1MoveTo (const QPointF &newPoint1) |
|
QPointF | centerPoint () const |
|
QPointF | baseCenterPoint () const |
|
double | area () const |
|
double | circumference () const |
|
double | distance (const Shape &otherShape) const |
|
double | centerDistance (const Shape &otherShape) const |
|
double | radius () const |
|
double | radiusX () const |
|
double | radiusY () const |
|
bool | contains (const QPointF &point) const |
|
QVector< bool > | contains (const QPolygonF &points) const |
|
|
static Shape | fromRectangle (const QRectF &rect, int index=-1, QString name="", const QTransform &trafo=QTransform()) |
|
static Shape | fromRectangle (qreal x1, qreal y1, qreal x2, qreal y2, int index=-1, QString name="", const QTransform &trafo=QTransform()) |
|
static Shape | fromSquare (const QPointF ¢er, qreal sideLength, int index=-1, QString name="", const QTransform &trafo=QTransform()) |
|
static Shape | fromEllipse (const QRectF &rect, int index=-1, QString name="", const QTransform &trafo=QTransform()) |
|
static Shape | fromEllipse (qreal x1, qreal y1, qreal x2, qreal y2, int index=-1, QString name="", const QTransform &trafo=QTransform()) |
|
static Shape | fromCircle (const QPointF ¢er, qreal radius, int index=-1, QString name="", const QTransform &trafo=QTransform()) |
|
static Shape | fromLine (const QPointF &p1, const QPointF &p2, int index=-1, QString name="", const QTransform &trafo=QTransform()) |
|
static Shape | fromLine (qreal x1, qreal y1, qreal x2, qreal y2, int index=-1, QString name="", const QTransform &trafo=QTransform()) |
|
static Shape | fromPoint (const QPointF &point, int index=-1, QString name="", const QTransform &trafo=QTransform()) |
|
static Shape | fromPoint (qreal x, qreal y, int index=-1, QString name="", const QTransform &trafo=QTransform()) |
|
static Shape | fromPolygon (const QPolygonF &polygon, int index=-1, QString name="", const QTransform &trafo=QTransform()) |
|
static Shape | fromMultipoint (const QPolygonF &polygon, int index=-1, QString name="", const QTransform &trafo=QTransform()) |
|
static QString | type2QString (const int type) |
|
bool ito::Shape::contains |
( |
const QPointF & | point | ) |
const |
returns true if shape contains the given point, or false if this is not the case. In case of shapes with an area of 0, this method always returns false.
< returns true if shape contains the given point, or false if this is not the case. In case of shapes with an area of 0, this method always returns false.