Open 3D Engine Maestro Gem API Reference 25.05.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
Maestro::TAnimSplineTrack< ValueType > Class Template Reference

#include <AnimSplineTrack.h>

Inherits IAnimTrack.

Public Member Functions

 AZ_CLASS_ALLOCATOR (TAnimSplineTrack, AZ::SystemAllocator)
 
 AZ_RTTI ((TAnimSplineTrack, "{6D72D5F6-61A7-43D4-9104-8F7DCCC19E10}", ValueType), IAnimTrack)
 
void add_ref () override
 
void release () override
 
int GetSubTrackCount () const override
 
IAnimTrack * GetSubTrack (int nIndex) const override
 
AZStd::string GetSubTrackName (int nIndex) const override
 
void SetSubTrackName (int nIndex, const char *name) override
 
void SetNode (IAnimNode *node) override
 
IAnimNode * GetNode () const override
 
const CAnimParamType & GetParameterType () const override
 
void SetParameterType (CAnimParamType type) override
 
void GetKeyValueRange (float &fMin, float &fMax) const override
 
void SetKeyValueRange (float fMin, float fMax) override
 
ISplineInterpolator * GetSpline () const override
 
bool IsKeySelected (int keyIndex) const override
 
void SelectKey (int keyIndex, bool select) override
 
int GetNumKeys () const override
 
void SetNumKeys (int numKeys) override
 
bool HasKeys () const override
 
void RemoveKey (int keyIndex) override
 
void GetKey (int keyIndex, IKey *key) const override
 
void SetKey (int keyIndex, IKey *key) override
 
float GetKeyTime (int keyIndex) const override
 
void SetKeyTime (int keyIndex, float time) override
 
int GetKeyFlags (int keyIndex) override
 
void SetKeyFlags (int keyIndex, int flags) override
 
EAnimCurveType GetCurveType () const override
 
AnimValueType GetValueType () const override
 
void GetValue (float time, float &value, bool applyMultiplier=false) const override
 
void GetValue (float time, AZ::Vector3 &value, bool applyMultiplier=false) const override
 
void GetValue (float time, AZ::Vector4 &value, bool applyMultiplier=false) const override
 
void GetValue (float time, AZ::Quaternion &value) const override
 
void GetValue (float time, bool &value) const override
 
void GetValue (float time, AssetBlends< AZ::Data::AssetData > &value) const override
 
void GetValue (float time, AZStd::string &value) const override
 
void SetValue (float time, const float &value, bool bDefault=false, bool applyMultiplier=false) override
 
void SetValue (float time, const AZ::Vector3 &value, bool bDefault=false, bool applyMultiplier=false) override
 
void SetValue (float time, const AZ::Vector4 &value, bool bDefault=false, bool applyMultiplier=false) override
 
void SetValue (float time, const AZ::Quaternion &value, bool bDefault=false) override
 
void SetValue (float time, const bool &value, bool bDefault=false) override
 
void SetValue (float time, const AssetBlends< AZ::Data::AssetData > &value, bool bDefault=false) override
 
void SetValue (float time, const AZStd::string &value, bool bDefault=false) override
 
void OffsetKeyPosition (const AZ::Vector3 &value) override
 
void UpdateKeyDataAfterParentChanged (const AZ::Transform &oldParentWorldTM, const AZ::Transform &newParentWorldTM) override
 
bool Serialize (XmlNodeRef &xmlNode, bool bLoading, bool bLoadEmptyTracks) override
 
bool SerializeSelection (XmlNodeRef &xmlNode, bool bLoading, bool bCopySelected, float fTimeOffset) override
 
void GetKeyInfo (int keyIndex, const char *&description, float &duration) const override
 
void SortKeys () override
 Sort keys in track (after time of keys was modified).
 
int GetFlags () const override
 Get track flags.
 
bool IsMasked (const uint32 mask) const override
 Check if track is masked by mask.
 
void SetFlags (int flags) override
 Set track flags.
 
void Invalidate ()
 
void SetTimeRange (const Range &timeRange) override
 
Range GetTimeRange () const override
 
float GetMinKeyTimeDelta () const override
 
int FindKey (float time) const override
 
int CreateKey (float time) override
 Create key at given time, and return its index.
 
int CloneKey (int srcKeyIndex, float timeOffset) override
 
int CopyKey (IAnimTrack *pFromTrack, int fromKeyIndex) override
 
void SetKeyAtTime (float time, IKey *key)
 
virtual void SetDefaultValue (const ValueType &value)
 
void SetMultiplier (float trackMultiplier) override
 
void SetExpanded (bool expanded) override
 
bool GetExpanded () const override
 
unsigned int GetId () const override
 
void SetId (unsigned int id) override
 
void GetValue (float time, float &value, bool applyMultiplier) const
 
EAnimCurveType GetCurveType () const
 
AnimValueType GetValueType () const
 
void SetValue (float time, const float &value, bool bDefault, bool applyMultiplier)
 
void GetKey (int keyIndex, IKey *key) const
 
void SetKey (int keyIndex, IKey *key)
 
int CreateKey (float time)
 Create key at given time, and return its index.
 
int CloneKey (int srcKeyIndex, float timeOffset)
 
int CopyKey (IAnimTrack *pFromTrack, int fromKeyIndex)
 
bool Serialize (XmlNodeRef &xmlNode, bool bLoading, bool bLoadEmptyTracks)
 
bool SerializeSelection (XmlNodeRef &xmlNode, bool bLoading, bool bCopySelected, float fTimeOffset)
 
void GetKeyInfo (int keyIndex, const char *&description, float &duration) const
 
void add_ref ()
 
void release ()
 
void Reflect (AZ::ReflectContext *context)
 

Static Public Member Functions

static constexpr void DeprecatedTypeNameVisitor (const AZ::DeprecatedTypeNameCallback &visitCallback)
 
static void Reflect (AZ::ReflectContext *context)
 

Protected Member Functions

void UpdateTrackValueRange (float newValue)
 

Detailed Description

template<class ValueType>
class Maestro::TAnimSplineTrack< ValueType >

Templated class that used as a base for all Tcb spline tracks.

Member Function Documentation

◆ Serialize() [1/2]

bool Maestro::TAnimSplineTrack< Vec2 >::Serialize ( XmlNodeRef &  xmlNode,
bool  bLoading,
bool  bLoadEmptyTracks 
)
Deprecated:
Serialization for Sequence data in Component Entity Sequences now occurs through AZ::SerializeContext and the Sequence Component

◆ Serialize() [2/2]

template<class T >
bool Maestro::TAnimSplineTrack< T >::Serialize ( XmlNodeRef &  xmlNode,
bool  bLoading,
bool  bLoadEmptyTracks 
)
inlineoverride
Deprecated:
Serialization for Sequence data in Component Entity Sequences now occurs through AZ::SerializeContext and the Sequence Component

◆ SetKeyAtTime()

template<class ValueType >
void Maestro::TAnimSplineTrack< ValueType >::SetKeyAtTime ( float  time,
IKey *  key 
)
inline

Get key at given time, If key does not exist, adds key at this time.


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