Loading...
Searching...
No Matches
Scenario::NodalIntervalView Class Referencefinal
Inheritance diagram for Scenario::NodalIntervalView:
Public Types | |
| enum | ItemsToShow { AllItems , OnlyEffects } |
Public Types inherited from score::EmptyRectItem | |
| enum | { Type = UserType + 80002 } |
Public Types inherited from score::ResizeableItem | |
| enum | { Type = UserType + 80000 } |
Public Member Functions | |
| NodalIntervalView (ItemsToShow sh, const IntervalModel &model, const Process::Context &ctx, QGraphicsItem *parent) | |
| void | on_drop (QPointF pos, const QMimeData *data) |
| void | on_playPercentageChanged (double t, TimeVal parent_dur) |
| void | recenter () |
| Fits all the nodes in the view. | |
| void | recenterRelativeToView () |
| Places the canvas so that the model's nodal center is at the center of the visible part of this item, at the model's scale. | |
| void | panBy (QPointF delta) |
Moves the canvas by delta (scene units), as dragging its background does. | |
| void | rescale () |
| void | zoomPlus () |
| void | zoomMinus () |
| void | zoomTo (double newZoomLevel) |
| QRectF | enclosingRect () const noexcept |
| QGraphicsItem & | nodeContainer () const noexcept |
| int | type () const override |
Public Member Functions inherited from score::EmptyRectItem | |
| EmptyRectItem (QGraphicsItem *parent) | |
| void | setRect (const QRectF &r) |
| const QRectF & | rect () const noexcept |
| QRectF | boundingRect () const final override |
| void | fitChildrenRect () |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override |
| int | type () const override |
Public Member Functions inherited from score::ResizeableItem | |
| ResizeableItem (QGraphicsItem *parent) | |
| void | sizeChanged (QSizeF sz) |
| void | childrenSizeChanged () |
| double | minimumHeight () const noexcept |
| void | setMinimumHeight (double w) |
| void | minimumHeightChanged (double w) |
| double | minimumWidth () const noexcept |
| void | setMinimumWidth (double w) |
| void | minimumWidthChanged (double w) |
| int | type () const override |
Additional Inherited Members | |
Protected Attributes inherited from score::EmptyRectItem | |
| QRectF | m_rect {} |
Protected Attributes inherited from score::ResizeableItem | |
| double | m_minimumHeight {} |
| double | m_minimumWidth {} |
Member Function Documentation
◆ recenterRelativeToView()
| void Scenario::NodalIntervalView::recenterRelativeToView | ( | ) |
Places the canvas so that the model's nodal center is at the center of the visible part of this item, at the model's scale.
Called whenever the view's geometry changes; what is at the center stays there. The first time, when the model has no center yet (new or older document), the center of the nodes is taken and stored.
The documentation for this class was generated from the following files:
- NodalIntervalView.hpp
- NodalIntervalView.cpp
Public Types inherited from