BTK
0.3dev.0
Open-source library to visualize/process biomechanical data
|
Writer of acquisition data into acquisition file (C3D, TRC, ...). More...
Public Types | |
typedef btkSharedPtr< const AcquisitionFileWriter > | ConstPointer |
typedef btkSharedPtr < AcquisitionFileWriter > | Pointer |
Public Types inherited from btk::ProcessObject | |
typedef btkSharedPtr< const ProcessObject > | ConstPointer |
typedef btkSharedPtr < ProcessObject > | Pointer |
Public Types inherited from btk::Object | |
typedef btkSharedPtr< const Object > | ConstPointer |
typedef btkSharedPtr< Object > | Pointer |
Public Member Functions | |
AcquisitionFileIO::Pointer | GetAcquisitionIO () |
AcquisitionFileIO::ConstPointer | GetAcquisitionIO () const |
const std::string & | GetFilename () const |
Acquisition::Pointer | GetInput () |
void | SetAcquisitionIO (AcquisitionFileIO::Pointer io=AcquisitionFileIO::Pointer()) |
void | SetFilename (const std::string &filename) |
void | SetInput (Acquisition::Pointer input) |
virtual | ~AcquisitionFileWriter () |
Public Member Functions inherited from btk::ProcessObject | |
int | GetInputNumber () const |
int | GetOutputNumber () const |
int | GetValidInputNumber () const |
void | ResetState () |
void | Update () |
Public Member Functions inherited from btk::Object | |
unsigned long int | GetTimestamp () const |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
AcquisitionFileWriter () | |
virtual void | GenerateData () |
Acquisition::Pointer | GetInput (int idx) |
virtual DataObject::Pointer | MakeOutput (int idx) |
Protected Member Functions inherited from btk::ProcessObject | |
int | GetInputIndex (DataObject::Pointer input) |
DataObject::Pointer | GetNthInput (int idx) |
DataObject::ConstPointer | GetNthInput (int idx) const |
DataObject::Pointer | GetNthOutput (int idx) |
DataObject::ConstPointer | GetNthOutput (int idx) const |
int | GetOutputIndex (DataObject::Pointer output) |
bool | IsModified () const |
void | Modified () |
ProcessObject () | |
void | SetInputNumber (int num) |
virtual void | SetNthInput (int idx, DataObject::Pointer input) |
virtual void | SetNthOutput (int idx, DataObject::Pointer output) |
void | SetOutputNumber (int num) |
virtual | ~ProcessObject () |
Protected Member Functions inherited from btk::Object | |
Object () | |
Object (const Object &toCopy) | |
virtual | ~Object () |
Protected Attributes | |
AcquisitionFileIO::Pointer | m_AcquisitionIO |
std::string | m_Filename |
Protected Attributes inherited from btk::Object | |
unsigned long int | m_Timestamp |
Writer of acquisition data into acquisition file (C3D, TRC, ...).
Smart pointer associated with a const AcquisitionFileWriter object.
Smart pointer associated with an AcquisitionFileWriter object.
|
inlinevirtual |
Empty destructor.
|
protected |
Constructor. Sets the number of input equal to one. No output.
|
protectedvirtual |
Check the file integrety, find a AcquisitionIO helper class if no one has been specified and finally read the file.
Implements btk::ProcessObject.
|
inline |
Returns a Pointer associated with the AcquisitionIO helper class
|
inline |
Returns a ConstPointer associated with the AcquisitionIO helper class
|
inline |
Gets the filename of the file to write.
|
inline |
Returns the Acquisition to write by a AcquisitionIO helper class.
|
inlineprotected |
Returns the input at the index idx.
|
protectedvirtual |
Whatever the specified index, this method generates a runtime exception.
Implements btk::ProcessObject.
|
inlinestatic |
Creates a AcquisitionFileWriter process.
void btk::AcquisitionFileWriter::SetAcquisitionIO | ( | AcquisitionFileIO::Pointer | io = AcquisitionFileIO::Pointer() | ) |
Set the AcquisitionIO helper class. This method forces the AcquisitionIO to be used to write a particular file. The AcquisitionIO is oftenly created via the object factory mechanism that determines whether a particular AcquisitionIO can write a certain file (see AcquisitionFileIOFactory).
void btk::AcquisitionFileWriter::SetFilename | ( | const std::string & | filename | ) |
Specifies the file to write. This is forwarded to the IO instance.
|
inline |
Sets the Acquisition to write by a AcquisitionIO helper class.
|
protected |
AcquisitionFileIO helper class to read the acquisition data and fill an Acquisition object.
|
protected |
Path of the file to read.