![]() |
Inviwo 0.9.12-pre
Inviwo documentation
|
#include <modules/animation/datastructures/keyframesequence.h>
Public Member Functions | |
| virtual Keyframe * | add (std::unique_ptr< Keyframe > key)=0 |
| virtual KeyframeSequence * | clone () const =0 |
| virtual void | deserialize (Deserializer &d) override=0 |
| virtual const Keyframe & | getFirst () const =0 |
| virtual Keyframe & | getFirst ()=0 |
| Seconds | getFirstTime () const |
| virtual const Keyframe & | getLast () const =0 |
| virtual Keyframe & | getLast ()=0 |
| Seconds | getLastTime () const |
| virtual std::optional< Seconds > | getNextTime (Seconds at) const =0 |
| virtual std::optional< Seconds > | getPrevTime (Seconds at) const =0 |
| std::pair< Seconds, Seconds > | getTimeSpan () const |
| bool | isAnyKeyframeSelected () const |
| virtual bool | isSelected () const =0 |
| virtual const Keyframe & | operator[] (size_t i) const =0 |
| virtual Keyframe & | operator[] (size_t i)=0 |
| virtual std::unique_ptr< Keyframe > | remove (Keyframe *key)=0 |
| virtual std::unique_ptr< Keyframe > | remove (size_t i)=0 |
| virtual void | serialize (Serializer &s) const override=0 |
| virtual void | setSelected (bool selected)=0 |
| virtual size_t | size () const =0 |
| Public Member Functions inherited from inviwo::Observable< KeyframeSequenceObserver > | |
| void | addObserver (KeyframeSequenceObserver *observer) |
| bool | isObservedBy (KeyframeSequenceObserver *observer) const |
| Observable< KeyframeSequenceObserver > & | operator= (const Observable< KeyframeSequenceObserver > &other) |
| void | removeObserver (KeyframeSequenceObserver *observer) |
| virtual void | startBlockingNotifications () override final |
| virtual void | stopBlockingNotifications () override final |
Friends | |
| bool | operator< (const KeyframeSequence &a, const KeyframeSequence &b) |
| bool | operator< (const KeyframeSequence &a, const Seconds &b) |
| bool | operator< (const Seconds &a, const KeyframeSequence &b) |
| bool | operator<= (const KeyframeSequence &a, const KeyframeSequence &b) |
| bool | operator<= (const KeyframeSequence &a, const Seconds &b) |
| bool | operator<= (const Seconds &a, const KeyframeSequence &b) |
| bool | operator> (const KeyframeSequence &a, const KeyframeSequence &b) |
| bool | operator> (const KeyframeSequence &a, const Seconds &b) |
| bool | operator> (const Seconds &a, const KeyframeSequence &b) |
| bool | operator>= (const KeyframeSequence &a, const KeyframeSequence &b) |
| bool | operator>= (const KeyframeSequence &a, const Seconds &b) |
| bool | operator>= (const Seconds &a, const KeyframeSequence &b) |
Additional Inherited Members | |
| 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) |
| virtual void | addObserver (Observer *observer)=0 |
| void | removeObservationHelper (Observer *observer) |
| virtual void | removeObserver (Observer *observer)=0 |
Interface for a sequence of keyframes, which will be evaluated during an animation. The KeyframeSequence is a part of a Track and owns Keyframes. All keyframes in the sequence are interpolated using the same Interpolation method.
|
pure virtual |
Add Keyframe and call KeyframeObserver::notifyKeyframeAdded
Implemented in inviwo::animation::BaseKeyframeSequence< Key >, inviwo::animation::BaseKeyframeSequence< ButtonKeyframe >, inviwo::animation::BaseKeyframeSequence< CallbackKeyframe >, inviwo::animation::BaseKeyframeSequence< ControlKeyframe >, and inviwo::animation::BaseKeyframeSequence< InvalidationKeyframe >.
|
overridepure virtual |
Implements inviwo::Serializable.
|
pure virtual |
Remove Keyframe and call KeyframeObserver::notifyKeyframeRemoved
Implemented in inviwo::animation::BaseKeyframeSequence< Key >, inviwo::animation::BaseKeyframeSequence< ButtonKeyframe >, inviwo::animation::BaseKeyframeSequence< CallbackKeyframe >, inviwo::animation::BaseKeyframeSequence< ControlKeyframe >, and inviwo::animation::BaseKeyframeSequence< InvalidationKeyframe >.
|
overridepure virtual |
Implements inviwo::Serializable.
|
pure virtual |
Return number of keyframes in the sequence.
Implemented in inviwo::animation::BaseKeyframeSequence< Key >, inviwo::animation::BaseKeyframeSequence< ButtonKeyframe >, inviwo::animation::BaseKeyframeSequence< CallbackKeyframe >, inviwo::animation::BaseKeyframeSequence< ControlKeyframe >, and inviwo::animation::BaseKeyframeSequence< InvalidationKeyframe >.