58 #ifdef Q_COMPILER_RVALUE_REFS
60 { Swap(curve);
return *
this; }
199 return QLineF(
static_cast<QPointF
>(
GetP1()),
static_cast<QPointF
>(
GetP2())).angle();
205 return QLineF(
static_cast<QPointF
>(
GetP4()),
static_cast<QPointF
>(
GetP3())).angle();
216 static_cast<QPointF
>(
GetP3()),
static_cast<QPointF
>(
GetP4()));
227 static_cast<QPointF
>(
GetP3()),
static_cast<QPointF
>(
GetP4()));
233 return QLineF(
static_cast<QPointF
>(
GetP1()),
static_cast<QPointF
>(
GetP2())).length();
239 return QLineF(
static_cast<QPointF
>(
GetP4()),
static_cast<QPointF
>(
GetP3())).length();
245 return static_cast<QPointF
>(
GetP2());
251 return static_cast<QPointF
>(
GetP3());
VAbstractCubicBezier & operator=(const VAbstractCubicBezier &curve)
static qreal LengthBezier(const QPointF &p1, const QPointF &p2, const QPointF &p3, const QPointF &p4)
LengthBezier return spline length using 4 spline point.
virtual void CreateName() Q_DECL_OVERRIDE
static QVector< QPointF > GetCubicBezierPoints(const QPointF &p1, const QPointF &p2, const QPointF &p3, const QPointF &p4)
GetCubicBezierPoints return list with cubic bezier curve points.
QString getLineWeight() const
getLineWeight return weight of the lines
void SetPenStyle(const QString &penStyle)
void setLineColor(const QString &color)
void setLineWeight(const QString &lineWeight)
setLineWeight set weight of the lines
QString GetPenStyle() const
void Swap(VAbstractCurve &curve) Q_DECL_NOTHROW
QString getLineColor() const
virtual qreal GetC2Length() const Q_DECL_OVERRIDE
virtual qreal GetStartAngle() const Q_DECL_OVERRIDE
void Swap(VCubicBezier &curve) Q_DECL_NOTHROW
void SetP4(const VPointF &p)
void SetP3(const VPointF &p)
virtual QPointF GetControlPoint1() const Q_DECL_OVERRIDE
virtual qreal GetEndAngle() const Q_DECL_OVERRIDE
virtual VPointF GetP1() const Q_DECL_OVERRIDE
QSharedDataPointer< VCubicBezierData > d
VCubicBezier Rotate(const QPointF &originPoint, qreal degrees, const QString &prefix=QString()) const
virtual qreal GetC1Length() const Q_DECL_OVERRIDE
VCubicBezier Move(qreal length, qreal angle, const QString &prefix=QString()) const
VCubicBezier & operator=(const VCubicBezier &curve)
virtual VPointF GetP3() const Q_DECL_OVERRIDE
void SetP1(const VPointF &p)
virtual QPointF GetControlPoint2() const Q_DECL_OVERRIDE
virtual qreal GetLength() const Q_DECL_OVERRIDE
GetLength return length of cubic bezier curve.
virtual VPointF GetP2() const Q_DECL_OVERRIDE
void SetP2(const VPointF &p)
VCubicBezier Flip(const QLineF &axis, const QString &prefix=QString()) const
virtual QVector< QPointF > getPoints() const Q_DECL_OVERRIDE
GetPoints return list with cubic bezier curve points.
virtual VPointF GetP4() const Q_DECL_OVERRIDE
virtual QString name() const
name return name graphical object.
void setName(const QString &name)
setName set name graphical object.
The VPointF class keep data of point.
VPointF Rotate(const QPointF &originPoint, qreal degrees, const QString &prefix=QString()) const
VPointF Flip(const QLineF &axis, const QString &prefix=QString()) const
VPointF Move(qreal length, qreal angle, const QString &prefix=QString()) const