Represents a single joint in the skeleton. More...
|typedef JointT< PointT >||Joint|
typedef std::vector< Joint * >|
|JointT (const Joint &_other)|
|JointT (Joint *_parent, std::string _name="")|
|Default constructor, creates a joint pointing to the origin. |
|unsigned int||id ()|
|returns the joint id |
|void||setParent (Joint *_newParent, SkeletonT< PointT > &_skeleton)|
|access parent of the joint |
|Joint *||parent ()|
|Returns the parent joint. |
|Access the name of the joint. |
|void||setName (std::string _name)|
Use this iterator to access the joints child nodes
|Returns an iterator on the joints children. |
|Returns the end iterator for the joints children. |
|Returns the number of children. |
|Joint *||child (size_t _index)|
|Returns the child joint with the given index. |
change and access selection state
|Returns the joint's selection state. |
|void||setSelected (bool _selected)|
|Set the joint's selction state. |
|void||setId (unsigned int _id)|
|The parent joint; this joint is in its parents JointT::children_ vector. It's 0 for the root node. |
|std::vector< Joint * >||children_|
|The joints children, use the JointT::getChild method to access them. |
|the name of the joint |
|An unique identifier, guaranteed to be part of a continuous sequence starting from 0. |
Represents a single joint in the skeleton.
The skeleton is made up by a hierarchical structure of joints. The joints don't store their position themselves. Instead, the joint positions are stored in poses. The poses are managed by the AnimationT class and the skeleton.
Copy constructor, creates an incomplete copy of the given joint.
The parent and children cannot be copied, since they are provided as pointers only. Furthermore, if a skeleton is being cloned the corresponding joints may not yet exist in this skeleton.
access parent of the joint
Replaces this joints parent joint.
After calling this method this joint is child of the given joint. Keep in mind that this will corrupt the joints local matrix in all poses.
|_newParent||The new parent joint|
|_skeleton||The skeleton this joint is part of, used to update the poses local matrices|