ITK  4.1.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Protected Member Functions | Private Attributes
itk::TransformIOBase Class Reference

#include <itkTransformIOBase.h>

+ Inheritance diagram for itk::TransformIOBase:
+ Collaboration diagram for itk::TransformIOBase:

List of all members.

Public Types

typedef std::list
< ConstTransformPointer
ConstTransformListType
typedef TransformType::ConstPointer ConstTransformPointer
typedef SmartPointer< SelfPointer
typedef TransformIOBase Self
typedef LightProcessObject Superclass
typedef std::list
< TransformPointer
TransformListType
typedef TransformType::Pointer TransformPointer
typedef TransformBase TransformType

Public Member Functions

virtual bool CanReadFile (const char *)=0
virtual bool CanWriteFile (const char *)=0
virtual const char * GetNameOfClass () const
virtual void Read ()=0
void SetTransformList (ConstTransformListType &transformList)
virtual void Write ()=0
virtual void SetFileName (const char *_arg)
virtual const char * GetFileName () const
TransformListTypeGetTransformList ()
TransformListTypeGetReadTransformList ()
ConstTransformListTypeGetWriteTransformList ()

Protected Member Functions

void CreateTransform (TransformPointer &ptr, const std::string &ClassName)
void OpenStream (std::ofstream &out, bool binary)

Private Attributes

bool m_AppendMode
std::string m_FileName
TransformListType m_ReadTransformList
ConstTransformListType m_WriteTransformList
virtual void SetAppendMode (bool _arg)
virtual bool GetAppendMode () const
virtual void AppendModeOn ()
virtual void AppendModeOff ()
 TransformIOBase ()
virtual ~TransformIOBase ()
void PrintSelf (std::ostream &os, Indent indent) const

Detailed Description

Abstract superclass defining the Transform IO interface.

TransformIOBase is a pure virtual base class for dervied classes that read/write transform data. It's used by the TransformFileReader and TransformFileWriter classes. End users don't directly manipulate classes derived from TransformIOBase; the TransformIOFactory is used by the Reader/Writer to pick a concrete derived class to do the actual reading/writing of transforms.

Definition at line 40 of file itkTransformIOBase.h.


Member Typedef Documentation

Definition at line 60 of file itkTransformIOBase.h.

Definition at line 59 of file itkTransformIOBase.h.

Reimplemented from itk::LightProcessObject.

Reimplemented in itk::HDF5TransformIO, and itk::MatlabTransformIO.

Definition at line 46 of file itkTransformIOBase.h.

Standard class typedefs

Reimplemented from itk::LightProcessObject.

Reimplemented in itk::HDF5TransformIO, and itk::MatlabTransformIO.

Definition at line 44 of file itkTransformIOBase.h.

Reimplemented from itk::LightProcessObject.

Reimplemented in itk::HDF5TransformIO, and itk::MatlabTransformIO.

Definition at line 45 of file itkTransformIOBase.h.

Reimplemented in itk::HDF5TransformIO, and itk::MatlabTransformIO.

Definition at line 58 of file itkTransformIOBase.h.

For writing, a const transform list gets passed in, for reading, a non-const transform list is created from the file.

Reimplemented in itk::HDF5TransformIO, and itk::MatlabTransformIO.

Definition at line 57 of file itkTransformIOBase.h.

Transform types

Reimplemented in itk::HDF5TransformIO, and itk::MatlabTransformIO.

Definition at line 49 of file itkTransformIOBase.h.


Constructor & Destructor Documentation

Set the writer to append to the specified file

virtual itk::TransformIOBase::~TransformIOBase ( ) [protected, virtual]

Set the writer to append to the specified file


Member Function Documentation

virtual void itk::TransformIOBase::AppendModeOff ( ) [virtual]

Set the writer to append to the specified file

virtual void itk::TransformIOBase::AppendModeOn ( ) [virtual]

Set the writer to append to the specified file

virtual bool itk::TransformIOBase::CanReadFile ( const char *  ) [pure virtual]

Determine the file type. Returns true if this TransformIO can read the file specified.

Implemented in itk::HDF5TransformIO, and itk::MatlabTransformIO.

virtual bool itk::TransformIOBase::CanWriteFile ( const char *  ) [pure virtual]

Determine the file type. Returns true if this TransformIO can read the file specified.

Implemented in itk::HDF5TransformIO, and itk::MatlabTransformIO.

void itk::TransformIOBase::CreateTransform ( TransformPointer ptr,
const std::string &  ClassName 
) [protected]
virtual bool itk::TransformIOBase::GetAppendMode ( ) const [virtual]

Set the writer to append to the specified file

virtual const char* itk::TransformIOBase::GetFileName ( ) const [virtual]

Set/Get the name of the file to be read.

virtual const char* itk::TransformIOBase::GetNameOfClass ( ) const [virtual]

Run-time type information (and related methods).

Reimplemented from itk::LightProcessObject.

Reimplemented in itk::HDF5TransformIO, and itk::MatlabTransformIO.

Get the list of transforms resulting from a file read

Definition at line 83 of file itkTransformIOBase.h.

Get the list of transforms resulting from a file read

Definition at line 82 of file itkTransformIOBase.h.

Get the list of transforms resulting from a file read

Definition at line 84 of file itkTransformIOBase.h.

void itk::TransformIOBase::OpenStream ( std::ofstream &  out,
bool  binary 
) [protected]
void itk::TransformIOBase::PrintSelf ( std::ostream &  os,
Indent  indent 
) const [protected, virtual]

Set the writer to append to the specified file

Reimplemented from itk::LightProcessObject.

virtual void itk::TransformIOBase::Read ( ) [pure virtual]

Reads the data from disk into the memory buffer provided.

Implemented in itk::HDF5TransformIO, and itk::MatlabTransformIO.

virtual void itk::TransformIOBase::SetAppendMode ( bool  _arg) [virtual]

Set the writer to append to the specified file

virtual void itk::TransformIOBase::SetFileName ( const char *  _arg) [virtual]

Set/Get the name of the file to be read.

Set the list of transforms before writing

virtual void itk::TransformIOBase::Write ( ) [pure virtual]

Writes the transform list to disk.

Implemented in itk::HDF5TransformIO, and itk::MatlabTransformIO.


Member Data Documentation

Definition at line 108 of file itkTransformIOBase.h.

std::string itk::TransformIOBase::m_FileName [private]

Definition at line 105 of file itkTransformIOBase.h.

Definition at line 106 of file itkTransformIOBase.h.

Definition at line 107 of file itkTransformIOBase.h.


The documentation for this class was generated from the following file: