56 #include "../qmuparser/qmutokenparser.h"
59 #ifdef Q_COMPILER_RVALUE_REFS
61 { Swap(point);
return *
this; }
65 { std::swap(d, point.d); }
100 if ( &point ==
this )
119 QLineF line(0, 0, 100, 0);
120 line.setAngle(value);
121 d->angle1 = line.angle();
123 line.setAngle(
d->angle1+180);
124 d->angle2 = line.angle();
134 QLineF line(0, 0, 100, 0);
135 line.setAngle(value);
136 d->angle2 = line.angle();
138 line.setAngle(
d->angle2+180);
139 d->angle1 = line.angle();
223 #ifdef Q_COMPILER_RVALUE_REFS
225 { Swap(point);
return *
this; }
229 { std::swap(d, point.d); }
238 const QString &angle2F, qreal length1,
const QString &length1F, qreal length2,
239 const QString &length2F)
240 : d(new
VSplinePointData(pSpline, angle1, angle1F, angle2, angle2F, length1, length1F, length2, length2F))
253 if ( &point ==
this )
293 d->angle1F = angle1F;
295 QLineF line(0, 0, 100, 0);
296 line.setAngle(value);
297 d->angle1 = line.angle();
299 line.setAngle(
d->angle1+180);
300 d->angle2 = line.angle();
301 d->angle2F = QString().number(
d->angle2);
319 d->angle2F = angle2F;
321 QLineF line(0, 0, 100, 0);
322 line.setAngle(value);
323 d->angle2 = line.angle();
325 line.setAngle(
d->angle2+180);
326 d->angle1 = line.angle();
327 d->angle1F = QString().number(
d->angle1);
346 d->length1F = length1F;
365 d->length2F = length2F;
The VFSplinePoint class keep information about point in spline path. Each point have two angles and t...
void SetKAsm1(const qreal &value)
SetKAsm1 set coefficient of length first control line.
void Swap(VFSplinePoint &point) Q_DECL_NOTHROW
VPointF P() const
P return point.
void SetP(const VPointF &value)
SetP set point.
void SetAngle2(const qreal &value)
SetAngle2 set second angle of spline.
void SetKAsm2(const qreal &value)
SetKAsm2 set coefficient of length second control line.
VFSplinePoint & operator=(const VFSplinePoint &point)
VFSplinePoint()
VFSplinePoint default constructor.
qreal Angle1() const
Angle1 return first angle of spline.
void SetAngle1(const qreal &value)
SetAngle1 set first angle of spline.
QSharedDataPointer< VFSplinePointData > d
qreal KAsm1() const
KAsm1 return coefficient of length first control line.
qreal Angle2() const
Angle2 return second angle of spline.
qreal KAsm2() const
KAsm2 return coefficient of length second control line.
The VPointF class keep data of point.
The VSplinePoint class keep information about point in spline path. Each point have two angles and tw...
QString Length1Formula() const
void SetAngle1(const qreal &value, const QString &angle1F)
QSharedDataPointer< VSplinePointData > d
QString Angle2Formula() const
VSplinePoint & operator=(const VSplinePoint &point)
void SetP(const VPointF &value)
void SetLength1(const qreal &value, const QString &length1F)
QString Length2Formula() const
QString Angle1Formula() const
void SetLength2(const qreal &value, const QString &length2F)
void Swap(VSplinePoint &point) Q_DECL_NOTHROW
void SetAngle2(const qreal &value, const QString &angle2F)
static bool IsSingle(const QString &formula)
IsSingle test formula and return true if it contain only one number.