Open 3D Engine LyShine 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.
CUiAnimAzEntityNode Class Reference

Inherits CUiAnimNode, and UiAnimNodeBus::Handler.

Public Member Functions

 AZ_RTTI (CUiAnimAzEntityNode, "{1C6FAEE1-92E4-42ED-8EEB-3483C36A0B77}", CUiAnimNode)
 
 CUiAnimAzEntityNode (const int id)
 
void EnableEntityPhysics (bool bEnable)
 
EUiAnimNodeType GetType () const override
 
void AddTrack (IUiAnimTrack *track) override
 
AZ::EntityId GetAzEntityId () override
 
void SetAzEntity (AZ::Entity *entity) override
 
void StillUpdate () override
 Evaluate animation node while not playing animation.
 
void Animate (SUiAnimContext &ec) override
 Evaluate animation to the given time.
 
void CreateDefaultTracks () override
 
bool SetParamValueAz (float time, const UiAnimParamData &param, float value) override
 
bool SetParamValueAz (float time, const UiAnimParamData &param, bool value) override
 
bool SetParamValueAz (float time, const UiAnimParamData &param, int value) override
 
bool SetParamValueAz (float time, const UiAnimParamData &param, unsigned int value) override
 
bool SetParamValueAz (float time, const UiAnimParamData &param, const AZ::Vector2 &value) override
 
bool SetParamValueAz (float time, const UiAnimParamData &param, const AZ::Vector3 &value) override
 
bool SetParamValueAz (float time, const UiAnimParamData &param, const AZ::Vector4 &value) override
 
bool SetParamValueAz (float time, const UiAnimParamData &param, const AZ::Color &value) override
 
bool GetParamValueAz (float time, const UiAnimParamData &param, float &value) override
 
void PrecacheStatic (float startTime) override
 
void PrecacheDynamic (float time) override
 
Vec3 GetPos ()
 
Quat GetRotate ()
 
Vec3 GetScale ()
 
void Activate (bool bActivate) override
 
IUiAnimTrackGetTrackForAzField (const UiAnimParamData &param) const override
 
IUiAnimTrackCreateTrackForAzField (const UiAnimParamData &param) override
 
void Serialize (XmlNodeRef &xmlNode, bool bLoading, bool bLoadEmptyTracks) override
 
void InitPostLoad (IUiAnimSequence *pSequence, bool remapIds, LyShine::EntityIdMap *entityIdMap) override
 
void OnReset () override
 
void OnResetHard () override
 
void OnStart () override
 
void OnPause () override
 
void OnStop () override
 
unsigned int GetParamCount () const override
 
CUiAnimParamType GetParamType (unsigned int nIndex) const override
 
AZStd::string GetParamName (const CUiAnimParamType &param) const override
 
AZStd::string GetParamNameForTrack (const CUiAnimParamType &param, const IUiAnimTrack *track) const override
 
- Public Member Functions inherited from CUiAnimNode
 AZ_RTTI (CUiAnimNode, "{1ECF3B73-FCED-464D-82E8-CFAF31BB63DC}", IUiAnimNode)
 
 CUiAnimNode (const CUiAnimNode &other)
 
 CUiAnimNode (const int id, EUiAnimNodeType nodeType)
 
void add_ref () override
 
void release () override
 
void SetName (const char *name) override
 Set node name.
 
AZStd::string GetName () override
 Get node name.
 
void SetSequence (IUiAnimSequence *pSequence) override
 
IUiAnimSequenceGetSequence () const override
 
void SetFlags (int flags) override
 
int GetFlags () const override
 
IUiAnimationSystemGetUiAnimationSystem () const override
 
virtual void OnResume ()
 
virtual void OnLoop ()
 
virtual Matrix34 GetReferenceMatrix () const
 
bool IsParamValid (const CUiAnimParamType &paramType) const override
 
EUiAnimValue GetParamValueType (const CUiAnimParamType &paramType) const override
 
IUiAnimNode::ESupportedParamFlags GetParamFlags (const CUiAnimParamType &paramType) const override
 
bool SetParamValue (float time, CUiAnimParamType param, float val) override
 
bool SetParamValue (float time, CUiAnimParamType param, const Vec3 &val) override
 
bool SetParamValue (float time, CUiAnimParamType param, const Vec4 &val) override
 
bool GetParamValue (float time, CUiAnimParamType param, float &val) override
 
bool GetParamValue (float time, CUiAnimParamType param, Vec3 &val) override
 
bool GetParamValue (float time, CUiAnimParamType param, Vec4 &val) override
 
void SetTarget ([[maybe_unused]] IUiAnimNode *node)
 
IUiAnimNodeGetTarget () const
 
virtual void PrecacheStatic ([[maybe_unused]] float startTime)
 
virtual void PrecacheDynamic ([[maybe_unused]] float time)
 
void SerializeUiAnims (XmlNodeRef &xmlNode, bool bLoading, bool bLoadEmptyTracks) override
 
void SetNodeOwner (IUiAnimNodeOwner *pOwner) override
 
IUiAnimNodeOwnerGetNodeOwner () override
 
void SetParent (IUiAnimNode *pParent) override
 
IUiAnimNodeGetParent () const override
 
IUiAnimNodeHasDirectorAsParent () const override
 
int GetTrackCount () const override
 
IUiAnimTrackGetTrackByIndex (int nIndex) const override
 
IUiAnimTrackGetTrackForParameter (const CUiAnimParamType &paramType) const override
 
