ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkFreeSurferBinaryMeshIO.h>
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef FreeSurferBinaryMeshIO | Self |
typedef Superclass::SizeValueType | SizeValueType |
typedef Superclass::StreamOffsetType | StreamOffsetType |
typedef MeshIOBase | Superclass |
Public Member Functions | |
virtual bool | CanReadFile (const char *FileNameToRead) |
virtual bool | CanWriteFile (const char *FileNameToWrite) |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const char * | GetNameOfClass () const |
virtual void | ReadCellData (void *buffer) |
virtual void | ReadCells (void *buffer) |
virtual void | ReadMeshInformation () |
virtual void | ReadPointData (void *buffer) |
virtual void | ReadPoints (void *buffer) |
virtual void | Write () |
virtual void | WriteCellData (void *buffer) |
virtual void | WriteCells (void *buffer) |
virtual void | WriteMeshInformation () |
virtual void | WritePointData (void *buffer) |
virtual void | WritePoints (void *buffer) |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
void | CloseFile () |
FreeSurferBinaryMeshIO () | |
void | OpenFile () |
void | PrintSelf (std::ostream &os, Indent indent) const |
template<typename TInput , typename TOutput > | |
void | ReadCellsBuffer (TInput *input, TOutput *output) |
template<typename T > | |
void | WriteCells (T *buffer, std::ofstream &outputFile) |
template<typename T > | |
void | WritePointData (T *buffer, std::ofstream &outputFile) |
template<typename T > | |
void | WritePoints (T *buffer, std::ofstream &outputFile) |
virtual | ~FreeSurferBinaryMeshIO () |
Private Member Functions | |
FreeSurferBinaryMeshIO (const Self &) | |
void | operator= (const Self &) |
Private Attributes | |
StreamOffsetType | m_FilePosition |
itk::uint32_t | m_FileTypeIdentifier |
std::ifstream | m_InputFile |
This class defins how to read Freesurfer binary surface file format. To use IO factory, define the suffix as *.fsb.
Definition at line 37 of file itkFreeSurferBinaryMeshIO.h.
typedef SmartPointer< const Self > itk::FreeSurferBinaryMeshIO::ConstPointer |
Reimplemented from itk::MeshIOBase.
Definition at line 43 of file itkFreeSurferBinaryMeshIO.h.
typedef SmartPointer< Self > itk::FreeSurferBinaryMeshIO::Pointer |
Reimplemented from itk::MeshIOBase.
Definition at line 44 of file itkFreeSurferBinaryMeshIO.h.
Standard class typedefs.
Reimplemented from itk::MeshIOBase.
Definition at line 41 of file itkFreeSurferBinaryMeshIO.h.
Reimplemented from itk::MeshIOBase.
Definition at line 46 of file itkFreeSurferBinaryMeshIO.h.
Type for representing size of bytes, and or positions along a file
Reimplemented from itk::MeshIOBase.
Definition at line 47 of file itkFreeSurferBinaryMeshIO.h.
Reimplemented from itk::MeshIOBase.
Definition at line 42 of file itkFreeSurferBinaryMeshIO.h.
itk::FreeSurferBinaryMeshIO::FreeSurferBinaryMeshIO | ( | ) | [protected] |
virtual itk::FreeSurferBinaryMeshIO::~FreeSurferBinaryMeshIO | ( | ) | [inline, protected, virtual] |
Definition at line 169 of file itkFreeSurferBinaryMeshIO.h.
itk::FreeSurferBinaryMeshIO::FreeSurferBinaryMeshIO | ( | const Self & | ) | [private] |
virtual bool itk::FreeSurferBinaryMeshIO::CanReadFile | ( | const char * | FileNameToRead | ) | [virtual] |
Determine if the file can be read with this MeshIO implementation.
FileNameToRead | The name of the file to test for reading. |
Implements itk::MeshIOBase.
virtual bool itk::FreeSurferBinaryMeshIO::CanWriteFile | ( | const char * | FileNameToWrite | ) | [virtual] |
Determine if the file can be written with this MeshIO implementation.
FileNameToWrite | The name of the file to test for writing. |
Implements itk::MeshIOBase.
void itk::FreeSurferBinaryMeshIO::CloseFile | ( | ) | [protected] |
virtual::itk::LightObject::Pointer itk::FreeSurferBinaryMeshIO::CreateAnother | ( | void | ) | const [virtual] |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::LightProcessObject.
virtual const char* itk::FreeSurferBinaryMeshIO::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::MeshIOBase.
static Pointer itk::FreeSurferBinaryMeshIO::New | ( | ) | [static] |
Method for creation through the object factory.
Reimplemented from itk::LightProcessObject.
void itk::FreeSurferBinaryMeshIO::OpenFile | ( | ) | [protected] |
void itk::FreeSurferBinaryMeshIO::operator= | ( | const Self & | ) | [private] |
This method causes the filter to generate its output.
Reimplemented from itk::MeshIOBase.
void itk::FreeSurferBinaryMeshIO::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::MeshIOBase.
virtual void itk::FreeSurferBinaryMeshIO::ReadCellData | ( | void * | buffer | ) | [virtual] |
Implements itk::MeshIOBase.
virtual void itk::FreeSurferBinaryMeshIO::ReadCells | ( | void * | buffer | ) | [virtual] |
Implements itk::MeshIOBase.
void itk::FreeSurferBinaryMeshIO::ReadCellsBuffer | ( | TInput * | input, |
TOutput * | output | ||
) | [inline, protected] |
Read cells from a data buffer, used when writting mesh
point identifiers start from the third elements, first element is cellType, the second is numberOfPoints.
Reimplemented from itk::MeshIOBase.
Definition at line 135 of file itkFreeSurferBinaryMeshIO.h.
virtual void itk::FreeSurferBinaryMeshIO::ReadMeshInformation | ( | ) | [virtual] |
Set the spacing and dimension information for the set filename.
Implements itk::MeshIOBase.
virtual void itk::FreeSurferBinaryMeshIO::ReadPointData | ( | void * | buffer | ) | [virtual] |
Implements itk::MeshIOBase.
virtual void itk::FreeSurferBinaryMeshIO::ReadPoints | ( | void * | buffer | ) | [virtual] |
Reads the data from disk into the memory buffer provided.
Implements itk::MeshIOBase.
virtual void itk::FreeSurferBinaryMeshIO::Write | ( | ) | [virtual] |
Implements itk::MeshIOBase.
virtual void itk::FreeSurferBinaryMeshIO::WriteCellData | ( | void * | buffer | ) | [virtual] |
Implements itk::MeshIOBase.
virtual void itk::FreeSurferBinaryMeshIO::WriteCells | ( | void * | buffer | ) | [virtual] |
Implements itk::MeshIOBase.
void itk::FreeSurferBinaryMeshIO::WriteCells | ( | T * | buffer, |
std::ofstream & | outputFile | ||
) | [inline, protected] |
Write cells to utput stream
Definition at line 121 of file itkFreeSurferBinaryMeshIO.h.
References itk::uint32_t.
virtual void itk::FreeSurferBinaryMeshIO::WriteMeshInformation | ( | ) | [virtual] |
Set the spacing and dimension information for the set filename.
Implements itk::MeshIOBase.
virtual void itk::FreeSurferBinaryMeshIO::WritePointData | ( | void * | buffer | ) | [virtual] |
Implements itk::MeshIOBase.
void itk::FreeSurferBinaryMeshIO::WritePointData | ( | T * | buffer, |
std::ofstream & | outputFile | ||
) | [inline, protected] |
Write points to output stream
Definition at line 154 of file itkFreeSurferBinaryMeshIO.h.
virtual void itk::FreeSurferBinaryMeshIO::WritePoints | ( | void * | buffer | ) | [virtual] |
Writes the data to disk from the memory buffer provided. Make sure that the IORegions has been set properly.
Implements itk::MeshIOBase.
void itk::FreeSurferBinaryMeshIO::WritePoints | ( | T * | buffer, |
std::ofstream & | outputFile | ||
) | [inline, protected] |
Write points to output stream
Definition at line 103 of file itkFreeSurferBinaryMeshIO.h.
Definition at line 181 of file itkFreeSurferBinaryMeshIO.h.
Definition at line 182 of file itkFreeSurferBinaryMeshIO.h.
std::ifstream itk::FreeSurferBinaryMeshIO::m_InputFile [private] |
Definition at line 183 of file itkFreeSurferBinaryMeshIO.h.