47 #ifndef VABSTRACTCUBICBEZIERPATH_H
48 #define VABSTRACTCUBICBEZIERPATH_H
50 #include <qcompilerdetection.h>
51 #include <QCoreApplication>
82 virtual QPainterPath
GetPath() const Q_DECL_OVERRIDE;
84 virtual qreal
GetLength() const Q_DECL_OVERRIDE;
88 int Segment(const QPointF &p) const;
90 QPointF
CutSplinePath(qreal length, qint32 &p1, qint32 &p2, QPointF &spl1p2,
91 QPointF &spl1p3, QPointF &spl2p2, QPointF &spl2p3) const;
93 virtual QString
NameForHistory(const QString &toolName) const Q_DECL_OVERRIDE;
virtual VPointF FirstPoint() const =0
virtual QVector< VSplinePoint > GetSplinePath() const =0
virtual qreal GetLength() const Q_DECL_OVERRIDE
GetLength return length of spline path.
virtual ~VAbstractCubicBezierPath()
QPointF CutSplinePath(qreal length, qint32 &p1, qint32 &p2, QPointF &spl1p2, QPointF &spl1p3, QPointF &spl2p2, QPointF &spl2p3) const
CutSplinePath cut spline path into two. This method don't return two spline path. You must create spl...
virtual QVector< QPointF > getPoints() const Q_DECL_OVERRIDE
GetPathPoints return list of points what located on path.
VAbstractCubicBezierPath & operator=(const VAbstractCubicBezierPath &curve)
virtual QString NameForHistory(const QString &toolName) const Q_DECL_OVERRIDE
NameForHistory helps to create name for dialog History.
virtual qint32 CountSubSpl() const =0
VAbstractCubicBezierPath(const GOType &type, const quint32 &idObject=null_id, const Draw &mode=Draw::Calculation)
int Segment(const QPointF &p) const
virtual void CreateName() Q_DECL_OVERRIDE
virtual qint32 CountPoints() const =0
virtual QPainterPath GetPath() const Q_DECL_OVERRIDE
GetPath return QPainterPath which reprezent spline path.
virtual QVector< DirectionArrow > DirectionArrows() const Q_DECL_OVERRIDE
virtual VSpline GetSpline(qint32 index) const =0
virtual VPointF LastPoint() const =0
The VPointF class keep data of point.
The VSplinePoint class keep information about point in spline path. Each point have two angles and tw...
VSpline class that implements the spline.
QPair< QLineF, QLineF > DirectionArrow