|
c3d-utils
|
A LabeledSkeleton is a subject with a name for which the markers of a skeleton are linked to a label index (or point index). More...
#include <subjects.hpp>
Public Member Functions | |
| LabeledSkeleton (std::string const &name, SkeletonInfo const &skel_info) | |
| std::string | name () const |
| unsigned | label_count () const |
| std::vector< std::vector< int > > const & | point_index () const |
| void | set_name (std::string const &name) |
| void | set_index (int gr, int el, int val) |
A LabeledSkeleton is a subject with a name for which the markers of a skeleton are linked to a label index (or point index).
| UuIcsC3d::LabeledSkeleton::LabeledSkeleton | ( | std::string const & | name, |
| SkeletonInfo const & | skel_info | ||
| ) |
Constructor that takes the name of the subject and the SkeletonInfo that specifies the structure of the skeleton.
| unsigned UuIcsC3d::LabeledSkeleton::label_count | ( | ) | const [inline] |
Get the number of labels in this subject.
| std::string UuIcsC3d::LabeledSkeleton::name | ( | ) | const [inline] |
Get the subject name (the part before the first colon in the complete label.
| std::vector< std::vector<int> > const& UuIcsC3d::LabeledSkeleton::point_index | ( | ) | const [inline] |
point_index()[g][e] is the index in the point_data part of a frame belonging to element e in group g, which is a specific element in a skeleton_info group. The value is -1 if there is no such element.
| void UuIcsC3d::LabeledSkeleton::set_index | ( | int | gr, |
| int | el, | ||
| int | val | ||
| ) | [inline] |
Sets a value that will be reflected by future calls to point_index().
| void UuIcsC3d::LabeledSkeleton::set_name | ( | std::string const & | name | ) | [inline] |
Set the name for this subject.
1.7.4