56 #include <QGraphicsEllipseItem>
58 #include "../vmisc/def.h"
67 explicit VScenePoint(
const QColor &lineColor, 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;
87 virtual
void hoverEnterEvent(QGraphicsSceneHoverEvent *event) Q_DECL_OVERRIDE;
88 virtual
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event) Q_DECL_OVERRIDE;
The VGraphicsSimpleTextItem class pointer label.
The VPointF class keep data of point.
VGraphicsSimpleTextItem * m_pointName
bool m_onlyPoint
m_pointColor color of point.
virtual void hoverEnterEvent(QGraphicsSceneHoverEvent *event) Q_DECL_OVERRIDE
VScenePoint(const QColor &lineColor, QGraphicsItem *parent=nullptr)
QColor m_pointColor
pointL line that we see if Text is moved too away from point.
void setPointColor(const QString &value)
virtual ~VScenePoint()=default
VScaledLine * m_pointLeader
namePoint point text.
void setOnlyPoint(bool value)
virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent *event) Q_DECL_OVERRIDE
void setPointPen(qreal scale)
virtual int type() const Q_DECL_OVERRIDE
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) Q_DECL_OVERRIDE
virtual void refreshPointGeometry(const VPointF &point)