Inviwo  0.9.10.1
Inviwo documentation
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. More...
 
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
ObservableSet observables_
 

Additional Inherited Members

- Protected Types inherited from inviwo::Observer
using ObservableSet = std::unordered_set< ObservableInterface * >
 

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.

The documentation for this class was generated from the following files: