Open 3D Engine Maestro Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
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 () 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 key) const override
 
void SelectKey (int key, bool select) override
 
int GetNumKeys () const override
 
void SetNumKeys (int numKeys) override
 
bool HasKeys () const override
 
void RemoveKey (int num) override
 
void GetKey (int index, IKey *key) const override
 
void SetKey (int index, IKey *key) override
 
float GetKeyTime (int index) const override
 
void SetKeyTime (int index, float time) override
 
int GetKeyFlags (int index) override
 
void SetKeyFlags (int index, int flags) override
 
EAnimCurveType GetCurveType () override
 
AnimValueType GetValueType () override
 
void GetValue (float time, float &value, bool applyMultiplier=false) override
 
void GetValue (float time, Vec3 &value, bool applyMultiplier=false) override
 
void GetValue (float time, Vec4 &value, bool applyMultiplier=false) override
 
void GetValue (float time, Quat &value) override
 
void GetValue (float time, bool &value) override
 
void GetValue (float time, Maestro::AssetBlends< AZ::Data::AssetData > &value) override
 
void SetValue (float time, const float &value, bool bDefault=false, bool applyMultiplier=false) override
 
void SetValue (float time, const Vec3 &value, bool bDefault=false, bool applyMultiplier=false) override
 
void SetValue (float time, const Vec4 &value, bool bDefault=false, bool applyMultiplier=false) override
 
void SetValue (float time, const Quat &value, bool bDefault=false) override
 
void SetValue (float time, const bool &value, bool bDefault=false) override
 
void SetValue (float time, const Maestro::AssetBlends< AZ::Data::AssetData > &value, bool bDefault=false) override
 
void OffsetKeyPosition (const Vec3 &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 key, const char *&description, float &duration) override
 
void SortKeys () override
 Sort keys in track (after time of keys was modified).
 
int GetFlags () 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
 
int FindKey (float time) override
 
int CreateKey (float time) override
 Create key at given time, and return its index.
 
int CloneKey (int srcKey) override
 
int CopyKey (IAnimTrack *pFromTrack, int nFromKey) override
 
void SetKeyAtTime (float time, IKey *key)
 
virtual void SetDefaultValue (const ValueType &value)
 
ColorB GetCustomColor () const
 
void SetCustomColor (ColorB color)
 
bool HasCustomColor () const
 
void ClearCustomColor ()
 
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)
 
EAnimCurveType GetCurveType ()
 
AnimValueType GetValueType ()
 
void SetValue (float time, const float &value, bool bDefault, bool applyMultiplier)
 
void GetKey (int index, IKey *key) const
 
void SetKey (int index, IKey *key)
 
int CreateKey (float time)
 Create key at given time, and return its index.
 
int CopyKey (IAnimTrack *pFromTrack, int nFromKey)
 
bool Serialize (XmlNodeRef &xmlNode, bool bLoading, bool bLoadEmptyTracks)
 
bool SerializeSelection (XmlNodeRef &xmlNode, bool bLoading, bool bCopySelected, float fTimeOffset)
 
void GetKeyInfo (int index, const char *&description, float &duration)
 
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 TAnimSplineTrack< ValueType >

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

Member Function Documentation

◆ Serialize() [1/2]

bool 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 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 TAnimSplineTrack< ValueType >::SetKeyAtTime ( float  time,
IKey *  key 
)
inline

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


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