52 #ifndef VCURVEPATHITEM_H
53 #define VCURVEPATHITEM_H
55 #include <QGraphicsPathItem>
58 #include "../vmisc/def.h"
66 virtual QPainterPath
shape() const Q_DECL_OVERRIDE;
68 virtual
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
69 QWidget *widget =
nullptr) Q_DECL_OVERRIDE;
71 virtual
int type() const Q_DECL_OVERRIDE {
return Type;}
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) Q_DECL_OVERRIDE
QVector< QPointF > m_points
virtual int type() const Q_DECL_OVERRIDE
void SetPoints(const QVector< QPointF > &points)
virtual void ScalePenWidth()
void SetDirectionArrows(const QVector< QPair< QLineF, QLineF >> &arrows)
virtual QPainterPath shape() const Q_DECL_OVERRIDE
QVector< QPair< QLineF, QLineF > > m_directionArrows
virtual ~VCurvePathItem()=default
VCurvePathItem(QGraphicsItem *parent=nullptr)