55 #include <qcompilerdetection.h>
57 #include <QSharedDataPointer>
62 #include "../vmisc/diagnostic.h"
69 QT_WARNING_DISABLE_INTEL(2304)
79 explicit VPointF(
const QPointF &point );
80 VPointF(qreal x, qreal y,
const QString &name, qreal mx, qreal my, quint32 idObject = 0,
82 VPointF(
const QPointF &point,
const QString &name, qreal mx, qreal my, quint32 idObject = 0,
84 virtual ~
VPointF() Q_DECL_OVERRIDE;
87 #ifdef Q_COMPILER_RVALUE_REFS
91 void Swap(
VPointF &point) Q_DECL_NOTHROW;
93 explicit operator QPointF()
const;
94 VPointF Rotate(
const QPointF &originPoint, qreal degrees,
const QString &prefix = QString())
const;
95 VPointF Flip(
const QLineF &axis,
const QString &prefix = QString())
const;
96 VPointF Move(qreal length, qreal angle,
const QString &prefix = QString())
const;
100 void setMy(qreal my);
101 QPointF toQPointF()
const;
103 void setX(
const qreal &value);
105 void setY(
const qreal &value);
107 bool isShowPointName()
const;
108 void setShowPointName(
bool show);
110 static QPointF RotatePF(
const QPointF &originPoint,
const QPointF &point, qreal degrees);
111 static QPointF FlipPF(
const QLineF &axis,
const QPointF &point);
112 static QPointF MovePF(
const QPointF &originPoint, qreal length, qreal angle);
115 QSharedDataPointer<VPointFData>
d;
The VGObject class keep information graphical objects.
VPointFData & operator=(const VPointFData &) Q_DECL_EQ_DELETE
The VPointF class keep data of point.
QSharedDataPointer< VPointFData > d
Q_DECLARE_TYPEINFO(VPointF, Q_MOVABLE_TYPE)