ITK  5.4.0
Insight Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Private Member Functions | List of all members

#include <itkVTKPolyDataMeshIO.h>

Detailed Description

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

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

Definition at line 42 of file itkVTKPolyDataMeshIO.h.

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

Public Types

using ConstPointer = SmartPointer< const Self >
 
using Pointer = SmartPointer< Self >
 
using PointIdVector = std::vector< SizeValueType >
 
using PolylinesContainerPointer = PolylinesContainerType::Pointer
 
using PolylinesContainerType = VectorContainer< SizeValueType, PointIdVector >
 
using Self = VTKPolyDataMeshIO
 
using SizeValueType = Superclass::SizeValueType
 
using StringStreamType = std::stringstream
 
using StringType = std::string
 
using StringVectorType = std::vector< StringType >
 
using Superclass = MeshIOBase
 
- Public Types inherited from itk::MeshIOBase
using ArrayOfExtensionsType = std::vector< std::string >
 
using ConstPointer = SmartPointer< const Self >
 
using Pointer = SmartPointer< Self >
 
using Self = MeshIOBase
 
using SizeValueType = IdentifierType
 
using StreamOffsetType = std::streamoff
 
using Superclass = LightProcessObject
 
- Public Types inherited from itk::LightProcessObject
using ConstPointer = SmartPointer< const Self >
 
using Pointer = SmartPointer< Self >
 
using Self = LightProcessObject
 
using Superclass = Object
 
- Public Types inherited from itk::Object
using ConstPointer = SmartPointer< const Self >
 
using Pointer = SmartPointer< Self >
 
using Self = Object
 
using Superclass = LightObject
 
- Public Types inherited from itk::LightObject
using ConstPointer = SmartPointer< const Self >
 
using Pointer = SmartPointer< Self >
 
using Self = LightObject
 

Public Member Functions

bool CanReadFile (const char *fileName) override
 
bool CanWriteFile (const char *fileName) override
 
const char * GetNameOfClass () const override
 
void ReadCellData (void *buffer) override
 
void ReadCells (void *buffer) override
 
void ReadMeshInformation () override
 
void ReadPointData (void *buffer) override
 
void ReadPoints (void *buffer) override
 
void Write () override
 
void WriteCellData (void *buffer) override
 
void WriteCells (void *buffer) override
 
void WriteMeshInformation () override
 
void WritePointData (void *buffer) override
 
void WritePoints (void *buffer) override
 
- Public Member Functions inherited from itk::MeshIOBase
std::string GetByteOrderAsString (IOByteOrderEnum) const
 
unsigned int GetComponentSize (IOComponentEnum componentType) const
 
std::string GetComponentTypeAsString (IOComponentEnum) const
 
std::string GetFileTypeAsString (IOFileEnum) const
 
std::string GetPixelTypeAsString (IOPixelEnum) const
 
const ArrayOfExtensionsTypeGetSupportedReadExtensions () const
 
const ArrayOfExtensionsTypeGetSupportedWriteExtensions () const
 
void SetByteOrderToBigEndian ()
 
void SetByteOrderToLittleEndian ()
 
void SetFileTypeToASCII ()
 
void SetFileTypeToBinary ()
 
template<typename T >
void SetPixelType (const Array< T > &array, bool usePointPixel=true)
 
template<typename T , unsigned int VLength>
void SetPixelType (const CovariantVector< T, VLength > &, bool usePointPixel=true)
 
template<typename T >
void SetPixelType (const DiffusionTensor3D< T > &, bool usePointPixel=true)
 
template<typename T , unsigned int VLength>
void SetPixelType (const FixedArray< T, VLength > &, bool usePointPixel=true)
 
template<typename T , unsigned int VRows, unsigned int VColumns>
void SetPixelType (const Matrix< T, VRows, VColumns > &, bool usePointPixel=true)
 
template<typename T >
void SetPixelType (const RGBAPixel< T > &, bool usePointPixel=true)
 
