26 ,
public QGraphicsItem
29 Q_INTERFACES(QGraphicsItem)
36 static const constexpr int Type = QGraphicsItem::UserType + 101;
37 int type()
const final override {
return Type; }
39 QRectF boundingRect()
const override;
40 QPainterPath shape()
const override;
41 QPainterPath opaqueArea()
const override;
42 bool contains(
const QPointF& pt)
const override;
44 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
49 const SegmentModel* modelPtr()
const noexcept {
return m_model; }
51 void setRect(
const QRectF& theRect);
53 void setSelected(
bool selected);
58 void setTween(
bool b);
61 void contextMenuRequested(
const QPoint& arg_1,
const QPointF& arg_2)
62 E_SIGNAL(SCORE_PLUGIN_CURVE_EXPORT, contextMenuRequested, arg_1, arg_2)
65 void contextMenuEvent(QGraphicsSceneContextMenuEvent* event)
override;
68 void recomputeStroke()
const;
69 void paintSampled(QPainter& painter, QRectF exposed);
79 const PointArraySegment* m_sampled{};
83 QPainterPath m_unstrokedShape;
84 mutable QPainterPath m_strokedShape;
89 mutable bool m_needsRecompute{
false};