BTK
0.3dev.0
Open-source library to visualize/process biomechanical data
|
Interface to read/write AMTIForcePlatform files. More...
#include <btkAMTIForcePlatformFileIO.h>
Public Types | |
typedef btkSharedPtr< const AMTIForcePlatformFileIO > | ConstPointer |
typedef btkSharedPtr < AMTIForcePlatformFileIO > | Pointer |
Public Types inherited from btk::AcquisitionFileIO | |
enum | ByteOrder { OrderNotApplicable = 0, IEEE_LittleEndian, VAX_LittleEndian, IEEE_BigEndian } |
typedef btkSharedPtr< const AcquisitionFileIO > | ConstPointer |
enum | FileType { TypeNotApplicable, ASCII, Binary } |
enum | InternalsUpdateOption { UpdateNotApplicable = 0, NoUpdate = UpdateNotApplicable, DataBasedUpdate = 1, MetaDataBasedUpdate = 2, FileFormatOption = 512 } |
typedef btkSharedPtr < AcquisitionFileIO > | Pointer |
enum | StorageFormat { StorageNotApplicable = 0, Float = -1, Integer = 1 } |
Public Member Functions | |
virtual bool | CanReadFile (const std::string &filename) |
const std::vector< float > & | GetCorners () const |
const std::vector< float > & | GetDimensions () const |
const std::vector< float > & | GetOrigin () const |
virtual void | Read (const std::string &filename, Acquisition::Pointer output) |
void | SetDimensions (float width, float length, float height) |
void | SetGeometry (const std::vector< float > &corners, const std::vector< float > &origin) |
Public Member Functions inherited from btk::AcquisitionFileIO | |
virtual bool | CanWriteFile (const std::string &filename)=0 |
ByteOrder | GetByteOrder () const |
std::string | GetByteOrderAsString () const |
FileType | GetFileType () const |
int | GetInternalsUpdateOptions () const |
StorageFormat | GetStorageFormat () const |
std::string | GetStorageFormatAsString () const |
virtual const Extensions & | GetSupportedExtensions () const =0 |
bool | HasInternalsUpdateOption (int option) const |
void | SetByteOrder (ByteOrder b) |
void | SetInternalsUpdateOptions (int options) |
void | SetStorageFormat (StorageFormat s) |
virtual void | Write (const std::string &filename, Acquisition::Pointer input)=0 |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from btk::AcquisitionFileIO | |
static bool | HasReadOperation () |
static bool | HasWriteOperation () |
Protected Member Functions | |
AMTIForcePlatformFileIO () | |
Protected Member Functions inherited from btk::AcquisitionFileIO | |
AcquisitionFileIO (FileType f=TypeNotApplicable, ByteOrder b=OrderNotApplicable, StorageFormat s=StorageNotApplicable, int internalsUpdate=UpdateNotApplicable) | |
void | SetFileType (FileType f) |
virtual | ~AcquisitionFileIO () |
Additional Inherited Members | |
Protected Attributes inherited from btk::AcquisitionFileIO | |
ByteOrder | m_ByteOrder |
FileType | m_FileType |
int | m_InternalsUpdate |
StorageFormat | m_StorageFormat |
Interface to read/write AMTIForcePlatform files.
An AMTI Force Platform file contains 6 analog channels data stored in ASCII format corresponding to the forces and the moments measured by one AMTI force plateform. This kind of force platform is known as a force platform of type II (2). The forces are measured in newtons (N), while the moments are measured in newton meters (N.m). It is important to not that the returned forces and moments are the reaction measured by the force platform and not the measure itself. This choice was done to fit with the format stored in a btk::Acquisition object.
Smart pointer associated with a const AMTIForcePlatformFileIO object.
Smart pointer associated with a AMTIForcePlatformFileIO object.
|
protected |
Constructor.
|
virtual |
Checks if the first line contains 7 numbers.
Implements btk::AcquisitionFileIO.
|
inline |
Returns the position of the corners as a vector of 12x1 elements. The first three elements represent the coordinate of the first corner, etc.
|
inline |
Returns the dimensions of the force platform.
|
inline |
Returns the coordinates of the origin of the force platform.
|
inlinestatic |
Create a AMTIForcePlatformFileIO object an return it as a smart pointer.
|
virtual |
Read the file designated by filename and fill output.
Implements btk::AcquisitionFileIO.
void btk::AMTIForcePlatformFileIO::SetDimensions | ( | float | width, |
float | length, | ||
float | height | ||
) |
Set the dimensions of the force platform which will be used for the next readings.
void btk::AMTIForcePlatformFileIO::SetGeometry | ( | const std::vector< float > & | corners, |
const std::vector< float > & | origin | ||
) |
Set the geometry (corners and origin) of the force platform which will be used for the next readings.