Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::animation::AnimationEditorQt Class Reference
Inheritance diagram for inviwo::animation::AnimationEditorQt:

Public Member Functions

 AnimationEditorQt (AnimationController &controller, TrackWidgetQtFactory &widgetFactory, TrackFactory &trackFactory, std::function< void(std::string_view, std::chrono::milliseconds)> showText)
void copy ()
void cut ()
void deleteItems (const QList< QGraphicsItem * > &items)
void deleteSelection ()
void onAnimationChanged (AnimationController *, Animation *oldAnim, Animation *newAnim) override
void paste (std::optional< QPointF > pos=std::nullopt, QGraphicsView *view=nullptr)
void selectAll ()
Public Member Functions inherited from inviwo::animation::AnimationObserver
virtual void onNameChanged (Animation *)
Public Member Functions inherited from inviwo::Observer
 Observer (const Observer &other)
 Observer (Observer &&other)
Observer & operator= (const Observer &other)
Observer & operator= (Observer &&other)
void removeObservation (ObservableInterface *observable)
void removeObservations ()
virtual ~Observer ()
Public Member Functions inherited from inviwo::animation::AnimationControllerObserver
virtual void onStateChanged (AnimationController *, AnimationState, AnimationState)
virtual void onTimeChanged (AnimationController *, Seconds, Seconds)

Static Public Attributes

static constexpr std::string_view mimeKeyframes
static constexpr std::string_view mimeKeyframeSequences

Protected Member Functions

virtual void contextMenuEvent (QGraphicsSceneContextMenuEvent *e) override
std::unique_ptr< TrackWidgetQtcreateTrackWidget (Track &track) const
void dragEnterEvent (QGraphicsSceneDragDropEvent *event) override
void dragLeaveEvent (QGraphicsSceneDragDropEvent *event) override
void dragMoveEvent (QGraphicsSceneDragDropEvent *event) override
void dropEvent (QGraphicsSceneDragDropEvent *event) override
virtual void keyPressEvent (QKeyEvent *event) override
virtual void onFirstMoved () override
virtual void onLastMoved () override
virtual void onTrackAdded (Track *track) override
virtual void onTrackRemoved (Track *track) override
void updateSceneRect ()
Protected Member Functions inherited from inviwo::Observer
void addObservation (ObservableInterface *observable)

Protected Attributes

AnimationControllercontroller_
QGraphicsLineItem * dropIndicatorLine
std::function< void(std::string_view, std::chrono::milliseconds)> showText_
TrackFactorytrackFactory_
std::unordered_map< Track *, std::unique_ptr< TrackWidgetQt > > tracks_
TrackWidgetQtFactorywidgetFactory_
Protected Attributes inherited from inviwo::Observer
std::unordered_set< ObservableInterface * > observables_

Member Function Documentation

◆ onAnimationChanged()

void inviwo::animation::AnimationEditorQt::onAnimationChanged ( AnimationController * ,
Animation * oldAnim,
Animation * newAnim )
overridevirtual

◆ onFirstMoved()

virtual void inviwo::animation::AnimationEditorQt::onFirstMoved ( )
overrideprotectedvirtual

◆ onLastMoved()

virtual void inviwo::animation::AnimationEditorQt::onLastMoved ( )
overrideprotectedvirtual

◆ onTrackAdded()

virtual void inviwo::animation::AnimationEditorQt::onTrackAdded ( Track * track)
overrideprotectedvirtual

◆ onTrackRemoved()

virtual void inviwo::animation::AnimationEditorQt::onTrackRemoved ( Track * track)
overrideprotectedvirtual

Member Data Documentation

◆ dropIndicatorLine

QGraphicsLineItem* inviwo::animation::AnimationEditorQt::dropIndicatorLine
protected

Indicator line for the drag&drop of properties. Shows a timeline indicating where the item will be dropped. Manipulated in the drag* and drop* functions.

◆ mimeKeyframes

std::string_view inviwo::animation::AnimationEditorQt::mimeKeyframes
staticconstexpr
Initial value:
=
"application/x.vnd.inviwo.animation.keyframes+xml"

◆ mimeKeyframeSequences

std::string_view inviwo::animation::AnimationEditorQt::mimeKeyframeSequences
staticconstexpr
Initial value:
=
"application/x.vnd.inviwo.animation.sequences+xml"

The documentation for this class was generated from the following file:
  • modules/animationqt/include/modules/animationqt/animationeditorqt.h