59 #ifdef Q_COMPILER_RVALUE_REFS
96 VPointF::VPointF(qreal x, qreal y,
const QString &name, qreal mx, qreal my, quint32 idObject,
const Draw &mode)
111 VPointF::VPointF(
const QPointF &point,
const QString &name, qreal mx, qreal my, quint32 idObject,
const Draw &mode)
130 if ( &point ==
this )
140 VPointF::operator QPointF()
const
215 return QPointF(
d->_x,
d->_y);
261 return d->m_showPointName;
267 d->m_showPointName = show;
273 QLineF axis(originPoint, point);
274 axis.setAngle(axis.angle() + degrees);
282 return transform.map(point);
288 QLineF line(originPoint.x(), originPoint.y(), originPoint.x() + length, originPoint.y());
289 line.setAngle(angle);
The VGObject class keep information graphical objects.
virtual QString name() const
name return name graphical object.
VGObject & operator=(const VGObject &obj)
operator = assignment operator.
static QTransform flipTransform(const QLineF &axis)
void Swap(VGObject &obj) Q_DECL_NOTHROW
void setName(const QString &name)
setName set name graphical object.
The VPointF class keep data of point.
void setMx(qreal mx)
setMx set offset name respect to x
void setX(const qreal &value)
setX set x coordinate
virtual ~VPointF() Q_DECL_OVERRIDE
VPointF()
VPointF creat empty point.
void setMy(qreal my)
setMy set offset name respect to y
VPointF & operator=(const VPointF &point)
operator = assignment operator
void setY(const qreal &value)
setY set y coordinate
static QPointF RotatePF(const QPointF &originPoint, const QPointF &point, qreal degrees)
qreal mx() const
mx return offset name respect to x
void Swap(VPointF &point) Q_DECL_NOTHROW
static QPointF MovePF(const QPointF &originPoint, qreal length, qreal angle)
QSharedDataPointer< VPointFData > d
bool isShowPointName() const
VPointF Rotate(const QPointF &originPoint, qreal degrees, const QString &prefix=QString()) const
void setShowPointName(bool show)
VPointF Flip(const QLineF &axis, const QString &prefix=QString()) const
QPointF toQPointF() const
qreal y() const
y return y coordinate
qreal my() const
my return offset name respect to y
VPointF Move(qreal length, qreal angle, const QString &prefix=QString()) const
static QPointF FlipPF(const QLineF &axis, const QPointF &point)
qreal x() const
x return x coordinate