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.
EMotionFX::SkeletonModel Class Reference

Inherits QAbstractItemModel, and EMotionFX::ActorEditorNotificationBus::Handler.

Public Types

enum  ColumnIndex {
  COLUMN_NAME , COLUMN_RAGDOLL_LIMIT , COLUMN_RAGDOLL_COLLIDERS , COLUMN_HITDETECTION_COLLIDERS ,
  COLUMN_CLOTH_COLLIDERS , COLUMN_SIMULATED_JOINTS , COLUMN_SIMULATED_COLLIDERS
}
 
enum  Role {
  ROLE_NODE_INDEX = Qt::UserRole , ROLE_POINTER , ROLE_ACTOR_POINTER , ROLE_ACTOR_INSTANCE_POINTER ,
  ROLE_BONE , ROLE_HASMESH , ROLE_RAGDOLL , ROLE_HITDETECTION ,
  ROLE_CLOTH , ROLE_SIMULATED_JOINT , ROLE_SIMULATED_OBJECT_COLLIDER , ROLE_IS_CHARACTER_ROOT_NODE
}
 

Public Member Functions

QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const override
 
QModelIndex parent (const QModelIndex &child) const override
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
QVariant headerData (int section, Qt::Orientation orientation, int role) const override
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 
bool setData (const QModelIndex &index, const QVariant &value, int role) override
 
QModelIndex GetModelIndex (Node *node) const
 
QModelIndexList GetModelIndicesForFullSkeleton () const
 
QItemSelectionModel & GetSelectionModel ()
 
void SetCheckable (bool isCheckable)
 
void ForEach (const AZStd::function< void(const QModelIndex &modelIndex)> &func)
 
void ActorSelectionChanged (Actor *actor) override
 
void ActorInstanceSelectionChanged (EMotionFX::ActorInstance *actorInstance) override
 
SkeletonGetSkeleton () const
 
ActorGetActor () const
 
ActorInstanceGetActorInstance () const
 

Static Public Member Functions

static bool IndexIsRootNode (const QModelIndex &idx)
 
static bool IndicesContainRootNode (const QModelIndexList &indices)
 

Static Public Attributes

static int s_defaultIconSize
 
static const char * s_jointIconPath
 
static const char * s_clothColliderIconPath
 
static const char * s_hitDetectionColliderIconPath
 
static const char * s_ragdollColliderIconPath
 
static const char * s_ragdollJointLimitIconPath
 
static const char * s_simulatedJointIconPath
 
static const char * s_simulatedColliderIconPath
 
static const char * s_characterIconPath
 

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