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

#include <modules/animation/datastructures/callbackkeyframe.h>

+ Inheritance diagram for inviwo::animation::CallbackKeyframe:

Public Member Functions

 CallbackKeyframe (const CallbackKeyframe &rhs)=default
 
 CallbackKeyframe (Seconds time, std::function< void()> do_=nullptr, std::function< void()> undo=nullptr)
 
virtual CallbackKeyframeclone () const override
 
AnimationTimeState operator() (Seconds from, Seconds to, AnimationState state) const
 
CallbackKeyframeoperator= (const CallbackKeyframe &that)=default
 
- Public Member Functions inherited from inviwo::animation::BaseKeyframe
 BaseKeyframe (Seconds time)
 
virtual void deserialize (Deserializer &d) override
 
std::optional< EasingType > getEaseIn () const
 
std::optional< EasingType > getEaseOut () const
 
virtual Seconds getTime () const override
 
virtual bool isSelected () const override
 
virtual void serialize (Serializer &s) const override
 
void setEaseIn (std::optional< EasingType > easeIn)
 
void setEaseOut (std::optional< EasingType > easeOut)
 
virtual void setSelected (bool selected) override
 
virtual void setTime (Seconds time) override
 
- Public Member Functions inherited from inviwo::animation::Keyframe
auto operator<=> (const Keyframe &other) const
 
auto operator<=> (const Seconds &time) const
 
auto operator== (const Keyframe &other) const =delete
 
- Public Member Functions inherited from inviwo::Observable< KeyframeObserver >
void addObserver (KeyframeObserver *observer)
 
bool isObservedBy (KeyframeObserver *observer) const
 
 Observable (const Observable< KeyframeObserver > &other)
 
 Observable (Observable< KeyframeObserver > &&other) noexcept
 
Observable< KeyframeObserver > & operator= (const Observable< KeyframeObserver > &other)
 
Observable< KeyframeObserver > & operator= (Observable< KeyframeObserver > &&other) noexcept
 
void removeObserver (KeyframeObserver *observer)
 
virtual void startBlockingNotifications () override final
 
virtual void stopBlockingNotifications () override final
 

Additional Inherited Members

- Public Types inherited from inviwo::animation::BaseKeyframe
using value_type = void
 
- Protected Member Functions inherited from inviwo::animation::BaseKeyframe
 BaseKeyframe (BaseKeyframe &&rhs)=default
 
 BaseKeyframe (const BaseKeyframe &rhs)=default
 
BaseKeyframeoperator= (BaseKeyframe &&that)=default
 
BaseKeyframeoperator= (const BaseKeyframe &that)
 
- Protected Member Functions inherited from inviwo::animation::KeyframeObservable
void notifyKeyframeEasingChanged (Keyframe *key)
 
void notifyKeyframeSelectionChanged (Keyframe *key)
 
void notifyKeyframeTimeChanged (Keyframe *key, Seconds oldTime)
 
- Protected Member Functions inherited from inviwo::Observable< KeyframeObserver >
void forEachObserver (C callback)
 
- Protected Member Functions inherited from inviwo::ObservableInterface
void addObservationHelper (Observer *observer)
 
void removeObservationHelper (Observer *observer)
 

Detailed Description

Keyframe which calls one function when animating forward and a different one when animating backwards. This makes it possible to do/undo things when animating back and forth. This keyframe is intended to be added programatically, i.e., not through the animation user interface.

Note
With great power comes great responsibility. Errors can occur if for example the do/undo states are inconsistent.
See also
CallbackKeyframeSequence
CallbackTrack

Member Function Documentation

◆ clone()

virtual CallbackKeyframe * inviwo::animation::CallbackKeyframe::clone ( ) const
overridevirtual

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