ITK  4.0.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
itk::GiftiMeshIO Class Reference

This class defines how to read and write Gifti file format. More...

#include <itkGiftiMeshIO.h>

Inheritance diagram for itk::GiftiMeshIO:
Collaboration diagram for itk::GiftiMeshIO:

List of all members.

Public Types

typedef SmartPointer< const SelfConstPointer
typedef Matrix< double, 4, 4 > DirectionType
typedef MapContainer< int,
RGBAPixelType
LabelColorContainer
typedef
LabelColorContainer::Pointer 
LabelColorContainerPointer
typedef MapContainer< int,
std::string > 
LabelNameContainer
typedef LabelNameContainer::Pointer LabelNameContainerPointer
typedef SmartPointer< SelfPointer
typedef RGBAPixel< float > RGBAPixelType
typedef GiftiMeshIO Self
typedef Superclass::SizeValueType SizeValueType
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 DirectionTypeGetDirection ()
LabelColorContainerPointer GetLabelColorTable ()
LabelNameContainerPointer GetLabelNameTable ()
virtual const char * GetNameOfClass () const
virtual bool GetReadPointData () const
virtual void ReadCellData (void *buffer)
virtual void ReadCells (void *buffer)
virtual void ReadMeshInformation ()
virtual void ReadPointData (void *buffer)
virtual void ReadPointDataOff ()
virtual void ReadPointDataOn ()
virtual void ReadPoints (void *buffer)
void SetDirection (const DirectionType direction)
void SetLabelColorTable (const LabelColorContainer *colorMap)
void SetLabelNameTable (const LabelNameContainer *labelMap)
virtual void SetReadPointData (bool _arg)
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

template<class TInput , class TOutput >
void ConvertBuffer (TInput *input, TOutput *output, SizeValueType numberOfElements)
 GiftiMeshIO ()
void PrintSelf (std::ostream &os, Indent indent) const
virtual ~GiftiMeshIO ()

Private Member Functions

 GiftiMeshIO (const Self &)
void operator= (const Self &)

Private Attributes

DirectionType m_Direction
gifti_image * m_GiftiImage
bool m_ReadPointData

Detailed Description

This class defines how to read and write Gifti file format.

Definition at line 39 of file itkGiftiMeshIO.h.


Member Typedef Documentation

Reimplemented from itk::MeshIOBase.

Definition at line 45 of file itkGiftiMeshIO.h.

typedef Matrix< double, 4, 4 > itk::GiftiMeshIO::DirectionType

Definition at line 49 of file itkGiftiMeshIO.h.

Definition at line 51 of file itkGiftiMeshIO.h.

Definition at line 53 of file itkGiftiMeshIO.h.

Definition at line 52 of file itkGiftiMeshIO.h.

Definition at line 54 of file itkGiftiMeshIO.h.

Reimplemented from itk::MeshIOBase.

Definition at line 46 of file itkGiftiMeshIO.h.

Definition at line 50 of file itkGiftiMeshIO.h.

Standard class typedefs.

Reimplemented from itk::MeshIOBase.

Definition at line 43 of file itkGiftiMeshIO.h.

Reimplemented from itk::MeshIOBase.

Definition at line 48 of file itkGiftiMeshIO.h.

Reimplemented from itk::MeshIOBase.

Definition at line 44 of file itkGiftiMeshIO.h.


Constructor & Destructor Documentation

itk::GiftiMeshIO::GiftiMeshIO ( ) [protected]
virtual itk::GiftiMeshIO::~GiftiMeshIO ( ) [protected, virtual]
itk::GiftiMeshIO::GiftiMeshIO ( const Self ) [private]

Member Function Documentation

virtual bool itk::GiftiMeshIO::CanReadFile ( const char *  FileNameToRead) [virtual]

Determine if the file can be read with this MeshIO implementation.

Parameters:
FileNameToReadThe name of the file to test for reading.
Postcondition:
Sets classes MeshIOBase::m_FileName variable to be FileNameToWrite
Returns:
Returns true if this MeshIO can read the file specified.

