![]() |
ImFusion SDK 4.3
|
#include <ImFusion/GUI/BlendingAnimation.h>
Animates the blendFactor of an ImageView2D. More...
Inheritance diagram for BlendingAnimation:Animates the blendFactor of an ImageView2D.
Public Member Functions | |
| BlendingAnimation (ImageView2DAdapter view) | |
| BlendingAnimation (ImageView2D *view) | |
| BlendingAnimation (GUI::SliceView *view) | |
| void | setMode (int val) |
| Sets the range mode used by the animation: 0: blendFactor ranges from 0.5 to 1.0 1: blendFactor ranges from 0.0 to 1.0 2: blendFactor ranges from 0.0 to 0.5. | |
| int | mode () const |
Public Member Functions inherited from Animation | |
| Animation (std::function< void(double t)> &&updateFunc=nullptr) | |
| Create a new Animation instance with an EasingCurve::InOutCubic by default. | |
| std::chrono::milliseconds | duration () const |
| Returns the duration of a single iteration of the animation. | |
| void | setDuration (std::chrono::milliseconds duration) |
| Sets the duration of a single iteration of the animation; must not be changed after starting the animation. | |
| bool | isLooped () const |
| Returns whether this animation is looped endlessly or not. | |
| void | setLooped (bool value) |
| Sets whether this animation is looped endlessly or not; must not be changed after starting the animation. | |
| void | setEasingCurve (EasingCurve curve) |
| Sets the easing curve to one of the built-in ones. | |
| void | setEasingCurve (std::function< double(double t)> &&easingCurveFunc) |
| Sets a custom easing curve. | |
| State | state () const |
| Returns the current state of the animation. | |
| void | cancel () |
| Cancels the animation without. | |
| void | update (double t) const |
| To be called by the backend; applies the easing curve and calls the m_updateFunc as well as signalUpdated with the result. | |
Public Member Functions inherited from SignalReceiver | |
| SignalReceiver ()=default | |
| Default constructor. | |
| SignalReceiver (const SignalReceiver &other) | |
| Copy constructor, does not copy any existing signal connections from other. | |
| SignalReceiver & | operator= (SignalReceiver rhs) |
| Assignment operator, disconnects all existing connections, does not copy any existing signal connections from rhs. | |
| virtual | ~SignalReceiver () |
| Virtual destructor disconnects from all connected signals. | |
Additional Inherited Members | |
Public Types inherited from Animation | |
| enum class | State { Created , Running , Cancelled , Finished } |
| Enumeration of possible animation states. More... | |
Public Attributes inherited from Animation | |
| ProtectedSignal< double > | signalUpdated |
| Signal emitted at regular time intervals while the animation is running. | |
| ProtectedSignal< State > | signalStateChanged |
| Signal emitted whenever the state of the animation has changed. | |
| ProtectedSignal | signalConfigChanged |
| Signal emitted whenever the duration, or isLooped state has changed. | |
Protected Member Functions inherited from SignalReceiver | |
| void | disconnectAll () |
| Disconnects all existing connections. | |