ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkOFFMeshIO.h>
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef OFFMeshIO | 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 () |
OFFMeshIO () | |
void | OpenFile () |
void | PrintSelf (std::ostream &os, Indent indent) const |
template<typename T > | |
void | ReadCellsBufferAsAscii (T *buffer, std::ifstream &inputFile) |
template<typename T > | |
void | WriteCellsAsAscii (T *buffer, std::ofstream &outputFile) |
template<typename TOutput , typename TInput > | |
void | WriteCellsAsBinary (TInput *buffer, std::ofstream &outputFile) |
virtual | ~OFFMeshIO () |
template<typename TInput , typename TOutput > | |
void | ReadCellsBuffer (TInput *input, TOutput *output) |
Private Member Functions | |
OFFMeshIO (const Self &) | |
void | operator= (const Self &) |
Private Attributes | |
std::ifstream | m_InputFile |
StreamOffsetType | m_PointsStartPosition |
bool | m_TriangleCellType |
this class defines how to read and write Object file format.
Definition at line 34 of file itkOFFMeshIO.h.
typedef SmartPointer< const Self > itk::OFFMeshIO::ConstPointer |
Reimplemented from itk::MeshIOBase.
Definition at line 40 of file itkOFFMeshIO.h.
typedef SmartPointer< Self > itk::OFFMeshIO::Pointer |
Reimplemented from itk::MeshIOBase.
Definition at line 41 of file itkOFFMeshIO.h.
typedef OFFMeshIO itk::OFFMeshIO::Self |
Standard class typedefs.
Reimplemented from itk::MeshIOBase.
Definition at line 38 of file itkOFFMeshIO.h.
Reimplemented from itk::MeshIOBase.
Definition at line 43 of file itkOFFMeshIO.h.
Type for representing size of bytes, and or positions along a file
Reimplemented from itk::MeshIOBase.
Definition at line 44 of file itkOFFMeshIO.h.
typedef MeshIOBase itk::OFFMeshIO::Superclass |
Reimplemented from itk::MeshIOBase.
Definition at line 39 of file itkOFFMeshIO.h.
itk::OFFMeshIO::OFFMeshIO | ( | ) | [protected] |
virtual itk::OFFMeshIO::~OFFMeshIO | ( | ) | [inline, protected, virtual] |
Definition at line 175 of file itkOFFMeshIO.h.
itk::OFFMeshIO::OFFMeshIO | ( | const Self & | ) | [private] |
virtual bool itk::OFFMeshIO::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::OFFMeshIO::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::OFFMeshIO::CloseFile | ( | ) | [protected] |
virtual::itk::LightObject::Pointer itk::OFFMeshIO::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::OFFMeshIO::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::MeshIOBase.
static Pointer itk::OFFMeshIO::New | ( | ) | [static] |
Method for creation through the object factory.
Reimplemented from itk::LightProcessObject.
void itk::OFFMeshIO::OpenFile | ( | ) | [protected] |
void itk::OFFMeshIO::operator= | ( | const Self & | ) | [private] |
This method causes the filter to generate its output.
Reimplemented from itk::MeshIOBase.
void itk::OFFMeshIO::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::OFFMeshIO::ReadCellData | ( | void * | buffer | ) | [virtual] |
Implements itk::MeshIOBase.
virtual void itk::OFFMeshIO::ReadCells | ( | void * | buffer | ) | [virtual] |
Implements itk::MeshIOBase.
void itk::OFFMeshIO::ReadCellsBuffer | ( | TInput * | input, |
TOutput * | output | ||
) | [inline, protected] |
Read cells from a data buffer, used when writting cells. This function write all kind of cells as it is stored in cells container. It is used when cells container have only one kind of cells
Reimplemented from itk::MeshIOBase.
Definition at line 122 of file itkOFFMeshIO.h.
void itk::OFFMeshIO::ReadCellsBufferAsAscii | ( | T * | buffer, |
std::ifstream & | inputFile | ||
) | [inline, protected] |
Read buffer as ascii stream
Definition at line 100 of file itkOFFMeshIO.h.
virtual void itk::OFFMeshIO::ReadMeshInformation | ( | ) | [virtual] |
Set the spacing and dimension information for the set filename.
Implements itk::MeshIOBase.
virtual void itk::OFFMeshIO::ReadPointData | ( | void * | buffer | ) | [virtual] |
Implements itk::MeshIOBase.
virtual void itk::OFFMeshIO::ReadPoints | ( | void * | buffer | ) | [virtual] |
Reads the data from disk into the memory buffer provided.
Implements itk::MeshIOBase.
virtual void itk::OFFMeshIO::Write | ( | ) | [virtual] |
Implements itk::MeshIOBase.
virtual void itk::OFFMeshIO::WriteCellData | ( | void * | buffer | ) | [virtual] |
Implements itk::MeshIOBase.
virtual void itk::OFFMeshIO::WriteCells | ( | void * | buffer | ) | [virtual] |
Implements itk::MeshIOBase.
void itk::OFFMeshIO::WriteCellsAsAscii | ( | T * | buffer, |
std::ofstream & | outputFile | ||
) | [inline, protected] |
Definition at line 143 of file itkOFFMeshIO.h.
void itk::OFFMeshIO::WriteCellsAsBinary | ( | TInput * | buffer, |
std::ofstream & | outputFile | ||
) | [inline, protected] |
Definition at line 163 of file itkOFFMeshIO.h.
virtual void itk::OFFMeshIO::WriteMeshInformation | ( | ) | [virtual] |
Set the spacing and dimension information for the set filename.
Implements itk::MeshIOBase.
virtual void itk::OFFMeshIO::WritePointData | ( | void * | buffer | ) | [virtual] |
Implements itk::MeshIOBase.
virtual void itk::OFFMeshIO::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.
std::ifstream itk::OFFMeshIO::m_InputFile [private] |
Definition at line 187 of file itkOFFMeshIO.h.
Definition at line 188 of file itkOFFMeshIO.h.
bool itk::OFFMeshIO::m_TriangleCellType [private] |
Definition at line 189 of file itkOFFMeshIO.h.