52 #ifndef SCALESCENEITEMS_H
53 #define SCALESCENEITEMS_H
55 #include <QGraphicsLineItem>
57 #include "../vmisc/def.h"
65 explicit VScaledLine(QGraphicsItem * parent =
nullptr);
66 VScaledLine(
const QLineF &line, QGraphicsItem * parent =
nullptr);
69 virtual int type() const Q_DECL_OVERRIDE {
return Type;}
72 virtual void paint(QPainter *painter,
const QStyleOptionGraphicsItem *option,
73 QWidget *widget =
nullptr) Q_DECL_OVERRIDE;
91 virtual int type() const Q_DECL_OVERRIDE {
return Type;}
94 virtual void paint(QPainter *painter,
const QStyleOptionGraphicsItem *option,
95 QWidget *widget =
nullptr) Q_DECL_OVERRIDE;
99 void drawArrow(const QLineF &axis, QPainterPath &path, const qreal &arrow_size);
109 virtual int type() const Q_DECL_OVERRIDE {
return Type;}
112 virtual void paint(QPainter *painter,
const QStyleOptionGraphicsItem *option,
113 QWidget *widget =
nullptr) Q_DECL_OVERRIDE;
virtual int type() const Q_DECL_OVERRIDE
virtual ~ArrowedLineItem()=default
virtual ~VScaledEllipse()=default
virtual int type() const Q_DECL_OVERRIDE
qreal GetBasicWidth() const
virtual ~VScaledLine()=default
void setBasicWidth(const qreal &value)
virtual int type() const Q_DECL_OVERRIDE
VScaledLine(QGraphicsItem *parent=nullptr)
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) Q_DECL_OVERRIDE