Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::animation::KeyframeWidgetQt Class Reference

Graphical representation of a keyframe. More...

#include <keyframewidgetqt.h>

+ Inheritance diagram for inviwo::animation::KeyframeWidgetQt:

Public Types

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

Public Member Functions

 KeyframeWidgetQt (Keyframe &keyframe, QGraphicsItem *parent)
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *options, QWidget *widget) override
 
const KeyframegetKeyframe () const
 
KeyframegetKeyframe ()
 
void lock ()
 
void unlock ()
 
bool islocked () const
 
virtual int type () const override
 
- Public Member Functions inherited from inviwo::animation::KeyframeObserver
virtual void onKeyframeSelectionChanged (Keyframe *)
 
- 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 onKeyframeTimeChanged (Keyframe *key, Seconds oldTime) override
 
virtual QRectF boundingRect () const override
 
QVariant itemChange (GraphicsItemChange change, const QVariant &value) override
 
- Protected Member Functions inherited from inviwo::Observer
void addObservation (ObservableInterface *observable)
 

Protected Attributes

Keyframekeyframe_
 
bool isEditing_ = false
 
- Protected Attributes inherited from inviwo::Observer
std::unordered_set< ObservableInterface * > observables_
 

Detailed Description

Graphical representation of a keyframe.

Member Function Documentation

◆ lock()

void inviwo::animation::KeyframeWidgetQt::lock ( )

Lock when editing keyframe from GUI

◆ onKeyframeTimeChanged()

virtual void inviwo::animation::KeyframeWidgetQt::onKeyframeTimeChanged ( Keyframe * key,
Seconds oldTime )
overrideprotectedvirtual

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