template<typename T >
void SetPixelType (const RGBPixel< T > &, bool usePointPixel=true)
 
template<typename T >
void SetPixelType (const std::complex< T > &, bool usePointPixel=true)
 
template<typename T , unsigned int VLength>
void SetPixelType (const SymmetricSecondRankTensor< T, VLength >, bool usePointPixel=true)
 
template<typename T >
void SetPixelType (const T &, 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)
 
template<typename T , unsigned int VLength>
void SetPixelType (const Vector< T, VLength > &, bool usePointPixel=true)
 
virtual void SetFileName (const char *_arg)
 
virtual const char * GetFileName () const
 
virtual void SetPointPixelType (const itk::CommonEnums::IOPixel _arg)
 
virtual itk::CommonEnums::IOPixel GetPointPixelType () const
 
virtual void SetCellPixelType (const itk::CommonEnums::IOPixel _arg)
 
virtual itk::CommonEnums::IOPixel GetCellPixelType () const
 
virtual void SetPointComponentType (const itk::CommonEnums::IOComponent _arg)
 
virtual itk::CommonEnums::IOComponent GetPointComponentType () const
 
virtual void SetCellComponentType (const itk::CommonEnums::IOComponent _arg)
 
virtual itk::CommonEnums::IOComponent GetCellComponentType () const
 
virtual void SetPointPixelComponentType (const itk::CommonEnums::IOComponent _arg)
 
virtual itk::CommonEnums::IOComponent GetPointPixelComponentType () const
 
virtual void SetCellPixelComponentType (const itk::CommonEnums::IOComponent _arg)
 
virtual itk::CommonEnums::IOComponent 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 UpdatePointsOn ()
 
virtual void SetUpdateCells (bool _arg)
 
virtual bool GetUpdateCells () const
 
virtual void UpdateCellsOn ()
 
virtual void SetUpdatePointData (bool _arg)
 
virtual bool GetUpdatePointData () const
 
virtual void UpdatePointDataOn ()
 
virtual void SetUpdateCellData (bool _arg)
 
virtual bool GetUpdateCellData () const
 
virtual void UpdateCellDataOn ()
 
virtual void SetFileType (const IOFileEnum _arg)
 
virtual IOFileEnum GetFileType () const
 
virtual void SetByteOrder (const IOByteOrderEnum _arg)
 
virtual IOByteOrderEnum GetByteOrder () const
 
virtual void SetUseCompression (bool _arg)
 
virtual bool GetUseCompression () const
 
virtual void UseCompressionOn ()
 
- Public Member Functions inherited from itk::LightProcessObject
virtual void AbortGenerateDataOn ()
 
virtual const bool & GetAbortGenerateData () const
 
virtual void SetAbortGenerateData (bool _arg)
 
virtual void UpdateOutputData ()
 
void UpdateProgress (float amount)
 
virtual void SetProgress (float _arg)
 
virtual const float & GetProgress () const
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
unsigned long AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const
 
LightObject::Pointer CreateAnother () const override
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionaryGetMetaDataDictionary ()
 
const MetaDataDictionaryGetMetaDataDictionary () 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
 
void Register () const override
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
void SetDebug (bool debugFlag) const
 
void SetReferenceCount (int) override
 
void UnRegister () const noexcept override
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
void SetMetaDataDictionary (MetaDataDictionary &&rrhs)
 
virtual void SetObjectName (std::string _arg)
 
virtual const std::string & GetObjectName () const
 
- Public Member Functions inherited from itk::LightObject
Pointer Clone () const
 
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::LightProcessObject
static Pointer New ()
 
- Static Public Member Functions inherited from itk::Object
static bool GetGlobalWarningDisplay ()
 
static void GlobalWarningDisplayOff ()
 
static void GlobalWarningDisplayOn ()
 
static Pointer New ()
 
static void SetGlobalWarningDisplay (bool val)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Protected Member Functions

IOComponentEnum GetComponentTypeFromString (const std::string &pointType)
 
int GetNextLine (std::ifstream &ifs, std::string &line, bool lowerCase=true, SizeValueType count=0)
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
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 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)
 
 ~VTKPolyDataMeshIO () override
 
template<typename T >
void ReadPointsBufferAsBINARY (std::ifstream &inputFile, T *buffer)
 
template<typename T >
void ReadPointDataBufferAsASCII (std::ifstream &inputFile, T *buffer)
 
template<typename T >
void ReadPointDataBufferAsBINARY (std::ifstream &inputFile, T *buffer)
 
template<typename T >
void ReadCellDataBufferAsASCII (std::ifstream &inputFile, T *buffer)
 
template<typename T >
void ReadCellDataBufferAsBINARY (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<typename T >
void ReadBufferAsBinary (T *buffer, std::ifstream &inputFile, SizeValueType numberOfComponents)
 
 ~MeshIOBase () override=default
 
template<typename T >
void ReadBufferAsAscii (T *buffer, std::ifstream &inputFile, SizeValueType numberOfComponents)
 
template<typename T >
void WriteBufferAsAscii (T *buffer, std::ofstream &outputFile, SizeValueType numberOfLines, SizeValueType numberOfComponents)
 
template<typename TOutput , typename TInput >
void WriteBufferAsBinary (TInput *buffer, std::ofstream &outputFile, SizeValueType numberOfComponents)
 
template<typename TInput , typename TOutput >
void ReadCellsBuffer (TInput *input, TOutput *output)
 
template<typename TInput , typename TOutput >
void ReadCellsBuffer (TInput *input, TOutput *output, CellGeometryEnum type)
 
template<typename TInput , typename TOutput >
void WriteCellsBuffer (TInput *input, TOutput *output, CellGeometryEnum cellType, unsigned int numberOfPoints, SizeValueType numberOfCells)
 
template<typename TInput , typename TOutput >
void WriteCellsBuffer (TInput *input, TOutput *output, CellGeometryEnum cellType, SizeValueType numberOfCells)
 
- Protected Member Functions inherited from itk::LightProcessObject
virtual void GenerateData ()
 
 LightProcessObject ()
 
 ~LightProcessObject () override
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &timeStamp)
 
 ~Object () override
 
- 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 ()
 

Static Private Member Functions

static void ReadComponentsAsASCII (std::ifstream &inputFile, double *const buffer, const SizeValueType numberOfComponents)
 
static void ReadComponentsAsASCII (std::ifstream &inputFile, float *const buffer, const SizeValueType numberOfComponents)
 
template<typename T >
static void ReadComponentsAsASCII (std::ifstream &inputFile, T *const buffer, const SizeValueType numberOfComponents)
 

Additional Inherited Members

- Protected Attributes inherited from itk::MeshIOBase
IOByteOrderEnum m_ByteOrder { IOByteOrderEnum::OrderNotApplicable }
 
SizeValueType m_CellBufferSize {}
 
IOComponentEnum m_CellComponentType { IOComponentEnum::UNKNOWNCOMPONENTTYPE }
 
IOComponentEnum m_CellPixelComponentType { IOComponentEnum::UNKNOWNCOMPONENTTYPE }
 
IOPixelEnum m_CellPixelType { IOPixelEnum::SCALAR }
 
std::string m_FileName {}
 
IOFileEnum m_FileType { IOFileEnum::ASCII }
 
unsigned int m_NumberOfCellPixelComponents { 0 }
 
SizeValueType m_NumberOfCellPixels {}
 
SizeValueType m_NumberOfCells {}
 
unsigned int m_NumberOfPointPixelComponents { 0 }
 
SizeValueType m_NumberOfPointPixels {}
 
SizeValueType m_NumberOfPoints {}
 
IOComponentEnum m_PointComponentType { IOComponentEnum::UNKNOWNCOMPONENTTYPE }
 
unsigned int m_PointDimension { 3 }
 
IOComponentEnum m_PointPixelComponentType { IOComponentEnum::UNKNOWNCOMPONENTTYPE }
 
