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 unsigned int id_
An unique identifier, guaranteed to be part of a continuous sequence starting from 0...
Represents a single joint in the skeleton.
Joint * child(size_t _index)
Returns the child joint with the given index.
std::string name_
the name of the joint
void setParent(Joint *_newParent, SkeletonT< PointT > &_skeleton)
access parent of the joint
ChildIter begin()
Returns an iterator on the joints children.
bool selected()
Returns the joint's selection state.
void setSelected(bool _selected)
Set the joint's selction state.
unsigned int id()
returns the joint id
std::string name()
Access the name of the joint.
std::vector< Joint * > children_
The joints children, use the JointT::getChild method to access them.
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.
ChildIter end()
Returns the end iterator for the joints children.
size_t size()
Returns the number of children.
JointT(const Joint &_other)
Constructor.