Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
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
 

Public Member Functions

 BaseKeyframeSequence (std::vector< std::unique_ptr< Key > > keyframes)
 
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 Key * add (std::unique_ptr< Keyframe > key) override
 
Key * 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::Serializable
- Public Member Functions inherited from inviwo::Observable< KeyframeSequenceObserver >
 Observable (const Observable< KeyframeSequenceObserver > &other)
 
 Observable (Observable< KeyframeSequenceObserver > &&other) noexcept
 
Observable< KeyframeSequenceObserver > & operator= (const Observable< KeyframeSequenceObserver > &other)
 
Observable< KeyframeSequenceObserver > & operator= (Observable< KeyframeSequenceObserver > &&other) noexcept
 
void addObserver (KeyframeSequenceObserver *observer)
 
void removeObserver (KeyframeSequenceObserver *observer)
 
virtual void startBlockingNotifications () override final
 
virtual void stopBlockingNotifications () override final
 
- Public Member Functions inherited from inviwo::ObservableInterface
- 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

 BaseKeyframeSequence (const BaseKeyframeSequence &rhs)
 
BaseKeyframeSequenceoperator= (const BaseKeyframeSequence &that)
 
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
std::unordered_set< ObservableInterface * > observables_
 

Member Typedef Documentation

◆ const_iterator

template<typename Key >
using inviwo::animation::BaseKeyframeSequence< Key >::const_iterator
Initial value:
util::IndirectIterator<typename std::vector<std::unique_ptr<Key>>::const_iterator>

Constructor & Destructor Documentation

◆ ~BaseKeyframeSequence()

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

Remove all keyframes and call KeyframeObserver::notifyKeyframeRemoved

Member Function Documentation

◆ add() [1/2]

template<typename Key >
Key * inviwo::animation::BaseKeyframeSequence< Key >::add ( std::unique_ptr< Key > key)

Add Keyframe and call KeyframeObserver::notifyKeyframeAdded

◆ add() [2/2]

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

Add Keyframe and call KeyframeObserver::notifyKeyframeAdded

Exceptions
Exceptionif Keyframe is not compatible with BaseKeyframeSequence<Key>

Implements inviwo::animation::KeyframeSequence.

◆ deserialize()

template<typename Key >
virtual void inviwo::animation::BaseKeyframeSequence< Key >::deserialize ( Deserializer & d)
overridevirtual

◆ getFirst() [1/2]

template<typename Key >
virtual const Key & inviwo::animation::BaseKeyframeSequence< Key >::getFirst ( ) const
overridevirtual

◆ getFirst() [2/2]

template<typename Key >
virtual Key & inviwo::animation::BaseKeyframeSequence< Key >::getFirst ( )
overridevirtual

◆ getLast() [1/2]

template<typename Key >
virtual const Key & inviwo::animation::BaseKeyframeSequence< Key >::getLast ( ) const
overridevirtual

◆ getLast() [2/2]

template<typename Key >
virtual Key & inviwo::animation::BaseKeyframeSequence< Key >::getLast ( )
overridevirtual

◆ isSelected()

template<typename Key >
virtual bool inviwo::animation::BaseKeyframeSequence< Key >::isSelected ( ) const
overridevirtual

◆ onKeyframeTimeChanged()

template<typename Key >
virtual void inviwo::animation::BaseKeyframeSequence< Key >::onKeyframeTimeChanged ( Keyframe * key,
Seconds oldTime )
overrideprotectedvirtual

◆ operator[]() [1/2]

template<typename Key >
virtual const Key & inviwo::animation::BaseKeyframeSequence< Key >::operator[] ( size_t i) const
overridevirtual

◆ operator[]() [2/2]

template<typename Key >
virtual Key & inviwo::animation::BaseKeyframeSequence< Key >::operator[] ( size_t i)
overridevirtual

◆ remove() [1/2]

template<typename Key >
virtual std::unique_ptr< Keyframe > inviwo::animation::BaseKeyframeSequence< Key >::remove ( Keyframe * key)
overridevirtual

◆ remove() [2/2]

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

Remove Keyframe and call KeyframeObserver::notifyKeyframeRemoved

Implements inviwo::animation::KeyframeSequence.

◆ serialize()

template<typename Key >
virtual void inviwo::animation::BaseKeyframeSequence< Key >::serialize ( Serializer & s) const
overridevirtual

◆ setSelected()

template<typename Key >
virtual void inviwo::animation::BaseKeyframeSequence< Key >::setSelected ( bool selected)
overridevirtual

◆ 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: