10 #include <AtomsCore/Globals.h>
11 #include <AtomsCore/AtomsMath.h>
12 #include <AtomsCore/JointPose.h>
50 inline const std::string& name()
const;
56 inline void setName(
const std::string& name);
62 inline unsigned short id()
const;
68 inline void setId(
unsigned short id);
80 inline void setRotation(
const Quaternion& rotation);
86 inline const Vector3& scale()
const;
92 inline void setScale(
const Vector3& scale);
98 inline const Vector3& translation()
const;
104 inline void setTranslation(
const Vector3& translation);
134 inline void setParent(
JointPtr parent);
140 inline unsigned short numChildren()
const;
197 ATOMSCORE_EXPORT std::ostream& operator<<(std::ostream& os,
const AtomsCore::Joint& joint);
199 #include "Joint.impl.h"
Joint class.
Definition: Joint.h:30
void setMatrix(const Matrix &matrix)
Sets the joint matrix.
Joint & operator=(const Joint &ptr)
Assign operator.
JointCPtr child(unsigned short i) const
Gets a child joint.
bool isChildOf(unsigned short index) const
Check if this joint is a child of index.
Matrix matrix() const
Gets the joint matrix.
bool removeChild(unsigned short index)
Removes a child joint.
void removeChildren()
Removes children.
bool addChild(JointPtr joint)
Adds a child joint.
JointPtr child(unsigned short i)
Gets a child joint.
Joint(const Joint &rhs)
Copy constructor.
Joint pose.
Definition: JointPose.h:20
AtomsCore namespace.
Definition: Agent.h:344
Joint * JointPtr
Joint pointer.
Definition: Joint.h:18
AtomsMath::Quaternion Quaternion
Quaternion class.
Definition: AtomsMath.h:67
const Joint * JointCPtr
Joint const pointer.
Definition: Joint.h:22
AtomsMath::Vector3 Vector3
Vector3 class.
Definition: AtomsMath.h:57
AtomsMath::Matrix Matrix
Matrix class.
Definition: AtomsMath.h:63
std::vector< JointPtr > JointPtrArray
Vector fo joint pointers.
Definition: Joint.h:24