25class SCORE_PLUGIN_CURVE_EXPORT
View final
27 ,
public QGraphicsItem
30 Q_INTERFACES(QGraphicsItem)
32 explicit View(QGraphicsItem* parent)
noexcept;
36 void setDirectDraw(
bool)
noexcept;
37 bool directDraw()
const noexcept {
return m_directDraw; }
38 void setDefaultWidth(
double w)
noexcept;
39 void setRect(
const QRectF& theRect)
noexcept;
40 QRectF boundingRect()
const override;
42 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
45 void setSelectionArea(
const QRectF&)
noexcept;
46 QPixmap pixmap()
noexcept;
48 void setValueTooltip(QPointF pos,
const QString&)
noexcept;
51 void pressed(QPointF arg_1) E_SIGNAL(SCORE_PLUGIN_CURVE_EXPORT, pressed, arg_1)
52 void moved(QPointF arg_1) E_SIGNAL(SCORE_PLUGIN_CURVE_EXPORT, moved, arg_1)
53 void released(QPointF arg_1) E_SIGNAL(SCORE_PLUGIN_CURVE_EXPORT, released, arg_1)
54 void doubleClick(QPointF arg_1) E_SIGNAL(SCORE_PLUGIN_CURVE_EXPORT, doubleClick, arg_1)
56 void escPressed() E_SIGNAL(SCORE_PLUGIN_CURVE_EXPORT, escPressed)
58 void keyPressed(
int arg_1) E_SIGNAL(SCORE_PLUGIN_CURVE_EXPORT, keyPressed, arg_1)
59 void keyReleased(
int arg_1) E_SIGNAL(SCORE_PLUGIN_CURVE_EXPORT, keyReleased, arg_1)
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 mousePressEvent(QGraphicsSceneMouseEvent* event)
override;
66 void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event)
override;
67 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
override;
68 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
override;
69 bool sceneEvent(QEvent* event)
override;
71 void keyPressEvent(QKeyEvent* ev)
override;
72 void keyReleaseEvent(QKeyEvent* ev)
override;
74 void contextMenuEvent(QGraphicsSceneContextMenuEvent*)
override;
76 void drawEnvelope(QPainter& painter, QRectF exposed);
83 ossia::pod_vector<double> m_xs;
84 bool m_pyramidDirty{
true};
89 QGraphicsSimpleTextItem* m_tooltipItem{};
91 bool m_directDraw{
false};
92 bool m_pressed{
false};
93 QPointF m_lastScenePos;