Implements itk::MeshIOBase.

virtual bool itk::GiftiMeshIO::CanWriteFile ( const char *  FileNameToWrite) [virtual]

Determine if the file can be written with this MeshIO implementation.

Parameters:
FileNameToWriteThe name of the file to test for writing.
Postcondition:
Sets classes MeshIOBase::m_FileName variable to be FileNameToWrite
Returns:
Returns true if this MeshIO can write the file specified.

Implements itk::MeshIOBase.

template<class TInput , class TOutput >
void itk::GiftiMeshIO::ConvertBuffer ( TInput *  input,
TOutput *  output,
SizeValueType  numberOfElements 
) [inline, protected]

Definition at line 127 of file itkGiftiMeshIO.h.

virtual::itk::LightObject::Pointer itk::GiftiMeshIO::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 DirectionType& itk::GiftiMeshIO::GetDirection ( ) [virtual]
LabelColorContainerPointer itk::GiftiMeshIO::GetLabelColorTable ( )
LabelNameContainerPointer itk::GiftiMeshIO::GetLabelNameTable ( )
virtual const char* itk::GiftiMeshIO::GetNameOfClass ( ) const [virtual]

Run-time type information (and related methods).

Reimplemented from itk::MeshIOBase.

virtual bool itk::GiftiMeshIO::GetReadPointData ( ) const [virtual]
static Pointer itk::GiftiMeshIO::New ( ) [static]

Method for creation through the object factory.

Reimplemented from itk::LightProcessObject.

void itk::GiftiMeshIO::operator= ( const Self ) [private]

This method causes the filter to generate its output.

Reimplemented from itk::MeshIOBase.

void itk::GiftiMeshIO::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::GiftiMeshIO::ReadCellData ( void *  buffer) [virtual]

Implements itk::MeshIOBase.

virtual void itk::GiftiMeshIO::ReadCells ( void *  buffer) [virtual]

Implements itk::MeshIOBase.

virtual void itk::GiftiMeshIO::ReadMeshInformation ( ) [virtual]

Set the spacing and dimension information for the set filename.

Implements itk::MeshIOBase.

virtual void itk::GiftiMeshIO::ReadPointData ( void *  buffer) [virtual]

Implements itk::MeshIOBase.

virtual void itk::GiftiMeshIO::ReadPointDataOff ( ) [virtual]
virtual void itk::GiftiMeshIO::ReadPointDataOn ( ) [virtual]
virtual void itk::GiftiMeshIO::ReadPoints ( void *  buffer) [virtual]

Reads the data from disk into the memory buffer provided.

Implements itk::MeshIOBase.

void itk::GiftiMeshIO::SetDirection ( const DirectionType  direction)
void itk::GiftiMeshIO::SetLabelColorTable ( const LabelColorContainer colorMap)
void itk::GiftiMeshIO::SetLabelNameTable ( const LabelNameContainer labelMap)
virtual void itk::GiftiMeshIO::SetReadPointData ( bool  _arg) [virtual]
virtual void itk::GiftiMeshIO::Write ( ) [virtual]

Implements itk::MeshIOBase.

virtual void itk::GiftiMeshIO::WriteCellData ( void *  buffer) [virtual]

Implements itk::MeshIOBase.

virtual void itk::GiftiMeshIO::WriteCells ( void *  buffer) [virtual]

Implements itk::MeshIOBase.

virtual void itk::GiftiMeshIO::WriteMeshInformation ( ) [virtual]

Set the spacing and dimension information for the set filename.

Implements itk::MeshIOBase.

virtual void itk::GiftiMeshIO::WritePointData ( void *  buffer) [virtual]

Implements itk::MeshIOBase.

virtual void itk::GiftiMeshIO::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.


Member Data Documentation

Definition at line 141 of file itkGiftiMeshIO.h.

gifti_image* itk::GiftiMeshIO::m_GiftiImage [private]

Definition at line 140 of file itkGiftiMeshIO.h.

Definition at line 139 of file itkGiftiMeshIO.h.


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