IUiAnimTrackGetTrackForParameter (const CUiAnimParamType &paramType, uint32 index) const override
 
uint32 GetTrackParamIndex (const IUiAnimTrack *track) const override
 
IUiAnimTrackGetTrackForAzField ([[maybe_unused]] const UiAnimParamData &param) const override
 
IUiAnimTrackCreateTrackForAzField ([[maybe_unused]] const UiAnimParamData &param) override
 
void SetTrack (const CUiAnimParamType &paramType, IUiAnimTrack *track) override
 
IUiAnimTrackCreateTrack (const CUiAnimParamType &paramType) override
 
void SetTimeRange (Range timeRange) override
 
bool RemoveTrack (IUiAnimTrack *track) override
 
virtual void PostLoad ()
 
int GetId () const
 
void SetId (int id)
 
const char * GetNameFast () const
 
void Render () override
 
- Public Member Functions inherited from IUiAnimNode
virtual bool SetParamValueAz ([[maybe_unused]] float time, [[maybe_unused]] const UiAnimParamData &param, [[maybe_unused]] float value)
 
virtual bool SetParamValueAz ([[maybe_unused]] float time, [[maybe_unused]] const UiAnimParamData &param, [[maybe_unused]] bool value)
 
virtual bool SetParamValueAz ([[maybe_unused]] float time, [[maybe_unused]] const UiAnimParamData &param, [[maybe_unused]] int value)
 
virtual bool SetParamValueAz ([[maybe_unused]] float time, [[maybe_unused]] const UiAnimParamData &param, [[maybe_unused]] unsigned int value)
 
virtual bool SetParamValueAz ([[maybe_unused]] float time, [[maybe_unused]] const UiAnimParamData &param, [[maybe_unused]] const AZ::Vector2 &value)
 
virtual bool SetParamValueAz ([[maybe_unused]] float time, [[maybe_unused]] const UiAnimParamData &param, [[maybe_unused]] const AZ::Vector3 &value)
 
virtual bool SetParamValueAz ([[maybe_unused]] float time, [[maybe_unused]] const UiAnimParamData &param, [[maybe_unused]] const AZ::Vector4 &value)
 
virtual bool SetParamValueAz ([[maybe_unused]] float time, [[maybe_unused]] const UiAnimParamData &param, [[maybe_unused]] const AZ::Color &value)
 
virtual bool GetParamValueAz ([[maybe_unused]] float time, [[maybe_unused]] const UiAnimParamData &param, [[maybe_unused]] float &value)
 
virtual AZStd::string GetParamNameForTrack (const CUiAnimParamType &paramType, [[maybe_unused]] const IUiAnimTrack *track) const
 

Static Public Member Functions

static int GetParamCountStatic ()
 
static bool GetParamInfoStatic (int nIndex, SParamInfo &info)
 
static void Reflect (AZ::SerializeContext *serializeContext)
 
- Static Public Member Functions inherited from CUiAnimNode
static void Reflect (AZ::SerializeContext *serializeContext)
 

Protected Types

enum  EUpdateEntityFlags { eUpdateEntity_Position = 1 << 0 , eUpdateEntity_Rotation = 1 << 1 , eUpdateEntity_Animation = 1 << 2 }
 
- Protected Types inherited from CUiAnimNode
typedef AZStd::vector< AZStd::intrusive_ptr< IUiAnimTrack > > AnimTracks
 

Protected Member Functions

bool GetParamInfoFromType (const CUiAnimParamType &paramId, SParamInfo &info) const override
 
const AZ::SerializeContext::ClassElement * ComputeOffsetFromElementName (const AZ::SerializeContext::ClassData *classData, IUiAnimTrack *track, size_t baseOffset)
 
void ComputeOffsetsFromElementNames ()
 This is called on load to compute the offset into the component for each track.
 
void ReleaseSounds ()
 
void UpdateDynamicParams () override
 
virtual void UpdateDynamicParams_Editor ()
 
virtual void UpdateDynamicParams_PureGame ()
 
- Protected Member Functions inherited from CUiAnimNode
virtual bool GetParamInfoFromType ([[maybe_unused]] const CUiAnimParamType &paramType, [[maybe_unused]] SParamInfo &info) const
 
int NumTracks () const
 
UiAnimationSystemGetUiAnimationSystemImpl () const
 
void RegisterTrack (IUiAnimTrack *track)
 
bool NeedToRender () const override
 

Protected Attributes

Vec3 m_pos
 
Quat m_rotate
 
Vec3 m_scale
 
- Protected Attributes inherited from CUiAnimNode
int m_refCount
 
EUiAnimNodeType m_nodeType
 
int m_id
 
AZStd::string m_name
 
IUiAnimSequencem_pSequence
 
IUiAnimNodeOwnerm_pOwner
 
IUiAnimNodem_pParentNode
 
int m_parentNodeId
 
int m_nLoadedParentNodeId
 
int m_flags
 
unsigned int m_bIgnoreSetParam: 1
 
AnimTracks m_tracks
 

Additional Inherited Members

- Public Types inherited from IUiAnimNode
enum  ESupportedParamFlags { eSupportedParamFlags_MultipleTracks = 0x01 }
 

Member Function Documentation

◆ ComputeOffsetFromElementName()

const AZ::SerializeContext::ClassElement* CUiAnimAzEntityNode::ComputeOffsetFromElementName ( const AZ::SerializeContext::ClassData *  classData,
IUiAnimTrack track,
size_t  baseOffset 
)
protected

Given the class data definition and a track for a field within it, compute the offset for the field and set it in the track


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