14 return static_cast<unsigned short>(m_jointPose.size());
19 assert(m_jointPose.size() > index);
20 return m_jointPose[index];
25 assert(m_jointPose.size() > index);
26 return m_jointPose[index];
36 return m_jointMetadata[index];
41 return m_jointMetadata;
46 return m_jointMetadata;
51 m_jointMetadata[index] = data;
56 m_jointMetadata[index].addEntry(key, data);
61 m_jointMetadata[index].addEntry(key, data);
66 m_jointMetadata.clear();
76 m_direction.setValue(direction);
86 return m_poseMetadata;
91 return m_poseMetadata;
101 m_poseMetadata.
clear();
106 m_inParentSpace = flag;
111 return m_inParentSpace;
Joint pose.
Definition: JointPose.h:20
unsigned short numJoints() const
Gets the number of joints.
Definition: Pose.impl.h:12
JointPose & jointPose(unsigned short index)
Gets the joint pose.
Definition: Pose.impl.h:17
MapMetadata & jointMetadata(unsigned short index)
Gets the joint metadata.
Definition: Pose.impl.h:34
const AtomsCore::Vector3 & getDirection() const
Gets the pose direction.
Definition: Pose.impl.h:79
MapMetadata & poseMetadata()
Gets the pose metadata map.
Definition: Pose.impl.h:84
void setJointMetadata(unsigned short index, const MapMetadata &data)
Adds joint metadata.
Definition: Pose.impl.h:49
void setJointPose(unsigned short index, const JointPose &jointPose)
Sets the joint pose.
Definition: Pose.impl.h:29
void setInParentSpace(bool flag)
Sets use parent space flag.
Definition: Pose.impl.h:104
void clearAllPose()
Clears all pose.
Definition: Pose.impl.h:69
void clearJointsMetadata()
Clears all joint metadata.
Definition: Pose.impl.h:64
void addPoseMetadata(const std::string &key, Metadata *data)
Adds the pose metadata.
Definition: Pose.impl.h:94
bool inParentSpace() const
Gets the parent space flag.
Definition: Pose.impl.h:109
std::map< unsigned short, MapMetadata > JointMetadataMap
Joint metadata map.
Definition: Pose.h:36
void setDirection(const AtomsCore::Vector3 &direction)
Sets the pose direction.
Definition: Pose.impl.h:74
void clearPoseMetadata()
Clears the pose metadata.
Definition: Pose.impl.h:99
void addJointMetadata(unsigned short index, const std::string &key, Metadata *data)
Adds joint metadata.
Definition: Pose.impl.h:59
JointMetadataMap & jointsMetadata()
Gets the joints metadata map.
Definition: Pose.impl.h:39
AtomsCore namespace.
Definition: Agent.h:344
AtomsMath::Vector3 Vector3
Vector3 class.
Definition: AtomsMath.h:57