BTK
0.3dev.0
Open-source library to visualize/process biomechanical data
|
Template class to store data for any kind of measurement. More...
#include <btkMeasure.h>
Public Types | |
typedef MeasureTraits< Derived > ::Values | Values |
Measures' values along the time. | |
![]() | |
typedef btkSharedPtr< const DataObject > | ConstPointer |
typedef btkNullPtr< DataObject > | NullPointer |
typedef btkSharedPtr< DataObject > | Pointer |
![]() | |
typedef btkSharedPtr< const Object > | ConstPointer |
typedef btkSharedPtr< Object > | Pointer |
Public Member Functions | |
Values & | GetValues () |
const Values & | GetValues () const |
void | SetValues (const Values &v) |
![]() | |
DataObject * | GetParent () const |
bool | HasParent () const |
void | Modified () |
void | SetParent (DataObject *parent) |
void | Update () |
![]() | |
unsigned long int | GetTimestamp () const |
Protected Member Functions | |
MeasureData (int frameNumber) | |
MeasureData (const MeasureData &toCopy) | |
MeasureData & | operator= (const MeasureData &) |
![]() | |
DataObject () | |
DataObject (const DataObject &toCopy) | |
virtual | ~DataObject () |
![]() | |
Object () | |
Object (const Object &toCopy) | |
virtual | ~Object () |
Protected Attributes | |
MeasureData< Derived >::Values | m_Values |
Values of the measure. | |
![]() | |
unsigned long int | m_Timestamp |
Additional Inherited Members | |
![]() | |
static NullPointer | Null () |
Template class to store data for any kind of measurement.
Currently this class store a matrix defined by the given number of frames. The template Derived used by this class gives the number of columns (components) of the measure.
To add a new type of data (for example for 2D pressure mat or insole), you have to inherit from this class and add the method Resize(int frameNumber). You can also add other informations in inherited classes, like btk::Point::Data which contains reconstruction residuals.
|
protected |
Constructor which initialize the data with a matrix of zero. The given frameNumber corresponds to the matrix's row. The number of colums is automatically determined based on the given template Derived.
|
protected |
Copy constructor
|
inline |
Returns values of the measure. The exact output type depend of the Derived class
|
inline |
Returns values of the measure. The exact output type depend of the Derived class
|
protected |
Simply set the new values
void btk::MeasureData< Derived >::SetValues | ( | const Values & | v | ) |
Sets values for the measure. The exact input type depend of the Derived class