55 template<
typename Po
intT>
65 template <
class Po
intT>
73 typedef typename Point::value_type Scalar;
75 typedef typename std::vector<Joint*>::iterator ChildIter;
79 JointT(
const Joint &_other);
80 JointT(Joint *_parent, std::string _name =
"");
85 inline unsigned int id();
99 inline ChildIter
begin();
100 inline ChildIter
end();
101 inline size_t size();
102 inline Joint *
child(
size_t _index);
115 inline std::string
name();
116 inline void setName(std::string _name);
124 inline void setId(
unsigned int _id);
135 #if defined(INCLUDE_TEMPLATES) && !defined(JOINTT_C)
136 #define JOINTT_TEMPLATES
JointT(const Joint &_other)
Constructor.
ChildIter begin()
Returns an iterator on the joints children.
std::string name()
Access the name of the joint.
Joint * child(size_t _index)
Returns the child joint with the given index.
std::vector< Joint * > children_
The joints children, use the JointT::getChild method to access them.
ChildIter end()
Returns the end iterator for the joints children.
bool selected()
Returns the joint's selection state.
Joint * parent_
The parent joint; this joint is in its parents JointT::children_ vector. It's 0 for the root node...
Joint * parent()
Returns the parent joint.
unsigned int id()
returns the joint id
std::string name_
the name of the joint
unsigned int id_
An unique identifier, guaranteed to be part of a continuous sequence starting from 0...
void setSelected(bool _selected)
Set the joint's selction state.
size_t size()
Returns the number of children.
Represents a single joint in the skeleton.
void setParent(Joint *_newParent, SkeletonT< PointT > &_skeleton)
access parent of the joint