Open 3D Engine Maestro Gem API Reference  24.09
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 ([[maybe_unused]] int nIndex) const override
 
AZStd::string GetSubTrackName ([[maybe_unused]] int nIndex) const override
 
void SetSubTrackName ([[maybe_unused]] int nIndex, [[maybe_unused]] 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 ([[maybe_unused]] float time, [[maybe_unused]] Vec3 &value, [[maybe_unused]] bool applyMultiplier=false) override
 
void GetValue ([[maybe_unused]] float time, [[maybe_unused]] Vec4 &value, [[maybe_unused]] bool applyMultiplier=false) override
 
void GetValue ([[maybe_unused]] float time, [[maybe_unused]] Quat &value) override
 
void GetValue ([[maybe_unused]] float time, [[maybe_unused]] bool &value) override
 
void GetValue ([[maybe_unused]] float time, [[maybe_unused]] Maestro::AssetBlends< AZ::Data::AssetData > &value) override
 
void SetValue (float time, const float &value, bool bDefault=false, bool applyMultiplier=false) override
 
void SetValue ([[maybe_unused]] float time, [[maybe_unused]] const Vec3 &value, [[maybe_unused]] bool bDefault=false, [[maybe_unused]] bool applyMultiplier=false) override
 
void SetValue ([[maybe_unused]] float time, [[maybe_unused]] const Vec4 &value, [[maybe_unused]] bool bDefault=false, [[maybe_unused]] bool applyMultiplier=false) override
 
void SetValue ([[maybe_unused]] float time, [[maybe_unused]] const Quat &value, [[maybe_unused]] bool bDefault=false) override
 
void SetValue ([[maybe_unused]] float time, [[maybe_unused]] const bool &value, [[maybe_unused]] bool bDefault=false) override
 
void SetValue ([[maybe_unused]] float time, [[maybe_unused]] const Maestro::AssetBlends< AZ::Data::AssetData > &value, [[maybe_unused]] bool bDefault=false) override
 
void OffsetKeyPosition ([[maybe_unused]] const AZ::Vector3 &value) override
 
void UpdateKeyDataAfterParentChanged ([[maybe_unused]] const AZ::Transform &oldParentWorldTM, [[maybe_unused]] 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 ([[maybe_unused]] 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 ([[maybe_unused]] 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 ([[maybe_unused]] 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: