ITK  4.3.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | List of all members
itk::VTKPolyDataMeshIO Class Reference

#include <itkVTKPolyDataMeshIO.h>

+ Inheritance diagram for itk::VTKPolyDataMeshIO:
+ Collaboration diagram for itk::VTKPolyDataMeshIO:

Detailed Description

This class defines how to read and write vtk legacy file format.

Author
Wanlin Zhu. Uviversity of New South Wales, Australia.

Definition at line 38 of file itkVTKPolyDataMeshIO.h.

Public Types

typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef std::vector
< SizeValueType
PointIdVector
 
typedef
PolylinesContainerType::Pointer 
PolylinesContainerPointer
 
typedef VectorContainer
< SizeValueType, PointIdVector
PolylinesContainerType
 
typedef VTKPolyDataMeshIO Self
 
typedef Superclass::SizeValueType SizeValueType
 
typedef std::stringstream StringStreamType
 
typedef std::string StringType
 
typedef std::vector< StringTypeStringVectorType
 
typedef MeshIOBase Superclass
 
- Public Types inherited from itk::MeshIOBase
typedef std::vector< std::string > ArrayOfExtensionsType
 
enum  ByteOrder {
  BigEndian,
  LittleEndian,
  OrderNotApplicable
}
 
enum  CellGeometryType {
  VERTEX_CELL = 0,
  LINE_CELL,
  TRIANGLE_CELL,
  QUADRILATERAL_CELL,
  POLYGON_CELL,
  TETRAHEDRON_CELL,
  HEXAHEDRON_CELL,
  QUADRATIC_EDGE_CELL,
  QUADRATIC_TRIANGLE_CELL,
  LAST_ITK_CELL,
  MAX_ITK_CELLS = 255
}
 
typedef SmartPointer< const SelfConstPointer
 
enum  FileType {
  ASCII,
  BINARY,
  TYPENOTAPPLICABLE
}
 
enum  IOComponentType {
  UNKNOWNCOMPONENTTYPE,
  UCHAR,
  CHAR,
  USHORT,
  SHORT,
  UINT,
  INT,
  ULONG,
  LONG,
  LONGLONG,
  ULONGLONG,
  FLOAT,
  DOUBLE,
  LDOUBLE
}
 
enum  IOPixelType {
  UNKNOWNPIXELTYPE,
  SCALAR,
  RGB,
  RGBA,
  OFFSET,
  VECTOR,
  POINT,
  COVARIANTVECTOR,
  SYMMETRICSECONDRANKTENSOR,
  DIFFUSIONTENSOR3D,
  COMPLEX,
  FIXEDARRAY,
  ARRAY,
  MATRIX,
  VARIABLELENGTHVECTOR,
  VARIABLESIZEMATRIX
}
 
typedef SmartPointer< SelfPointer
 
typedef MeshIOBase Self
 
typedef IdentifierType SizeValueType
 
typedef std::streamoff StreamOffsetType
 
typedef LightProcessObject Superclass
 
- Public Types inherited from itk::LightProcessObject
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef LightProcessObject Self
 
typedef Object Superclass
 
- Public Types inherited from itk::Object
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef Object Self
 
typedef LightObject Superclass
 
- Public Types inherited from itk::LightObject
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef LightObject Self
 

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)
 
- Public Member Functions inherited from itk::MeshIOBase
std::string GetByteOrderAsString (ByteOrder) const
 
unsigned int GetComponentSize (IOComponentType componentType) const
 
std::string GetComponentTypeAsString (IOComponentType) const
 
std::string GetFileTypeAsString (FileType) const
 
std::string GetPixelTypeAsString (IOPixelType) const
 
const ArrayOfExtensionsTypeGetSupportedReadExtensions () const
 
const ArrayOfExtensionsTypeGetSupportedWriteExtensions () const
 
void SetByteOrderToBigEndian ()
 
void SetByteOrderToLittleEndian ()
 
void SetFileTypeToASCII ()
 
void SetFileTypeToBinary ()
 
template<typename T >
void SetPixelType (const T &, bool UsePointPixel=true)
 
template<typename T >
void SetPixelType (const RGBPixel< T > &, bool UsePointPixel=true)
 
template<typename T >
void SetPixelType (const RGBAPixel< T > &, bool UsePointPixel=true)
 
template<typename T , unsigned int VLength>
void SetPixelType (const Vector< T, VLength > &, bool UsePointPixel=true)
 
template<typename T , unsigned int VLength>
void SetPixelType (const CovariantVector< T, VLength > &, bool UsePointPixel=true)
 
template<typename T , unsigned int VLength>
void SetPixelType (const FixedArray< T, VLength > &, bool UsePointPixel=true)
 
template<typename T , unsigned int VLength>
void SetPixelType (const SymmetricSecondRankTensor< T, VLength >, bool UsePointPixel=true)
 
template<typename T >
void SetPixelType (const DiffusionTensor3D< T > &, bool UsePointPixel=true)
 
template<typename T , unsigned int NR, unsigned int NC>
void SetPixelType (const Matrix< T, NR, NC > &, bool UsePointPixel=true)
 
template<typename T >
void SetPixelType (const std::complex< T > &, bool UsePointPixel=true)
 
template<typename T >
void SetPixelType (const Array< T > &array, bool UsePointPixel=true)
 
template<typename T >
void SetPixelType (const VariableLengthVector< T > &vector, bool UsePointPixel=true)
 
template<typename T >
void SetPixelType (const VariableSizeMatrix< T > &matrix, bool UsePointPixel=true)
 
virtual void SetFileName (const char *_arg)
 
virtual const char * GetFileName () const
 
virtual void SetPointPixelType (const IOPixelType _arg)
 
virtual IOPixelType GetPointPixelType () const
 
virtual void SetCellPixelType (const IOPixelType _arg)
 
virtual IOPixelType GetCellPixelType () const
 
virtual void SetPointComponentType (const IOComponentType _arg)
 
virtual IOComponentType GetPointComponentType () const
 
virtual void SetCellComponentType (const IOComponentType _arg)
 
virtual IOComponentType GetCellComponentType () const
 
virtual void SetPointPixelComponentType (const IOComponentType _arg)
 
virtual IOComponentType GetPointPixelComponentType () const
 
virtual void SetCellPixelComponentType (const IOComponentType _arg)
 
virtual IOComponentType GetCellPixelComponentType () const
 
virtual void SetNumberOfPointPixelComponents (unsigned int _arg)
 
virtual unsigned int GetNumberOfPointPixelComponents () const
 
virtual void SetNumberOfCellPixelComponents (unsigned int _arg)
 
virtual unsigned int GetNumberOfCellPixelComponents () const
 
virtual void SetPointDimension (unsigned int _arg)
 
virtual unsigned int GetPointDimension () const
 
virtual void SetNumberOfPoints (SizeValueType _arg)
 
virtual SizeValueType GetNumberOfPoints () const
 
virtual void SetNumberOfCells (SizeValueType _arg)
 
virtual SizeValueType GetNumberOfCells () const
 
virtual void SetNumberOfPointPixels (SizeValueType _arg)
 
virtual SizeValueType GetNumberOfPointPixels () const
 
virtual void SetNumberOfCellPixels (SizeValueType _arg)
 
virtual SizeValueType GetNumberOfCellPixels () const
 
virtual void SetCellBufferSize (SizeValueType _arg)
 
virtual SizeValueType GetCellBufferSize () const
 
virtual void SetUpdatePoints (bool _arg)
 
virtual bool GetUpdatePoints () const
 
virtual void SetUpdateCells (bool _arg)
 
virtual bool GetUpdateCells () const
 
virtual void SetUpdatePointData (bool _arg)
 
virtual bool GetUpdatePointData () const
 
virtual void SetUpdateCellData (bool _arg)
 
virtual bool GetUpdateCellData () const
 
virtual void SetFileType (const FileType _arg)
 
virtual FileType GetFileType () const
 
virtual void SetByteOrder (const ByteOrder _arg)
 
virtual ByteOrder GetByteOrder () const
 
virtual void SetUseCompression (bool _arg)
 
virtual bool GetUseCompression () const
 
virtual void UseCompressionOn ()
 
virtual void UseCompressionOff ()
 
- Public Member Functions inherited from itk::LightProcessObject
virtual void AbortGenerateDataOff ()
 
virtual void AbortGenerateDataOn ()
 
virtual const bool & GetAbortGenerateData ()
 
virtual void SetAbortGenerateData (bool _arg)
 
virtual void UpdateOutputData ()
 
void UpdateProgress (float amount)
 
virtual void SetProgress (float _arg)
 
virtual const float & GetProgress ()
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionaryGetMetaDataDictionary (void)
 
const MetaDataDictionaryGetMetaDataDictionary (void) const
 
virtual ModifiedTimeType GetMTime () const
 
virtual const TimeStampGetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
virtual void Register () const
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
void SetDebug (bool debugFlag) const
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
virtual void SetReferenceCount (int)
 
virtual void UnRegister () const
 
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
 itkCloneMacro (Self)
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

void PrintSelf (std::ostream &os, Indent indent) const
 
template<typename T >
void ReadCellDataBufferAsBINARY (std::ifstream &inputFile, T *buffer)
 
template<typename TInput , typename TOutput >
void ReadCellsBuffer (TInput *input, TOutput *output)
 
void ReadCellsBufferAsASCII (std::ifstream &inputFile, void *buffer)
 
void ReadCellsBufferAsBINARY (std::ifstream &inputFile, void *buffer)
 
template<typename T >
void ReadPointDataBufferAsBINARY (std::ifstream &inputFile, T *buffer)
 
template<typename T >
void ReadPointsBufferAsASCII (std::ifstream &inputFile, T *buffer)
 
template<typename T >
void UpdateCellInformation (T *buffer)
 
 VTKPolyDataMeshIO ()
 
template<typename T >
void WriteCellDataBufferAsASCII (std::ofstream &outputFile, T *buffer, const StringType &cellPixelComponentName)
 
template<typename T >
void WriteCellDataBufferAsBINARY (std::ofstream &outputFile, T *buffer, const StringType &cellPixelComponentName)
 
template<typename T >
void WriteColorScalarBufferAsASCII (std::ofstream &outputFile, T *buffer, unsigned int numberOfPixelComponents, SizeValueType numberOfPixels)
 
template<typename T >
void WriteColorScalarBufferAsBINARY (std::ofstream &outputFile, T *buffer, unsigned int numberOfPixelComponents, SizeValueType numberOfPixels)
 
template<typename T >
void WritePointDataBufferAsASCII (std::ofstream &outputFile, T *buffer, const StringType &pointPixelComponentName)
 
template<typename T >
void WritePointDataBufferAsBINARY (std::ofstream &outputFile, T *buffer, const StringType &pointPixelComponentName)
 
template<typename T >
void WritePointsBufferAsASCII (std::ofstream &outputFile, T *buffer, const StringType &pointComponentType)
 
template<typename T >
void WritePointsBufferAsBINARY (std::ofstream &outputFile, T *buffer, const StringType &pointComponentType)
 
virtual ~VTKPolyDataMeshIO ()
 
template<typename T >
void ReadPointsBufferAsBINARY (std::ifstream &inputFile, T *buffer)
 
template<typename T >
void ReadPointDataBufferAsASCII (std::ifstream &inputFile, T *buffer)
 
template<typename T >
void ReadCellDataBufferAsASCII (std::ifstream &inputFile, T *buffer)
 
template<typename T >
void WriteCellsBufferAsASCII (std::ofstream &outputFile, T *buffer)
 
template<typename T >
void WriteCellsBufferAsBINARY (std::ofstream &outputFile, T *buffer)
 
- Protected Member Functions inherited from itk::MeshIOBase
void AddSupportedReadExtension (const char *extension)
 
void AddSupportedWriteExtension (const char *extension)
 
 MeshIOBase ()
 
template<class T >
void ReadBufferAsBinary (T *buffer, std::ifstream &inputFile, SizeValueType numberOfComponents)
 
virtual ~MeshIOBase ()
 
template<class T >
void ReadBufferAsAscii (T *buffer, std::ifstream &inputFile, SizeValueType numberOfComponents)
 
template<class T >
void WriteBufferAsAscii (T *buffer, std::ofstream &outputFile, SizeValueType numberOfLines, SizeValueType numberOfComponents)
 
template<class TOutput , class TInput >
void WriteBufferAsBinary (TInput *buffer, std::ofstream &outputFile, SizeValueType numberOfComponents)
 
template<class TInput , class TOutput >
void ReadCellsBuffer (TInput *input, TOutput *output)
 
template<class TInput , class TOutput >
void ReadCellsBuffer (TInput *input, TOutput *output, MeshIOBase::CellGeometryType type)
 
template<class TInput , class TOutput >
void WriteCellsBuffer (TInput *input, TOutput *output, CellGeometryType cellType, unsigned int numberOfPoints, SizeValueType numberOfCells)
 
template<class TInput , class TOutput >
void WriteCellsBuffer (TInput *input, TOutput *output, CellGeometryType cellType, SizeValueType numberOfCells)
 
- Protected Member Functions inherited from itk::LightProcessObject
virtual void GenerateData ()
 
 LightProcessObject ()
 
 ~LightProcessObject ()
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &time)
 
virtual ~Object ()
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Private Member Functions

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

Additional Inherited Members

- Protected Types inherited from itk::LightObject
typedef int InternalReferenceCountType
 
- Protected Attributes inherited from itk::MeshIOBase
ByteOrder m_ByteOrder
 
SizeValueType m_CellBufferSize
 
IOComponentType m_CellComponentType
 
IOComponentType m_CellPixelComponentType
 
IOPixelType m_CellPixelType
 
std::string m_FileName
 
FileType m_FileType
 
unsigned int m_NumberOfCellPixelComponents
 
SizeValueType m_NumberOfCellPixels
 
SizeValueType m_NumberOfCells
 
unsigned int m_NumberOfPointPixelComponents
 
SizeValueType m_NumberOfPointPixels
 
SizeValueType m_NumberOfPoints
 
IOComponentType m_PointComponentType
 
unsigned int m_PointDimension
 
IOComponentType m_PointPixelComponentType
 
IOPixelType m_PointPixelType
 
bool m_UpdateCellData
 
bool m_UpdateCells
 
bool m_UpdatePointData
 
bool m_UpdatePoints
 
bool m_UseCompression
 

Member Typedef Documentation

Definition at line 45 of file itkVTKPolyDataMeshIO.h.

Definition at line 44 of file itkVTKPolyDataMeshIO.h.

Definition at line 52 of file itkVTKPolyDataMeshIO.h.

Definition at line 54 of file itkVTKPolyDataMeshIO.h.

Definition at line 53 of file itkVTKPolyDataMeshIO.h.

Standard "Self" typedef.

Definition at line 42 of file itkVTKPolyDataMeshIO.h.

typedef Superclass::SizeValueType itk::VTKPolyDataMeshIO::SizeValueType

Definition at line 47 of file itkVTKPolyDataMeshIO.h.

typedef std::stringstream itk::VTKPolyDataMeshIO::StringStreamType

Definition at line 51 of file itkVTKPolyDataMeshIO.h.

Definition at line 49 of file itkVTKPolyDataMeshIO.h.

Definition at line 50 of file itkVTKPolyDataMeshIO.h.

Definition at line 43 of file itkVTKPolyDataMeshIO.h.

Constructor & Destructor Documentation

itk::VTKPolyDataMeshIO::VTKPolyDataMeshIO ( )
protected
virtual itk::VTKPolyDataMeshIO::~VTKPolyDataMeshIO ( )
inlineprotectedvirtual

Definition at line 108 of file itkVTKPolyDataMeshIO.h.

itk::VTKPolyDataMeshIO::VTKPolyDataMeshIO ( const Self )
private

Member Function Documentation

virtual bool itk::VTKPolyDataMeshIO::CanReadFile ( const char *  FileNameToRead)
virtual

--—— This part of the interfaces deals with reading data. –— 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::VTKPolyDataMeshIO::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.

virtual::itk::LightObject::Pointer itk::VTKPolyDataMeshIO::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::VTKPolyDataMeshIO::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::MeshIOBase.

static Pointer itk::VTKPolyDataMeshIO::New ( )
static

Method for creation through the object factory.

void itk::VTKPolyDataMeshIO::operator= ( const Self )
private
void itk::VTKPolyDataMeshIO::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
protectedvirtual

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::VTKPolyDataMeshIO::ReadCellData ( void *  buffer)
virtual

Implements itk::MeshIOBase.

template<typename T >
void itk::VTKPolyDataMeshIO::ReadCellDataBufferAsASCII ( std::ifstream &  inputFile,
T *  buffer 
)
inlineprotected

For scalars we have to read the next line of LOOKUP_TABLE

for VECTORS or NORMALS or TENSORS, we could read them directly

Definition at line 312 of file itkVTKPolyDataMeshIO.h.

template<typename T >
void itk::VTKPolyDataMeshIO::ReadCellDataBufferAsBINARY ( std::ifstream &  inputFile,
T *  buffer 
)
inlineprotected

For scalars we have to read the next line of LOOKUP_TABLE

For VECTORS or NORMALS or TENSORS, we could read them directly

Definition at line 359 of file itkVTKPolyDataMeshIO.h.

References itk::ByteSwapper< T >::SwapRangeFromSystemToBigEndian().

virtual void itk::VTKPolyDataMeshIO::ReadCells ( void *  buffer)
virtual

Implements itk::MeshIOBase.

template<typename TInput , typename TOutput >
void itk::VTKPolyDataMeshIO::ReadCellsBuffer ( TInput *  input,
TOutput *  output 
)
inlineprotected

Convert cells buffer for output cells buffer, it's user's responsibility to make sure the input cells don't contain any cell type that coule not be written as polygon cell

Definition at line 1132 of file itkVTKPolyDataMeshIO.h.

void itk::VTKPolyDataMeshIO::ReadCellsBufferAsASCII ( std::ifstream &  inputFile,
void *  buffer 
)
protected
void itk::VTKPolyDataMeshIO::ReadCellsBufferAsBINARY ( std::ifstream &  inputFile,
void *  buffer 
)
protected
virtual void itk::VTKPolyDataMeshIO::ReadMeshInformation ( )
virtual

Set the spacing and dimension information for the set filename.

Implements itk::MeshIOBase.

virtual void itk::VTKPolyDataMeshIO::ReadPointData ( void *  buffer)
virtual

Implements itk::MeshIOBase.

template<typename T >
void itk::VTKPolyDataMeshIO::ReadPointDataBufferAsASCII ( std::ifstream &  inputFile,
T *  buffer 
)
inlineprotected

For scalars we have to read the next line of LOOKUP_TABLE

for VECTORS or NORMALS or TENSORS, we could read them directly

Definition at line 216 of file itkVTKPolyDataMeshIO.h.

template<typename T >
void itk::VTKPolyDataMeshIO::ReadPointDataBufferAsBINARY ( std::ifstream &  inputFile,
T *  buffer 
)
inlineprotected

For scalars we have to read the next line of LOOKUP_TABLE

for VECTORS or NORMALS or TENSORS, we could read them directly

Definition at line 263 of file itkVTKPolyDataMeshIO.h.

References itk::ByteSwapper< T >::SwapRangeFromSystemToBigEndian().

virtual void itk::VTKPolyDataMeshIO::ReadPoints ( void *  buffer)
virtual

Reads the data from disk into the memory buffer provided.

Implements itk::MeshIOBase.

template<typename T >
void itk::VTKPolyDataMeshIO::ReadPointsBufferAsASCII ( std::ifstream &  inputFile,
T *  buffer 
)
inlineprotected

Load the point coordinates into the itk::Mesh

Definition at line 168 of file itkVTKPolyDataMeshIO.h.

template<typename T >
void itk::VTKPolyDataMeshIO::ReadPointsBufferAsBINARY ( std::ifstream &  inputFile,
T *  buffer 
)
inlineprotected

Load the point coordinates into the itk::Mesh

Definition at line 189 of file itkVTKPolyDataMeshIO.h.

References itk::ByteSwapper< T >::SwapRangeFromSystemToBigEndian().

