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

Public Types

enum  { Type = UserType + static_cast<int>(ItemTypes::KeyframeSequence) }

Public Member Functions

 KeyframeSequenceWidgetQt (KeyframeSequence &keyframeSequence, QGraphicsItem *parent)
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *options, QWidget *widget) override
KeyframeSequencegetKeyframeSequence ()
const KeyframeSequencegetKeyframeSequence () const
virtual int type () const override
Public Member Functions inherited from inviwo::animation::KeyframeSequenceObserver
virtual void onKeyframeSequenceSelectionChanged (KeyframeSequence *)
Public Member Functions inherited from inviwo::Observer
 Observer (const Observer &other)
 Observer (Observer &&other)
Observeroperator= (Observer &&other)
Observeroperator= (const Observer &other)
virtual ~Observer ()
void removeObservation (ObservableInterface *observable)
void removeObservations ()

Protected Member Functions

virtual void onKeyframeAdded (Keyframe *key, KeyframeSequence *seq) override
virtual void onKeyframeRemoved (Keyframe *key, KeyframeSequence *seq) override
virtual void onKeyframeSequenceMoved (KeyframeSequence *seq) override
virtual QRectF boundingRect () const override
KeyframeWidgetQtgetKeyframeQt (const Keyframe *keyframe) const
 Get the KeyframeQt corresponding to the given keyframe.
virtual QVariant itemChange (GraphicsItemChange change, const QVariant &value) override
Protected Member Functions inherited from inviwo::Observer
void addObservation (ObservableInterface *observable)

Protected Attributes

KeyframeSequencekeyframeSequence_
QRectF rect_
std::unordered_map< const Keyframe *, std::unique_ptr< KeyframeWidgetQt > > keyframes_
Protected Attributes inherited from inviwo::Observer
std::unordered_set< ObservableInterface * > observables_

Member Function Documentation

◆ getKeyframeQt()

KeyframeWidgetQt * inviwo::animation::KeyframeSequenceWidgetQt::getKeyframeQt ( const Keyframe * keyframe) const
protected

Get the KeyframeQt corresponding to the given keyframe.

Parameters
keyframeThe keyframe to search for
Returns
KeyframeWidgetQt containing the keyframe or null if not found.

◆ onKeyframeAdded()

virtual void inviwo::animation::KeyframeSequenceWidgetQt::onKeyframeAdded ( Keyframe * key,
KeyframeSequence * seq )
overrideprotectedvirtual

◆ onKeyframeRemoved()

virtual void inviwo::animation::KeyframeSequenceWidgetQt::onKeyframeRemoved ( Keyframe * key,
KeyframeSequence * seq )
overrideprotectedvirtual

◆ onKeyframeSequenceMoved()

virtual void inviwo::animation::KeyframeSequenceWidgetQt::onKeyframeSequenceMoved ( KeyframeSequence * seq)
overrideprotectedvirtual

The documentation for this class was generated from the following file:
  • keyframesequencewidgetqt.h