BTK  0.3dev.0
Open-source library to visualize/process biomechanical data
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
btk::MOMFileIO Class Reference

Interface to read/write MOM files. More...

#include <btkMOMFileIO.h>

Inheritance diagram for btk::MOMFileIO:
Inheritance graph
[legend]

Public Types

typedef btkSharedPtr< const
MOMFileIO
ConstPointer
 
typedef btkSharedPtr< MOMFileIOPointer
 
- 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)
 
virtual void Read (const std::string &filename, Acquisition::Pointer output)
 
- 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 ExtensionsGetSupportedExtensions () 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

 MOMFileIO ()
 
- 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
 

Detailed Description

Interface to read/write MOM files.

The MOM file format is used in the Elite acquisition system (BTS, Milan, Italy). It contains moments for the lower limbs. Moreover, the unit of the moments in this file format is Nm and is converted in Nmm to be coherent (trajectories in millimeters. Moment's force platform in Nmm). The data are reordered to fit into a btk::Acquisition object. It means, that the data are stored by joint instead by plane.

Member Typedef Documentation

Smart pointer associated with a const MOMFileIO object.

Smart pointer associated with a MOMFileIO object.

Constructor & Destructor Documentation

btk::MOMFileIO::MOMFileIO ( )
protected

Constructor.

Member Function Documentation

bool btk::MOMFileIO::CanReadFile ( const std::string &  filename)
virtual

Only check if the file extension correspond to MOM.

Implements btk::AcquisitionFileIO.

static MOMFileIO::Pointer btk::MOMFileIO::New ( )
inlinestatic

Create a MOMFileIO object an return it as a smart pointer.

void btk::MOMFileIO::Read ( const std::string &  filename,
Acquisition::Pointer  output 
)
virtual

Read the file designated by filename and fill output.

Implements btk::AcquisitionFileIO.