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