Loading...
Searching...
No Matches
Spline::CurveItem Class Reference
Inheritance diagram for Spline::CurveItem:
Public Member Functions | |
| CurveItem (const ProcessModel &model, const score::DocumentContext &ctx, View &parent) | |
| QRectF | boundingRect () const override |
| QPointF | point (double pos) const noexcept |
| void | paint (QPainter *p, const QStyleOptionGraphicsItem *, QWidget *) override |
| void | updateRect () |
| void | setZoomToFitRect (QRectF parentRect) |
| void | setZoom (double zoom) |
| ossia::spline_point | evaluate (double pos) const noexcept |
| void | updateSpline () |
| void | updateStroke () |
| void | updatePlayPath () |
| void | setSpline (ossia::spline_data d) |
| void | setPlayPercentage (float f) |
| const ossia::spline_data & | spline () const |
| QPointF | mapToCanvas (const ossia::spline_point &point) const |
| ossia::spline_point | mapFromCanvas (const QPointF &point) const |
| std::optional< std::size_t > | findControlPoint (QPointF point) const |
| void | hoverEnterEvent (QGraphicsSceneHoverEvent *e) override |
| void | hoverMoveEvent (QGraphicsSceneHoverEvent *e) override |
| void | hoverLeaveEvent (QGraphicsSceneHoverEvent *e) override |
| void | contextMenuEvent (QGraphicsSceneContextMenuEvent *e) override |
| void | mousePressEvent (QGraphicsSceneMouseEvent *e) override |
| void | mouseMoveEvent (QGraphicsSceneMouseEvent *e) override |
| void | mouseReleaseEvent (QGraphicsSceneMouseEvent *e) override |
| void | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) override |
| void | moveControlPoint (QPointF mouse) |
| void | moveCurve (QPointF delta) |
| void | enable () |
| void | disable () |
Public Attributes | |
| View & | m_view |
| const ProcessModel & | m_model |
| const score::DocumentContext & | m_context |
| std::vector< QPointF > | m_points |
| QPainterPath | m_curveShape |
| QPainterPath | m_playShape |
| QPainterPath | m_strokedShape |
| std::optional< std::size_t > | m_selectedPoint |
| ossia::spline_data | m_spline |
| ossia::spline_data | m_origSpline |
| QPointF | m_origClick |
| ts::spline< 2 > | m_spl |
| double | m_zoom {10.} |
| QPointF | m_topLeft |
| QPointF | m_bottomRight |
| float | m_play {0.} |
| bool | m_enabled {true} |
| bool | m_selectedCurve {} |
Static Public Attributes | |
| static const constexpr auto | N = 500 |
The documentation for this class was generated from the following file:
- score-plugin-spline/Spline/View.cpp