BTK
0.3dev.0
Open-source library to visualize/process biomechanical data
|
Coordinates of a point in a 3D space along the time. More...
#include <btkPoint.h>
Public Types | |
typedef btkSharedPtr< const Point > | ConstPointer |
typedef btkNullPtr< Point > | NullPointer |
typedef btkSharedPtr< Point > | Pointer |
typedef MeasureTraits< Point > ::Residuals | Residuals |
enum | Type { Marker = 0, Angle, Force, Moment, Power, Scalar, Reaction } |
Public Types inherited from btk::Measure< Point > | |
typedef MeasureTraits< Point > ::Data | Data |
Associated data with the measure. | |
typedef MeasureTraits< Point > ::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 | |
Pointer | Clone () const |
Residuals & | GetResiduals () |
const Residuals & | GetResiduals () const |
Type | GetType () const |
void | SetDataSlice (int idx, double x, double y, double z, double res=0.0) |
void | SetResiduals (const Residuals &r) |
void | SetType (Point::Type t) |
virtual | ~Point () |
Public Member Functions inherited from btk::Measure< Point > | |
Measure< Point >::Data::Pointer | GetData () const |
int | GetFrameNumber () const |
Measure< Point >::Values & | GetValues () |
const Measure< Point >::Values & | GetValues () const |
void | SetData (typename Measure< Point >::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 |
Static Public Member Functions | |
static Pointer | New (const std::string &label="", Type t=Marker, const std::string &desc="") |
Creates a smart pointer associated with a Point object. More... | |
static Pointer | New (int frameNumber) |
Creates a smart pointer associated with a Point object. More... | |
static Pointer | New (const std::string &label, int frameNumber, Type t=Marker, const std::string &desc="") |
Creates a smart pointer associated with a Point object. More... | |
static NullPointer | Null () |
Static Public Member Functions inherited from btk::DataObject | |
static NullPointer | Null () |
Protected Member Functions | |
Point (const std::string &label, Type t, const std::string &desc) | |
Point (const std::string &label, int frameNumber, Type t, const std::string &desc) | |
Protected Member Functions inherited from btk::Measure< Point > | |
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 () |
Additional Inherited Members | |
Protected Attributes inherited from btk::Measure< Point > | |
Measure< Point >::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 |
Coordinates of a point in a 3D space along the time.
The coordinates of the point are generally measured by an acquisition system. For each frame, the 3D value has a residual. It can provide informations on the quality of these 3D data (residual associated with the reconstruction of the marker). These values are stored in a Point::Data object.
This class is also used to represent angles, forces, moments, powers and scalars. To know/set the type of the point, you can use the methods GetType() and SetType().
Note: In some case the values at specific frames are invalid (mainly due to marker's occlusion). To detect if the frame is invalid, you can check the residual which will be set to the value -1. It is the same thing if you want to set the frame as invalid. You can set the values of the frames to 0 and the associated residual to -1.
Note: A residual with a value equal to 0 means that this frame has been post-processed (interpolation, filtering, etc.).
Smart pointer associated with a const Point object.
Smart pointer associated with a Point object.
Vector of double representing the residuals associated with each frames (if applicable).
enum btk::Point::Type |
Enums used to specify the point's type.
|
inlinevirtual |
Empty destructor.
|
protected |
Constructor.
|
protected |
Constructor.
|
inline |
Returns a deep copy of this object.
Point::Residuals & btk::Point::GetResiduals | ( | ) |
Gets the residuals.
Convenient method to return the residuals associated with measure's data.
const Point::Residuals & btk::Point::GetResiduals | ( | ) | const |
Gets the residuals.
Convenient method to return the residuals associated with measure's data.
|
inline |
Returns the point's type.
|
inlinestatic |
Creates a smart pointer associated with a Point object.
The Point created has no values.
The call of this function must be followed by the use of the method Point::SetFrameNumber as no btk::Point::Data object is allocated.
|
inlinestatic |
Creates a smart pointer associated with a Point object.
The point created has an empty label and a number of frames equals to framenumber.
The number of frames must be equal or greater than 0. In case the number of frame is set to 0, no btk::Point::Data object is allocated. You will need to use the method Measure::SetFrameNumber if you want to assign point data later.
|
inlinestatic |
Creates a smart pointer associated with a Point object.
The point created has a label and a number of frames equals to label and framenumber respectively.
The number of frames must be equal or greater than 0. In case the number of frame is set to 0, no btk::Point::Data object is allocated. You will need to use the method Measure::SetFrameNumber if you want to assign point data later.
|
inlinestatic |
Static function to return a null pointer.
|
inline |
Convenient method to easily set the coordinates x, y, z and the residual res for the given idx.
void btk::Point::SetResiduals | ( | const Residuals & | r | ) |
Sets the residuals.
void btk::Point::SetType | ( | Point::Type | t | ) |
Sets the point's type.