Open 3D Engine EMotionFX 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.
|
#include <SelectionList.h>
Inherits EMotionFX::ActorNotificationBus::Handler, and EMotionFX::ActorInstanceNotificationBus::Handler.
Public Member Functions | |
SelectionList () | |
~SelectionList () | |
MCORE_INLINE size_t | GetNumSelectedNodes () const |
MCORE_INLINE size_t | GetNumSelectedActors () const |
MCORE_INLINE size_t | GetNumSelectedActorInstances () const |
MCORE_INLINE size_t | GetNumSelectedMotionInstances () const |
MCORE_INLINE size_t | GetNumSelectedMotions () const |
MCORE_INLINE size_t | GetNumSelectedAnimGraphs () const |
MCORE_INLINE size_t | GetNumTotalItems () const |
bool | GetIsEmpty () const |
void | Clear () |
void | AddNode (EMotionFX::Node *node) |
void | AddActor (EMotionFX::Actor *actor) |
void | AddActorInstance (EMotionFX::ActorInstance *actorInstance) |
void | AddMotion (EMotionFX::Motion *motion) |
void | AddMotionInstance (EMotionFX::MotionInstance *motionInstance) |
void | AddAnimGraph (EMotionFX::AnimGraph *animGraph) |
void | Add (SelectionList &selection) |
MCORE_INLINE EMotionFX::Node * | GetNode (size_t index) const |
MCORE_INLINE EMotionFX::Node * | GetFirstNode () const |
MCORE_INLINE EMotionFX::Actor * | GetActor (size_t index) const |
MCORE_INLINE EMotionFX::Actor * | GetFirstActor () const |
MCORE_INLINE EMotionFX::ActorInstance * | GetActorInstance (size_t index) const |
MCORE_INLINE EMotionFX::ActorInstance * | GetFirstActorInstance () const |
MCORE_INLINE EMotionFX::AnimGraph * | GetAnimGraph (size_t index) const |
MCORE_INLINE EMotionFX::AnimGraph * | GetFirstAnimGraph () const |
EMotionFX::Actor * | GetSingleActor () const |
EMotionFX::ActorInstance * | GetSingleActorInstance () const |
MCORE_INLINE EMotionFX::Motion * | GetMotion (size_t index) const |
MCORE_INLINE EMotionFX::Motion * | GetFirstMotion () const |
EMotionFX::Motion * | GetSingleMotion () const |
MCORE_INLINE EMotionFX::MotionInstance * | GetMotionInstance (size_t index) const |
MCORE_INLINE EMotionFX::MotionInstance * | GetFirstMotionInstance () const |
MCORE_INLINE void | RemoveNode (size_t index) |
MCORE_INLINE void | RemoveActor (size_t index) |
MCORE_INLINE void | RemoveActorInstance (size_t index) |
MCORE_INLINE void | RemoveMotion (size_t index) |
MCORE_INLINE void | RemoveMotionInstance (size_t index) |
MCORE_INLINE void | RemoveAnimGraph (size_t index) |
void | RemoveNode (EMotionFX::Node *node) |
void | RemoveActor (EMotionFX::Actor *actor) |
void | RemoveActorInstance (EMotionFX::ActorInstance *actorInstance) |
void | RemoveMotion (EMotionFX::Motion *motion) |
void | RemoveMotionInstance (EMotionFX::MotionInstance *motionInstance) |
void | RemoveAnimGraph (EMotionFX::AnimGraph *animGraph) |
MCORE_INLINE bool | CheckIfHasNode (EMotionFX::Node *node) const |
MCORE_INLINE bool | CheckIfHasActor (EMotionFX::Actor *actor) const |
MCORE_INLINE bool | CheckIfHasActorInstance (EMotionFX::ActorInstance *actorInstance) const |
MCORE_INLINE bool | CheckIfHasMotion (EMotionFX::Motion *motion) const |
MCORE_INLINE bool | CheckIfHasAnimGraph (EMotionFX::AnimGraph *animGraph) const |
MCORE_INLINE bool | CheckIfHasMotionInstance (EMotionFX::MotionInstance *motionInstance) const |
MCORE_INLINE void | ClearActorSelection () |
MCORE_INLINE void | ClearActorInstanceSelection () |
MCORE_INLINE void | ClearNodeSelection () |
MCORE_INLINE void | ClearMotionSelection () |
MCORE_INLINE void | ClearMotionInstanceSelection () |
MCORE_INLINE void | ClearAnimGraphSelection () |
void | Log () |
void | MakeValid () |
const AZStd::vector< EMotionFX::MotionInstance * > & | GetSelectedMotionInstances () |
Collect all motion instances of selected motions played on any of the selected actor instances. | |
A selection list stores links to objects which are selected at a specific time stamp in a scene.
CommandSystem::SelectionList::SelectionList | ( | ) |
The default constructor. Creates an empty selection list.
CommandSystem::SelectionList::~SelectionList | ( | ) |
The destructor.
void CommandSystem::SelectionList::Add | ( | SelectionList & | selection | ) |
Add a complete selection list to this one. Select motionobjects without replacing the old selection.
selection | The selection list which will be added to the selection. |
void CommandSystem::SelectionList::AddActor | ( | EMotionFX::Actor * | actor | ) |
Add actor
void CommandSystem::SelectionList::AddActorInstance | ( | EMotionFX::ActorInstance * | actorInstance | ) |
Add an actor instance to the selection list. Select actor instance without replacing the old selection.
actorInstance | The actor which will be added to the selection. |
void CommandSystem::SelectionList::AddAnimGraph | ( | EMotionFX::AnimGraph * | animGraph | ) |
Add an anim graph to the selection list. Selects anim graph without replacing the old selection.
animGraph | The anim graph which will be added to the selection. |
void CommandSystem::SelectionList::AddMotion | ( | EMotionFX::Motion * | motion | ) |
Add a motion to the selection list. Select motion without replacing the old selection.
motion | The motion which will be added to the selection. |
void CommandSystem::SelectionList::AddMotionInstance | ( | EMotionFX::MotionInstance * | motionInstance | ) |
Add a motion instance to the selection list. Select motion instance without replacing the old selection.
motion | The motion instance which will be added to the selection. |
void CommandSystem::SelectionList::AddNode | ( | EMotionFX::Node * | node | ) |
Add a node to the selection list. Select node without replacing the old selection.
node | The node which will be added to the selection. |
|
inline |
Has actor
|
inline |
Check if a given actor instance is selected / is in this selection list.
node | A pointer to the actor instance to be checked. |
|
inline |
Check if a given anim graph is in this selection list.
animGraph | The anim graph to check for. |
|
inline |
Check if a given motion is selected / is in this selection list.
node | A pointer to the motion to be checked. |
|
inline |
Check if a given motion instance is selected / is in this selection list.
node | A pointer to the motion instance to be checked. |
|
inline |
Check if a given node is selected / is in this selection list.
node | A pointer to the node to be checked. |
void CommandSystem::SelectionList::Clear | ( | ) |
Clear the selection list. This will unselect all objects.
|
inline |
Get the given actor from the selection list.
index | The index of the actor to get from the selection list. |
|
inline |
Get the given actor instance from the selection list.
index | The index of the actor instance to get from the selection list. |
|
inline |
Get the given anim graph from the selection list.
index | The index of the anim graph to get from the selection list. |
|
inline |
Get the first actor from the selection list.
|
inline |
Get the first actor instance from the selection list.
|
inline |
Get the first anim graph from the selection list.
|
inline |
Get the first motion from the selection list.
|
inline |
Get the first motion instance from the selection list.
|
inline |
Get the first node from the selection list.
bool CommandSystem::SelectionList::GetIsEmpty | ( | ) | const |
Check whether or not the selection list contains any objects.
|
inline |
Get the given motion from the selection list.
index | The index of the motion to get from the selection list. |
|
inline |
Get the given motion instance from the selection list.
index | The index of the motion instance to get from the selection list. |
|
inline |
Get the given node from the selection list.
index | The index of the node to get from the selection list. |
|
inline |
Get the number of selected actor instances.
|
inline |
Get the number of selected actors
|
inline |
Get the number of selected anim graphs.
|
inline |
Get the number of selected motion instances.
|
inline |
Get the number of selected motions.
|
inline |
Get the number of selected nodes.
MCORE_INLINE size_t CommandSystem::SelectionList::GetNumTotalItems | ( | ) | const |
Get the total number of selected objects.
EMotionFX::Actor* CommandSystem::SelectionList::GetSingleActor | ( | ) | const |
Get the single selected actor.
EMotionFX::ActorInstance* CommandSystem::SelectionList::GetSingleActorInstance | ( | ) | const |
Get the single selected actor instance.
EMotionFX::Motion* CommandSystem::SelectionList::GetSingleMotion | ( | ) | const |
Get the single selected motion.
void CommandSystem::SelectionList::RemoveActor | ( | EMotionFX::Actor * | actor | ) |
Remove the given actor instance from the selection list.
actorInstance | The actor instance to be removed from the selection list. |
|
inline |
Remove the given actor instance from the selection list.
index | The index of the actor instance to be removed from the selection list. |
void CommandSystem::SelectionList::RemoveActorInstance | ( | EMotionFX::ActorInstance * | actorInstance | ) |
Remove the given actor instance from the selection list.
actorInstance | The actor instance to be removed from the selection list. |
|
inline |
Remove the given actor instance from the selection list.
index | The index of the actor instance to be removed from the selection list. |
void CommandSystem::SelectionList::RemoveAnimGraph | ( | EMotionFX::AnimGraph * | animGraph | ) |
Remove the given anim graph from the selection list.
animGraph | The anim graph to be removed from the list. |
|
inline |
Remove the given anim graph from the selection list.
index | The index of the anim graph to remove from the selection list. |
void CommandSystem::SelectionList::RemoveMotion | ( | EMotionFX::Motion * | motion | ) |
Remove the given motion from the selection list.
motion | The motion to be removed from the selection list. |
|
inline |
Remove the given motion from the selection list.
index | The index of the motion to be removed from the selection list. |
void CommandSystem::SelectionList::RemoveMotionInstance | ( | EMotionFX::MotionInstance * | motionInstance | ) |
Remove the given motion instance from the selection list.
motionInstance | The motion instance to be removed from the selection list. |
|
inline |
Remove the given motion instance from the selection list.
index | The index of the motion instance to be removed from the selection list. |
void CommandSystem::SelectionList::RemoveNode | ( | EMotionFX::Node * | node | ) |
Remove the given node from the selection list.
node | The node to be removed from the selection list. |
|
inline |
Remove the given node from the selection list.
index | The index of the node to be removed from the selection list. |