BTK  0.3dev.0
Open-source library to visualize/process biomechanical data
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
btk::MeasureData< Derived > Class Template Reference

Template class to store data for any kind of measurement. More...

#include <btkMeasure.h>

Inheritance diagram for btk::MeasureData< Derived >:
Inheritance graph
[legend]

Public Types

typedef MeasureTraits< Derived >
::Values 
Values
 Measures' values along the time.
 
- Public Types inherited from btk::DataObject
typedef btkSharedPtr< const
DataObject
ConstPointer
 
typedef btkNullPtr< DataObjectNullPointer
 
typedef btkSharedPtr< DataObjectPointer
 
- Public Types inherited from btk::Object
typedef btkSharedPtr< const
Object
ConstPointer
 
typedef btkSharedPtr< ObjectPointer
 

Public Member Functions

ValuesGetValues ()
 
const ValuesGetValues () const
 
void SetValues (const Values &v)
 
- Public Member Functions inherited from btk::DataObject
DataObjectGetParent () 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

 MeasureData (int frameNumber)
 
 MeasureData (const MeasureData &toCopy)
 
MeasureDataoperator= (const MeasureData &)
 
- 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

MeasureData< Derived >::Values m_Values
 Values of the measure.
 
- 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 ()
 

Detailed Description

template<typename Derived>
class btk::MeasureData< Derived >

Template class to store data for any kind of measurement.

Template Parameters
DerivedClass representing a kind of measurement (Point, Analog, etc.)

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.

Constructor & Destructor Documentation

template<class Derived >
btk::MeasureData< Derived >::MeasureData ( int  frameNumber)
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.

template<class Derived >
btk::MeasureData< Derived >::MeasureData ( const MeasureData< Derived > &  toCopy)
protected

Copy constructor

Member Function Documentation

template<typename Derived>
Values& btk::MeasureData< Derived >::GetValues ( )
inline

Returns values of the measure. The exact output type depend of the Derived class

template<typename Derived>
const Values& btk::MeasureData< Derived >::GetValues ( ) const
inline

Returns values of the measure. The exact output type depend of the Derived class

template<typename Derived>
MeasureData& btk::MeasureData< Derived >::operator= ( const MeasureData< Derived > &  )
protected

Simply set the new values

template<typename Derived>
void btk::MeasureData< Derived >::SetValues ( const Values v)

Sets values for the measure. The exact input type depend of the Derived class