ITK
5.2.0
Insight Toolkit
|
#include <itkVTKPolyDataMeshIO.h>
Public Member Functions | |
bool | CanReadFile (const char *fileName) override |
bool | CanWriteFile (const char *fileName) override |
virtual ::itk::LightObject::Pointer | CreateAnother () const |
virtual const char * | GetNameOfClass () const |
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 | |
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 |
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 | 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 |
unsigned int | GetComponentSize (IOComponentEnum componentType) const |
std::string | GetComponentTypeAsString (IOComponentEnum) const |
std::string | GetPixelTypeAsString (IOPixelEnum) const |
virtual void | SetFileType (const IOFileEnum _arg) |
virtual IOFileEnum | GetFileType () const |
void | SetFileTypeToASCII () |
void | SetFileTypeToBinary () |
virtual void | SetByteOrder (const IOByteOrderEnum _arg) |
virtual IOByteOrderEnum | GetByteOrder () const |
void | SetByteOrderToBigEndian () |
void | SetByteOrderToLittleEndian () |
virtual void | SetUseCompression (bool _arg) |
virtual bool | GetUseCompression () const |
virtual void | UseCompressionOn () |
virtual void | UseCompressionOff () |
std::string | GetFileTypeAsString (IOFileEnum) const |
std::string | GetByteOrderAsString (IOByteOrderEnum) const |
const ArrayOfExtensionsType & | GetSupportedReadExtensions () const |
const ArrayOfExtensionsType & | GetSupportedWriteExtensions () const |
Public Member Functions inherited from itk::LightProcessObject | |
virtual void | AbortGenerateDataOff () |
virtual void | AbortGenerateDataOn () |
virtual const bool & | GetAbortGenerateData () const |
virtual void | SetAbortGenerateData (bool _arg) |
virtual void | SetProgress (float _arg) |
virtual const float & | GetProgress () const |
void | UpdateProgress (float amount) |
virtual void | UpdateOutputData () |
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 |
virtual void | DebugOff () const |
virtual void | DebugOn () const |
Command * | GetCommand (unsigned long tag) |
bool | GetDebug () const |
MetaDataDictionary & | GetMetaDataDictionary () |
const MetaDataDictionary & | GetMetaDataDictionary () const |
virtual ModifiedTimeType | GetMTime () const |
virtual const TimeStamp & | GetTimeStamp () 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 | |
int | GetNextLine (std::ifstream &ifs, std::string &line, bool lowerCase=true, SizeValueType count=0) |
void | PrintSelf (std::ostream &os, Indent indent) const override |
void | ReadCellsBufferAsASCII (std::ifstream &inputFile, void *buffer) |
template<typename T > | |
void | ReadPointsBufferAsASCII (std::ifstream &inputFile, T *buffer) |
template<typename T > | |
void | UpdateCellInformation (T *buffer) |
VTKPolyDataMeshIO () | |
~VTKPolyDataMeshIO () override | |
template<typename T > | |
void | ReadPointsBufferAsBINARY (std::ifstream &inputFile, T *buffer) |
void | ReadCellsBufferAsBINARY (std::ifstream &inputFile, void *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 | WritePointsBufferAsASCII (std::ofstream &outputFile, T *buffer, const StringType &pointComponentType) |
template<typename T > | |
void | WritePointsBufferAsBINARY (std::ofstream &outputFile, T *buffer, const StringType &pointComponentType) |
template<typename T > | |
void | WriteCellsBufferAsASCII (std::ofstream &outputFile, T *buffer) |
template<typename T > | |
void | WriteCellsBufferAsBINARY (std::ofstream &outputFile, T *buffer) |
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 | 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 TInput , typename TOutput > | |
void | ReadCellsBuffer (TInput *input, TOutput *output) |
IOComponentEnum | GetComponentTypeFromString (const std::string &pointType) |
Protected Member Functions inherited from itk::MeshIOBase | |
MeshIOBase () | |
~MeshIOBase () override=default | |
void | AddSupportedReadExtension (const char *extension) |
void | AddSupportedWriteExtension (const char *extension) |
template<typename T > | |
void | ReadBufferAsAscii (T *buffer, std::ifstream &inputFile, SizeValueType numberOfComponents) |
template<typename T > | |
void | ReadBufferAsBinary (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 | |
LightProcessObject () | |
~LightProcessObject () override | |
virtual void | GenerateData () |
Protected Member Functions inherited from itk::Object | |
Object () | |
~Object () override | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
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 () |
This class defines how to read and write vtk legacy file format.
Definition at line 41 of file itkVTKPolyDataMeshIO.h.
using itk::VTKPolyDataMeshIO::ConstPointer = SmartPointer<const Self> |
Definition at line 50 of file itkVTKPolyDataMeshIO.h.
Definition at line 49 of file itkVTKPolyDataMeshIO.h.
using itk::VTKPolyDataMeshIO::PointIdVector = std::vector<SizeValueType> |
Definition at line 57 of file itkVTKPolyDataMeshIO.h.
Definition at line 59 of file itkVTKPolyDataMeshIO.h.
using itk::VTKPolyDataMeshIO::PolylinesContainerType = VectorContainer<SizeValueType, PointIdVector> |
Definition at line 58 of file itkVTKPolyDataMeshIO.h.
Standard "Self" type alias.
Definition at line 47 of file itkVTKPolyDataMeshIO.h.
using itk::VTKPolyDataMeshIO::SizeValueType = Superclass::SizeValueType |
Definition at line 52 of file itkVTKPolyDataMeshIO.h.
using itk::VTKPolyDataMeshIO::StringStreamType = std::stringstream |
Definition at line 56 of file itkVTKPolyDataMeshIO.h.
using itk::VTKPolyDataMeshIO::StringType = std::string |
Definition at line 54 of file itkVTKPolyDataMeshIO.h.
using itk::VTKPolyDataMeshIO::StringVectorType = std::vector<StringType> |
Definition at line 55 of file itkVTKPolyDataMeshIO.h.
Definition at line 48 of file itkVTKPolyDataMeshIO.h.
|
protected |
|
overrideprotected |
|
overridevirtual |
-----— This part of the interfaces deals with reading data. --— Determine if the file can be read with this MeshIO implementation.
FileNameToRead | The name of the file to test for reading. |
Implements itk::MeshIOBase.
|
overridevirtual |
Determine if the file can be written with this MeshIO implementation.
FileNameToWrite | The name of the file to test for writing. |
Implements itk::MeshIOBase.
|
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.
|
protected |
Convenience method returns the IOComponentEnum corresponding to a string.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::MeshIOBase.
|
protected |
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
Big or Little Endian, and the type of the file. (May be ignored.)
Reimplemented from itk::MeshIOBase.
|
overridevirtual |
Big or Little Endian, and the type of the file. (May be ignored.)
Implements itk::MeshIOBase.
|
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 343 of file itkVTKPolyDataMeshIO.h.
|
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 391 of file itkVTKPolyDataMeshIO.h.
References itk::ByteSwapper< T >::SwapRangeFromSystemToBigEndian().
|
overridevirtual |
Big or Little Endian, and the type of the file. (May be ignored.)
Implements itk::MeshIOBase.
|
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 1180 of file itkVTKPolyDataMeshIO.h.
|
protected |
|
protected |
Load the point coordinates into the itk::Mesh
|
overridevirtual |
Set the spacing and dimension information for the set filename.
Implements itk::MeshIOBase.
|
overridevirtual |
Big or Little Endian, and the type of the file. (May be ignored.)
Implements itk::MeshIOBase.
|
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 245 of file itkVTKPolyDataMeshIO.h.
|
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 293 of file itkVTKPolyDataMeshIO.h.
References itk::ByteSwapper< T >::SwapRangeFromSystemToBigEndian().
|
overridevirtual |
Reads the data from disk into the memory buffer provided.
Implements itk::MeshIOBase.
|
inlineprotected |
Load the point coordinates into the itk::Mesh
Definition at line 193 of file itkVTKPolyDataMeshIO.h.
|
inlineprotected |
Load the point coordinates into the itk::Mesh
Definition at line 215 of file itkVTKPolyDataMeshIO.h.
References itk::ByteSwapper< T >::SwapRangeFromSystemToBigEndian().
|
inlineprotected |
Definition at line 137 of file itkVTKPolyDataMeshIO.h.
References itk::CommonEnums::LINE_CELL, itk::CommonEnums::POLYGON_CELL, itk::CommonEnums::QUADRILATERAL_CELL, itk::CommonEnums::TRIANGLE_CELL, and itk::CommonEnums::VERTEX_CELL.
|
overridevirtual |
Big or Little Endian, and the type of the file. (May be ignored.)
Implements itk::MeshIOBase.
|
overridevirtual |
Big or Little Endian, and the type of the file. (May be ignored.)
Implements itk::MeshIOBase.
|
inlineprotected |
Load the point coordinates into the itk::Mesh
Definition at line 936 of file itkVTKPolyDataMeshIO.h.
References itk::CommonEnums::ARRAY, itk::CommonEnums::COVARIANTVECTOR, itk::CommonEnums::DIFFUSIONTENSOR3D, itk::CommonEnums::OFFSET, itk::CommonEnums::POINT, itk::CommonEnums::SCALAR, itk::CommonEnums::SYMMETRICSECONDRANKTENSOR, itk::CommonEnums::VARIABLELENGTHVECTOR, and itk::CommonEnums::VECTOR.
|
inlineprotected |
Load the point coordinates into the itk::Mesh
Definition at line 1070 of file itkVTKPolyDataMeshIO.h.
References itk::CommonEnums::ARRAY, itk::CommonEnums::COVARIANTVECTOR, itk::CommonEnums::DIFFUSIONTENSOR3D, itk::CommonEnums::OFFSET, itk::CommonEnums::POINT, itk::CommonEnums::SCALAR, itk::ByteSwapper< T >::SwapWriteRangeFromSystemToBigEndian(), itk::CommonEnums::SYMMETRICSECONDRANKTENSOR, itk::CommonEnums::VARIABLELENGTHVECTOR, and itk::CommonEnums::VECTOR.
|
overridevirtual |
Big or Little Endian, and the type of the file. (May be ignored.)
Implements itk::MeshIOBase.
|
inlineprotected |
Write vertices
Write lines
Write polygons
Definition at line 476 of file itkVTKPolyDataMeshIO.h.
References itk::CommonEnums::LINE_CELL, itk::CommonEnums::POLYGON_CELL, itk::CommonEnums::QUADRILATERAL_CELL, itk::CommonEnums::TRIANGLE_CELL, and itk::CommonEnums::VERTEX_CELL.
|
inlineprotected |
Write vertices
Write lines
Write polygons
Definition at line 617 of file itkVTKPolyDataMeshIO.h.
References itk::CommonEnums::LINE_CELL, and itk::ByteSwapper< T >::SwapWriteRangeFromSystemToBigEndian().
|
inlineprotected |
Load the point coordinates into the itk::Mesh
Definition at line 1133 of file itkVTKPolyDataMeshIO.h.
|
inlineprotected |
Load the point coordinates into the itk::Mesh
Definition at line 1156 of file itkVTKPolyDataMeshIO.h.
|
overridevirtual |
Set the spacing and dimension information for the set filename.
Implements itk::MeshIOBase.
|
overridevirtual |
Big or Little Endian, and the type of the file. (May be ignored.)
Implements itk::MeshIOBase.
|
inlineprotected |
Load the point coordinates into the itk::Mesh
Definition at line 737 of file itkVTKPolyDataMeshIO.h.
References itk::CommonEnums::ARRAY, itk::CommonEnums::COVARIANTVECTOR, itk::CommonEnums::DIFFUSIONTENSOR3D, itk::CommonEnums::OFFSET, itk::CommonEnums::POINT, itk::CommonEnums::SCALAR, itk::CommonEnums::SYMMETRICSECONDRANKTENSOR, itk::CommonEnums::VARIABLELENGTHVECTOR, and itk::CommonEnums::VECTOR.
|
inlineprotected |
Load the point coordinates into the itk::Mesh
Definition at line 873 of file itkVTKPolyDataMeshIO.h.
References itk::CommonEnums::ARRAY, itk::CommonEnums::COVARIANTVECTOR, itk::CommonEnums::DIFFUSIONTENSOR3D, itk::CommonEnums::OFFSET, itk::CommonEnums::POINT, itk::CommonEnums::SCALAR, itk::ByteSwapper< T >::SwapWriteRangeFromSystemToBigEndian(), itk::CommonEnums::SYMMETRICSECONDRANKTENSOR, itk::CommonEnums::VARIABLELENGTHVECTOR, and itk::CommonEnums::VECTOR.
|
overridevirtual |
Writes the data to disk from the memory buffer provided. Make sure that the IORegions has been set properly.
Implements itk::MeshIOBase.
|
inlineprotected |
Definition at line 440 of file itkVTKPolyDataMeshIO.h.
|
inlineprotected |
Definition at line 462 of file itkVTKPolyDataMeshIO.h.
References itk::ByteSwapper< T >::SwapWriteRangeFromSystemToBigEndian().