BTK
0.3dev.0
Open-source library to visualize/process biomechanical data
|
Measure with d dimensions along the time. More...
#include <btkMeasure.h>
Public Types | |
typedef MeasureTraits< Derived > ::Data | Data |
Associated data with the measure. | |
typedef MeasureTraits< Derived > ::Values | Values |
Values of the measure. | |
Public Types inherited from btk::DataObjectLabeled | |
typedef btkSharedPtr< const DataObjectLabeled > | ConstPointer |
typedef btkSharedPtr < DataObjectLabeled > | Pointer |
Public Types inherited from btk::DataObject | |
typedef btkSharedPtr< const DataObject > | ConstPointer |
typedef btkNullPtr< DataObject > | NullPointer |
typedef btkSharedPtr< DataObject > | Pointer |
Public Types inherited from btk::Object | |
typedef btkSharedPtr< const Object > | ConstPointer |
typedef btkSharedPtr< Object > | Pointer |
Public Member Functions | |
Measure< Derived >::Data::Pointer | GetData () const |
int | GetFrameNumber () const |
Measure< Derived >::Values & | GetValues () |
const Measure< Derived >::Values & | GetValues () const |
void | SetData (typename Measure< Derived >::Data::Pointer data, bool parenting=true) |
void | SetFrameNumber (int frameNumber) |
void | SetValues (const Values &v) |
Public Member Functions inherited from btk::DataObjectLabeled | |
const std::string & | GetDescription () const |
const std::string & | GetLabel () const |
virtual void | SetDescription (const std::string &description) |
virtual void | SetLabel (const std::string &label) |
Public Member Functions inherited from btk::DataObject | |
DataObject * | GetParent () const |
bool | HasParent () const |
void | Modified () |
void | SetParent (DataObject *parent) |
void | Update () |
Public Member Functions inherited from btk::Object | |
unsigned long int | GetTimestamp () const |
Protected Member Functions | |
Measure (const std::string &label, const std::string &desc="") | |
Measure (const std::string &label, int frameNumber, const std::string &desc="") | |
Measure (const Measure &toCopy) | |
Protected Member Functions inherited from btk::DataObjectLabeled | |
DataObjectLabeled (const std::string &label="", const std::string &description="") | |
DataObjectLabeled (const DataObjectLabeled &toCopy) | |
Protected Member Functions inherited from btk::DataObject | |
DataObject () | |
DataObject (const DataObject &toCopy) | |
virtual | ~DataObject () |
Protected Member Functions inherited from btk::Object | |
Object () | |
Object (const Object &toCopy) | |
virtual | ~Object () |
Protected Attributes | |
Measure< Derived >::Data::Pointer | mp_Data |
Smart pointer associated with the data of this measurement. | |
Protected Attributes inherited from btk::DataObjectLabeled | |
std::string | m_Description |
std::string | m_Label |
Protected Attributes inherited from btk::Object | |
unsigned long int | m_Timestamp |
Additional Inherited Members | |
Static Public Member Functions inherited from btk::DataObject | |
static NullPointer | Null () |
Measure with d dimensions along the time.
The measures are stored in a matrix. The measures' dimensions correspond to the columns of the matrix. The frames correspond to the line.
|
protected |
Constructor.
|
protected |
Constructor.
|
protected |
Copy constructor. Timestamp, source and parent are reset.
|
inline |
Returns the data associated to this measure.
int btk::Measure< Derived >::GetFrameNumber | ( | ) | const |
Returns the number of frames.
Measure< Derived >::Values & btk::Measure< Derived >::GetValues | ( | ) |
Convenient method to return the values associated with measure's data.
const Measure< Derived >::Values & btk::Measure< Derived >::GetValues | ( | ) | const |
Convenient method to return the values associated with measure's data.
void btk::Measure< Derived >::SetData | ( | typename Measure< Derived >::Data::Pointer | data, |
bool | parenting = true |
||
) |
Set the data for this object. By default, this object will take the parent of the data. Setting parenting to false will unparent the old data, assign the new one, but doesn't set the point as its parent.
void btk::Measure< Derived >::SetFrameNumber | ( | int | frameNumber | ) |
Sets the number of frames. The input frameNumber must be greater than 0.
void btk::Measure< Derived >::SetValues | ( | const Values & | v | ) |
Convenient method to set the values of the measure's data. If no data exists for this object, then it is created and the values are assigned to it.