template<typename T >
void itk::VTKPolyDataMeshIO::UpdateCellInformation ( T *  buffer)
inlineprotected

Definition at line 113 of file itkVTKPolyDataMeshIO.h.

virtual void itk::VTKPolyDataMeshIO::Write ( )
virtual

Implements itk::MeshIOBase.

virtual void itk::VTKPolyDataMeshIO::WriteCellData ( void *  buffer)
virtual

Implements itk::MeshIOBase.

template<typename T >
void itk::VTKPolyDataMeshIO::WriteCellDataBufferAsASCII ( std::ofstream &  outputFile,
T *  buffer,
const StringType cellPixelComponentName 
)
inlineprotected

Definition at line 895 of file itkVTKPolyDataMeshIO.h.

template<typename T >
void itk::VTKPolyDataMeshIO::WriteCellDataBufferAsBINARY ( std::ofstream &  outputFile,
T *  buffer,
const StringType cellPixelComponentName 
)
inlineprotected
virtual void itk::VTKPolyDataMeshIO::WriteCells ( void *  buffer)
virtual

Implements itk::MeshIOBase.

template<typename T >
void itk::VTKPolyDataMeshIO::WriteCellsBufferAsASCII ( std::ofstream &  outputFile,
T *  buffer 
)
inlineprotected

Write vertices

Write lines

Write polygons

Definition at line 439 of file itkVTKPolyDataMeshIO.h.

template<typename T >
void itk::VTKPolyDataMeshIO::WriteCellsBufferAsBINARY ( std::ofstream &  outputFile,
T *  buffer 
)
inlineprotected

Write vertices

Write lines

Write polygons

Definition at line 580 of file itkVTKPolyDataMeshIO.h.

References itk::ByteSwapper< T >::SwapWriteRangeFromSystemToBigEndian().

template<typename T >
void itk::VTKPolyDataMeshIO::WriteColorScalarBufferAsASCII ( std::ofstream &  outputFile,
T *  buffer,
unsigned int  numberOfPixelComponents,
SizeValueType  numberOfPixels 
)
inlineprotected

Definition at line 1088 of file itkVTKPolyDataMeshIO.h.

template<typename T >
void itk::VTKPolyDataMeshIO::WriteColorScalarBufferAsBINARY ( std::ofstream &  outputFile,
T *  buffer,
unsigned int  numberOfPixelComponents,
SizeValueType  numberOfPixels 
)
inlineprotected

Definition at line 1109 of file itkVTKPolyDataMeshIO.h.

virtual void itk::VTKPolyDataMeshIO::WriteMeshInformation ( )
virtual

Set the spacing and dimension information for the set filename.

Implements itk::MeshIOBase.

virtual void itk::VTKPolyDataMeshIO::WritePointData ( void *  buffer)
virtual

Implements itk::MeshIOBase.

template<typename T >
void itk::VTKPolyDataMeshIO::WritePointDataBufferAsASCII ( std::ofstream &  outputFile,
T *  buffer,
const StringType pointPixelComponentName 
)
inlineprotected

Definition at line 699 of file itkVTKPolyDataMeshIO.h.

template<typename T >
void itk::VTKPolyDataMeshIO::WritePointDataBufferAsBINARY ( std::ofstream &  outputFile,
T *  buffer,
const StringType pointPixelComponentName 
)
inlineprotected
virtual void itk::VTKPolyDataMeshIO::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.

template<typename T >
void itk::VTKPolyDataMeshIO::WritePointsBufferAsASCII ( std::ofstream &  outputFile,
T *  buffer,
const StringType pointComponentType 
)
inlineprotected
  1. Write number of points

Definition at line 407 of file itkVTKPolyDataMeshIO.h.

template<typename T >
void itk::VTKPolyDataMeshIO::WritePointsBufferAsBINARY ( std::ofstream &  outputFile,
T *  buffer,
const StringType pointComponentType 
)
inlineprotected
  1. Write number of points

Definition at line 427 of file itkVTKPolyDataMeshIO.h.

References itk::ByteSwapper< T >::SwapWriteRangeFromSystemToBigEndian().


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