IOPixelEnum m_PointPixelType { IOPixelEnum::SCALAR }
 
bool m_UpdateCellData { false }
 
bool m_UpdateCells { false }
 
bool m_UpdatePointData { false }
 
bool m_UpdatePoints { false }
 
bool m_UseCompression { false }
 
- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount {}
 

Member Typedef Documentation

◆ ConstPointer

Definition at line 51 of file itkVTKPolyDataMeshIO.h.

◆ Pointer

Definition at line 50 of file itkVTKPolyDataMeshIO.h.

◆ PointIdVector

Definition at line 58 of file itkVTKPolyDataMeshIO.h.

◆ PolylinesContainerPointer

Definition at line 60 of file itkVTKPolyDataMeshIO.h.

◆ PolylinesContainerType

Definition at line 59 of file itkVTKPolyDataMeshIO.h.

◆ Self

Standard "Self" type alias.

Definition at line 48 of file itkVTKPolyDataMeshIO.h.

◆ SizeValueType

using itk::VTKPolyDataMeshIO::SizeValueType = Superclass::SizeValueType

Definition at line 53 of file itkVTKPolyDataMeshIO.h.

◆ StringStreamType

using itk::VTKPolyDataMeshIO::StringStreamType = std::stringstream

Definition at line 57 of file itkVTKPolyDataMeshIO.h.

◆ StringType

Definition at line 55 of file itkVTKPolyDataMeshIO.h.

◆ StringVectorType

Definition at line 56 of file itkVTKPolyDataMeshIO.h.

◆ Superclass

Definition at line 49 of file itkVTKPolyDataMeshIO.h.

Constructor & Destructor Documentation

◆ VTKPolyDataMeshIO()

itk::VTKPolyDataMeshIO::VTKPolyDataMeshIO ( )
protected

◆ ~VTKPolyDataMeshIO()

itk::VTKPolyDataMeshIO::~VTKPolyDataMeshIO ( )
overrideprotected

Member Function Documentation

◆ CanReadFile()

bool itk::VTKPolyDataMeshIO::CanReadFile ( const char *  fileName)
overridevirtual

-----— This part of the interfaces deals with reading data. --— Determine if the file can be read with this MeshIO implementation.

Parameters
fileNameThe 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.

◆ CanWriteFile()

bool itk::VTKPolyDataMeshIO::CanWriteFile ( const char *  fileName)
overridevirtual

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

Parameters
fileNameThe 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.

◆ GetComponentTypeFromString()

IOComponentEnum itk::VTKPolyDataMeshIO::GetComponentTypeFromString ( const std::string &  pointType)
protected

Convenience method returns the IOComponentEnum corresponding to a string.

◆ GetNameOfClass()

const char* itk::VTKPolyDataMeshIO::GetNameOfClass ( ) const
overridevirtual
See also
LightObject::GetNameOfClass()

Reimplemented from itk::MeshIOBase.

◆ GetNextLine()

int itk::VTKPolyDataMeshIO::GetNextLine ( std::ifstream &  ifs,
std::string &  line,
bool  lowerCase = true,
SizeValueType  count = 0 
)
protected

◆ New()

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

Method for creation through the object factory.

◆ PrintSelf()

void itk::VTKPolyDataMeshIO::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
overrideprotectedvirtual

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.

◆ ReadCellData()

void itk::VTKPolyDataMeshIO::ReadCellData ( void *  buffer)
overridevirtual

Implements itk::MeshIOBase.

◆ ReadCellDataBufferAsASCII()

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

Definition at line 341 of file itkVTKPolyDataMeshIO.h.

◆ ReadCellDataBufferAsBINARY()

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 386 of file itkVTKPolyDataMeshIO.h.

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

◆ ReadCells()

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

Implements itk::MeshIOBase.

◆ ReadCellsBuffer()

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 could not be written as polygon cell

Definition at line 1116 of file itkVTKPolyDataMeshIO.h.

