Inviwo  0.9.10.1
Inviwo documentation
inviwo::animation::BaseKeyframeSequence< Key > Class Template Reference
+ Inheritance diagram for inviwo::animation::BaseKeyframeSequence< Key >:

Public Types

using key_type = Key
 
using value_type = typename Key::value_type
 
using iterator = util::IndirectIterator< typename std::vector< std::unique_ptr< Key > >::iterator >
 
using const_iterator = util::IndirectIterator< typename std::vector< std::unique_ptr< Key > >::const_iterator >
 

Public Member Functions

 BaseKeyframeSequence (std::vector< std::unique_ptr< Key >> keyframes)
 
 BaseKeyframeSequence (const BaseKeyframeSequence &rhs)
 
BaseKeyframeSequenceoperator= (const BaseKeyframeSequence &that)
 
virtual ~BaseKeyframeSequence ()
 
virtual size_t size () const override
 
virtual const Key & operator[] (size_t i) const override
 
virtual Key & operator[] (size_t i) override
 
virtual const Key & getFirst () const override
 
virtual Key & getFirst () override
 
virtual const Key & getLast () const override
 
virtual Key & getLast () override
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
virtual void add (std::unique_ptr< Keyframe > key) override
 
void add (std::unique_ptr< Key > key)
 
virtual std::unique_ptr< Keyframeremove (size_t i) override
 
virtual std::unique_ptr< Keyframeremove (Keyframe *key) override
 
virtual bool isSelected () const override
 
virtual void setSelected (bool selected) override
 
virtual void serialize (Serializer &s) const override
 
virtual void deserialize (Deserializer &d) override
 
- Public Member Functions inherited from inviwo::animation::KeyframeSequence
virtual KeyframeSequenceclone () const =0
 
Seconds getFirstTime () const
 
Seconds getLastTime () const
 
std::pair< Seconds, Seconds > getTimeSpan () const
 
bool isAnyKeyframeSelected () const
 
- Public Member Functions inherited from inviwo::Observable< KeyframeSequenceObserver >
 Observable (const Observable< KeyframeSequenceObserver > &other)
 
 Observable (Observable< KeyframeSequenceObserver > &&other)
 
Observable< KeyframeSequenceObserver > & operator= (const Observable< KeyframeSequenceObserver > &other)
 
Observable< KeyframeSequenceObserver > & operator= (Observable< KeyframeSequenceObserver > &&other)
 
void addObserver (KeyframeSequenceObserver *observer)
 
void removeObserver (KeyframeSequenceObserver *observer)
 
virtual void startBlockingNotifications () override final
 
virtual void stopBlockingNotifications () override final
 
- 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
 
- Protected Member Functions inherited from inviwo::animation::KeyframeSequenceObserverble
void notifyKeyframeAdded (Keyframe *key, KeyframeSequence *seq)
 
void notifyKeyframeRemoved (Keyframe *key, KeyframeSequence *seq)
 
void notifyKeyframeSequenceMoved (KeyframeSequence *seq)
 
void notifyKeyframeSequenceSelectionChanged (KeyframeSequence *seq)
 
- Protected Member Functions inherited from inviwo::Observable< KeyframeSequenceObserver >
void forEachObserver (C callback)
 
- Protected Member Functions inherited from inviwo::ObservableInterface
void addObservationHelper (Observer *observer)
 
void removeObservationHelper (Observer *observer)
 
- Protected Member Functions inherited from inviwo::Observer
void addObservation (ObservableInterface *observable)
 

Protected Attributes

std::vector< std::unique_ptr< Key > > keyframes_
 
bool isSelected_ {false}
 
- Protected Attributes inherited from inviwo::Observer
ObservableSet observables_
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ ~BaseKeyframeSequence()

template<typename Key >
inviwo::animation::BaseKeyframeSequence< Key >::~BaseKeyframeSequence ( )
virtual

Remove all keyframes and call KeyframeObserver::notifyKeyframeRemoved

Member Function Documentation

◆ add()

template<typename Key >
void inviwo::animation::BaseKeyframeSequence< Key >::add ( std::unique_ptr< Keyframe key)
overridevirtual

Add Keyframe and call KeyframeObserver::notifyKeyframeAdded

Implements inviwo::animation::KeyframeSequence.

◆ remove()

template<typename Key >
std::unique_ptr< Keyframe > inviwo::animation::BaseKeyframeSequence< Key >::remove ( size_t  i)
overridevirtual

Remove Keyframe and call KeyframeObserver::notifyKeyframeRemoved

Implements inviwo::animation::KeyframeSequence.

◆ size()

template<typename Key>
virtual size_t inviwo::animation::BaseKeyframeSequence< Key >::size ( ) const
inlineoverridevirtual

Return number of keyframes in the sequence.

Implements inviwo::animation::KeyframeSequence.


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