BTK
0.3dev.0
Open-source library to visualize/process biomechanical data
|
Analog channel data along the time. More...
#include <btkAnalog.h>
Public Member Functions | |
Pointer | Clone () const |
Gain | GetGain () const |
int | GetOffset () const |
double | GetScale () const |
const std::string & | GetUnit () const |
void | SetDataSlice (int frame, double val) |
void | SetGain (Gain g) |
void | SetOffset (int o) |
void | SetScale (double s) |
void | SetUnit (const std::string &u) |
virtual | ~Analog () |
Public Member Functions inherited from btk::Measure< Analog > | |
Measure< Analog >::Data::Pointer | GetData () const |
int | GetFrameNumber () const |
Measure< Analog >::Values & | GetValues () |
const Measure< Analog >::Values & | GetValues () const |
void | SetData (typename Measure< Analog >::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="", const std::string &desc="") |
Creates a smart pointer associated with a Analog object. More... | |
static Pointer | New (int frameNumber) |
Creates a smart pointer associated with a Analog object. More... | |
static Pointer | New (const std::string &label, int frameNumber) |
Creates a smart pointer associated with a Analog object. More... | |
static NullPointer | Null () |
Static Public Member Functions inherited from btk::DataObject | |
static NullPointer | Null () |
Protected Member Functions | |
Analog (const std::string &label, const std::string &desc) | |
Analog (const std::string &label, int frameNumber, Gain g=Unknown) | |
Protected Member Functions inherited from btk::Measure< Analog > | |
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< Analog > | |
Measure< Analog >::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 |
Analog channel data along the time.
An analog channel is defined as:
The data samples are is stored in a Analog::Data object.
The use of the unit, scale, offset and gain are useful for other classes/methods. For example, when you save an acquisition in a file, analog's data are generally unscaled and written as integer, then the scale and offset are important.
Smart pointer associated with a const Analog object.
Smart pointer associated with a Analog object.
Analog' values along the time with 1 component (1 column).
enum btk::Analog::Gain |
Enums used to specify the analog gain.
|
inlinevirtual |
Empty destructor.
|
protected |
Constructor.
Constructor.
|
inline |
Deep copy of the current object.
|
inline |
Returns the analog gain.
|
inline |
Returns the analog offset value in bit which represents the 0 value.
|
inline |
Returns the scaling factor which can bu used to transform a ADC value into real value.
|
inline |
Returns the unit of the channel number.
|
inlinestatic |
Creates a smart pointer associated with a Analog object.
The measure created has no values.
The call of this function must be followed by the use of the method Measure::SetFrameNumber as no btk::Analog::Data object is allocated.
|
inlinestatic |
Creates a smart pointer associated with a Analog object.
The analog channel 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::Analog::Data object is allocated. You will need to use the method Measure::SetFrameNumber if you want to assign analog data later.
|
inlinestatic |
Creates a smart pointer associated with a Analog object.
The analog channel 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::Analog::Data object is allocated. You will need to use the method Measure::SetFrameNumber if you want to assign analog data later.
|
inlinestatic |
Static function to return a null pointer.
|
inline |
Convenient method to set easily the value val for the given frame index idx.
void btk::Analog::SetGain | ( | Gain | g | ) |
Sets the analog gain.
void btk::Analog::SetOffset | ( | int | o | ) |
Sets the analog offset.
void btk::Analog::SetScale | ( | double | s | ) |
Set the scaling factor.
void btk::Analog::SetUnit | ( | const std::string & | u | ) |
Sets the analog channel's unit.