◆ ReadCellsBufferAsASCII()

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

◆ ReadCellsBufferAsBINARY()

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

◆ ReadComponentsAsASCII() [1/3]

static void itk::VTKPolyDataMeshIO::ReadComponentsAsASCII ( std::ifstream &  inputFile,
double *const  buffer,
const SizeValueType  numberOfComponents 
)
staticprivate

◆ ReadComponentsAsASCII() [2/3]

static void itk::VTKPolyDataMeshIO::ReadComponentsAsASCII ( std::ifstream &  inputFile,
float *const  buffer,
const SizeValueType  numberOfComponents 
)
staticprivate

◆ ReadComponentsAsASCII() [3/3]

template<typename T >
static void itk::VTKPolyDataMeshIO::ReadComponentsAsASCII ( std::ifstream &  inputFile,
T *const  buffer,
const SizeValueType  numberOfComponents 
)
inlinestaticprivate

Reads the specified number of components from the specified input file into the specified buffer.

Note
This member function is overloaded for float and double, in order to support reading infinity and NaN values.

Definition at line 1147 of file itkVTKPolyDataMeshIO.h.

◆ ReadMeshInformation()

void itk::VTKPolyDataMeshIO::ReadMeshInformation ( )
overridevirtual

Set the spacing and dimension information for the set filename.

Implements itk::MeshIOBase.

◆ ReadPointData()

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

Implements itk::MeshIOBase.

◆ ReadPointDataBufferAsASCII()

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

Definition at line 246 of file itkVTKPolyDataMeshIO.h.

◆ ReadPointDataBufferAsBINARY()

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

Definition at line 291 of file itkVTKPolyDataMeshIO.h.

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

◆ ReadPoints()

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

Reads the data from disk into the memory buffer provided.

Implements itk::MeshIOBase.

◆ ReadPointsBufferAsASCII()

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

Load the point coordinates into the itk::Mesh

Definition at line 198 of file itkVTKPolyDataMeshIO.h.

◆ ReadPointsBufferAsBINARY()

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

Load the point coordinates into the itk::Mesh

Definition at line 216 of file itkVTKPolyDataMeshIO.h.

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

◆ UpdateCellInformation()

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

◆ Write()

void itk::VTKPolyDataMeshIO::Write ( )
overridevirtual

Implements itk::MeshIOBase.

◆ WriteCellData()

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

Implements itk::MeshIOBase.

◆ WriteCellDataBufferAsASCII()

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

◆ WriteCellDataBufferAsBINARY()

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

◆ WriteCells()

void itk::VTKPolyDataMeshIO::WriteCells ( void *  buffer)
overridevirtual

Implements itk::MeshIOBase.

◆ WriteCellsBufferAsASCII()

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

◆ WriteCellsBufferAsBINARY()

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

◆ WriteColorScalarBufferAsASCII()

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

Definition at line 1072 of file itkVTKPolyDataMeshIO.h.

◆ WriteColorScalarBufferAsBINARY()

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

Definition at line 1094 of file itkVTKPolyDataMeshIO.h.

◆ WriteMeshInformation()

void itk::VTKPolyDataMeshIO::WriteMeshInformation ( )
overridevirtual

Set the spacing and dimension information for the set filename.

Implements itk::MeshIOBase.

◆ WritePointData()

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

Implements itk::MeshIOBase.

◆ WritePointDataBufferAsASCII()

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

◆ WritePointDataBufferAsBINARY()

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

◆ WritePoints()

void itk::VTKPolyDataMeshIO::WritePoints ( void *  buffer)
overridevirtual

Writes the data to disk from the memory buffer provided. Make sure that the IORegions has been set properly.

Implements itk::MeshIOBase.

◆ WritePointsBufferAsASCII()

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

Definition at line 435 of file itkVTKPolyDataMeshIO.h.

References itk::ConvertNumberToString().

◆ WritePointsBufferAsBINARY()

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

Definition at line 456 of file itkVTKPolyDataMeshIO.h.

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


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