18 #ifndef itkMeshFileReader_h
19 #define itkMeshFileReader_h
72 template<
typename TOutputMesh,
73 typename ConvertPointPixelTraits = MeshConvertPixelTraits< typename TOutputMesh::PixelType >,
74 class ConvertCellPixelTraits = MeshConvertPixelTraits< typename TOutputMesh::CellPixelType > >
115 static constexpr
unsigned int OutputPointDimension = OutputMeshType::PointDimension;
118 itkSetStringMacro(FileName);
119 itkGetStringMacro(FileName);
129 itkGetModifiableObjectMacro(MeshIO,
MeshIOBase);
134 void GenerateOutputInformation()
override;
136 template<
typename T >
137 void ReadPoints(T *buffer);
139 template<
typename T >
140 void ReadCells(T *buffer);
142 void ReadPointData();
149 void PrintSelf(std::ostream & os,
Indent indent)
const override;
152 template<
typename T >
153 void ConvertPointPixelBuffer(
void *inputData, T *outputData,
size_t numberOfPixels);
155 template<
typename T >
156 void ConvertCellPixelBuffer(
void *inputData, T *outputData,
size_t numberOfPixels);
163 void TestFileExistanceAndReadability();
166 void GenerateData()
override;
178 #ifndef ITK_MANUAL_INSTANTIATION
179 #include "itkMeshFileReader.hxx"
182 #ifdef ITK_IO_FACTORY_REGISTER_MANAGER
183 #include "itkMeshIOFactoryRegisterManager.h"
Represents a line segment for a Mesh.
Light weight base class for most itk classes.
TOutputMesh OutputMeshType
IdentifierType SizeValueType
typename OutputMeshType::PointIdentifier OutputPointIdentifier
typename MeshIOBase::SizeValueType SizeValueType
Base class for all process objects that output mesh data.
bool m_UserSpecifiedMeshIO
typename OutputMeshType::CoordRepType OutputCoordRepType
std::string m_ExceptionMessage
typename OutputMeshType::PixelType OutputPointPixelType
Represents a second order triangular patch for a Mesh.
Represents a hexahedron (cuboid) for a Mesh.
typename OutputMeshType::PointType OutputPointType
Represents a second order line segment for a Mesh.
typename OutputMeshType::CellType OutputCellType
Represents a polygon in a Mesh.
TetrahedronCell represents a tetrahedron for a Mesh.
typename OutputMeshType::CellIdentifier OutputCellIdentifier
MeshIOBase::Pointer m_MeshIO
Represents a single vertex for a Mesh.
Control indentation during Print() invocation.
ImageBaseType::PointType PointType
Abstract superclass defines mesh IO interface.
typename OutputMeshType::CellPixelType OutputCellPixelType
Represents a quadrilateral for a Mesh.
Mesh source that reads mesh data from a single file.
typename OutputMeshType::CellAutoPointer OutputCellAutoPointer