52 #ifndef VSPLINEPOINT_P_H
53 #define VSPLINEPOINT_P_H
56 #include <QSharedData>
60 #include "../vmisc/def.h"
61 #include "../qmuparser/qmutokenparser.h"
64 QT_WARNING_DISABLE_GCC(
"-Weffc++")
65 QT_WARNING_DISABLE_GCC("-Wnon-virtual-dtor")
88 qDebug()<<
"Make angle1 and angle2 correct.";
89 this->angle2 = this->angle1 + 180;
95 pSpline(point.pSpline),
147 : QSharedData(point),
186 const QString &angle2F, qreal length1,
const QString &length1F, qreal length2,
187 const QString &length2F)
200 qDebug()<<
"Make angle1 and angle2 correct.";
202 QLineF line (0, 0, 100, 0);
206 line.setAngle(
angle1 + 180);
207 this->angle2 = line.angle();
208 this->angle2F = QString().number(line.angle());
212 line.setAngle(
angle2 + 180);
213 this->angle1 = line.angle();
214 this->angle1F = QString().number(line.angle());
VFSplinePointData & operator=(const VFSplinePointData &) Q_DECL_EQ_DELETE
VFSplinePointData(VPointF pSpline, qreal kAsm1, qreal angle1, qreal kAsm2, qreal angle2)
qreal kAsm1
kAsm1 coefficient of length first control line.
VFSplinePointData(const VFSplinePointData &point)
qreal angle2
angle2 second angle spline.
virtual ~VFSplinePointData()
VPointF pSpline
pSpline point.
qreal kAsm2
kAsm2 coefficient of length second control line.
qreal angle1
angle1 first angle spline.
The VPointF class keep data of point.
qreal length1
length1 length a first control line.
qreal length2
length2 length a second control line.
qreal angle2
angle2 second angle spline.
qreal angle1
angle1 first angle spline.
VSplinePointData & operator=(const VSplinePointData &) Q_DECL_EQ_DELETE
VSplinePointData(const VSplinePointData &point)
virtual ~VSplinePointData()
VPointF pSpline
pSpline point.
static bool IsSingle(const QString &formula)
IsSingle test formula and return true if it contain only one number.
static Q_REQUIRED_RESULT bool VFuzzyComparePossibleNulls(double p1, double p2)