#include <State_AnimNode.hpp>
Public Member Functions | |
State_AnimNode (Instance *inst, T const &initial) | |
Public Member Functions inherited from iv::AnimNode< T > | |
AnimNode (Instance *inst, T const &initial_value) | |
void | status (TableDebugView *view) |
AnimNode< T > * | label (std::string const &) |
const std::string & | label () const |
virtual void | StringIO_SetTarget (const char *source, Context const *context) override |
virtual std::string | StringIO_GetTarget (Context const *context) override |
Anim_float | Speed () const |
AnimNode< T > * | Speed (Anim_float) |
AnimNode< T > * | Speed_inf () |
Shortcut for AnimNodeI::Speed( std::numeric_limits< Anim_float >::infinity() ). More... | |
AnimNode< T > * | Target (T const &target) |
const T & | Target () |
const T & | LastTarget () |
bool | IsInTarget () |
bool | IsInTarget (T const &target) |
Public Member Functions inherited from iv::Destination_ConnectorGI< T, iv::Interpolator< T > > | |
Destination_ConnectorGI (Instance *inst, AnimNode< T > *parent=nullptr, Attr< T > *destination=nullptr) | |
~Destination_ConnectorGI () | |
void | SetParent (AnimNode< T > *) |
void | SetDestination (Attr< T > *) |
virtual void | anim_eachParent (std::function< void(AnimNodeI *) > const &) override |
virtual void | anim_parentDisconnect (AnimNodeI *node) override |
virtual void | UpdatePass_Down () override |
virtual void | UpdatePass_Up () override |
Instance * | instance () const |
Public Member Functions inherited from iv::AnimConnector | |
AnimConnector (Instance *inst) | |
Instance * | instance () const |
void | Activate () |
virtual void | anim_eachChild (std::function< void(AnimNodeI *) > const &) |
virtual void | anim_childDisconnect (AnimNodeI *node) |
void | parentChanged_Set () |
bool | parentChanged_Get () |
void | parentChanged_Clear () |
void | childArrived_Set () |
bool | childArrived_Get () |
void | childArrived_Clear () |
Public Attributes | |
ClientMarker | cm |
Public Attributes inherited from iv::AnimNode< T > | |
ClientMarker | cm |
Public Attributes inherited from iv::Destination_ConnectorGI< T, iv::Interpolator< T > > | |
ClientMarker | cm |
Public Attributes inherited from iv::AnimConnector | |
ClientMarker | cm |
Detailed Description
template<class T>
class iv::State_AnimNode< T >
Connector that acts as single variable of given time. It does not have any outside effects, it only serves for state control in Lambda_Connector and such.
Either use just AnimNode< T >::SetTarget and AnimNode< T >::GetTarget to use it as simple variable. Or use also AnimNode< T >::speed, AnimNodeI::WarpToTarget and AnimNode< T >::IsInTarget to use timing in this (possibly use it as a delay node).
If only SetTarget and GetTarget are to be used, it might be better to create just empty AnimNode< T > with no connector attached to it - no ivorium::Interpolator specialization is needed in that case.
Definition at line 19 of file State_AnimNode.hpp.
Constructor & Destructor Documentation
◆ State_AnimNode()
|
inline |
Definition at line 25 of file State_AnimNode.hpp.
Member Data Documentation
◆ cm
ClientMarker iv::State_AnimNode< T >::cm |
Definition at line 23 of file State_AnimNode.hpp.
The documentation for this class was generated from the following file:
- ivorium_graphics/Animation/Connectors/State_AnimNode.hpp