52 #ifndef VABSTRACTCUBICBEZIER_H
53 #define VABSTRACTCUBICBEZIER_H
55 #include <qcompilerdetection.h>
61 #include "../ifc/ifcdef.h"
80 QPointF
CutSpline ( qreal length, QPointF &spl1p2, QPointF &spl1p3, QPointF &spl2p2, QPointF &spl2p3)
const;
82 virtual QString
NameForHistory(
const QString &toolName)
const Q_DECL_OVERRIDE;
90 static qreal
CalcSqDistance(qreal x1, qreal y1, qreal x2, qreal y2);
91 static
void PointBezier_r(qreal x1, qreal y1, qreal x2, qreal y2, qreal x3, qreal y3, qreal x4,
95 static qreal
LengthBezier(const QPointF &p1, const QPointF &p2, const QPointF &p3, const QPointF &p4);
VAbstractCubicBezier & operator=(const VAbstractCubicBezier &curve)
virtual VPointF GetP1() const =0
qreal LengthT(qreal t) const
VAbstractCubicBezier(const GOType &type, const quint32 &idObject=null_id, const Draw &mode=Draw::Calculation)
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
virtual VPointF GetP3() const =0
qreal GetParmT(qreal length) const
QPointF CutSpline(qreal length, QPointF &spl1p2, QPointF &spl1p3, QPointF &spl2p2, QPointF &spl2p3) const
CutSpline cut spline.
static qreal CalcSqDistance(qreal x1, qreal y1, qreal x2, qreal y2)
CalcSqDistance calculate squared distance.
virtual QPointF GetControlPoint2() const =0
virtual VPointF GetP2() const =0
static QVector< QPointF > GetCubicBezierPoints(const QPointF &p1, const QPointF &p2, const QPointF &p3, const QPointF &p4)
GetCubicBezierPoints return list with cubic bezier curve points.
virtual QPointF GetControlPoint1() const =0
static void PointBezier_r(qreal x1, qreal y1, qreal x2, qreal y2, qreal x3, qreal y3, qreal x4, qreal y4, qint16 level, QVector< qreal > &px, QVector< qreal > &py)
PointBezier_r find spline point using four point of spline.
virtual QString NameForHistory(const QString &toolName) const Q_DECL_OVERRIDE
virtual VPointF GetP4() const =0
virtual ~VAbstractCubicBezier()
The VPointF class keep data of point.