18 #ifndef __itkMeshFileReader_h
19 #define __itkMeshFileReader_h
20 #include "ITKIOMeshExport.h"
56 const char *message =
"Error in IO",
57 const char *loc =
"Unknown"):
63 const char *message =
"Error in IO",
64 const char *loc =
"Unknown"):
101 template<
typename TOutputMesh,
102 typename ConvertPointPixelTraits = MeshConvertPixelTraits< typename TOutputMesh::PixelType >,
103 class ConvertCellPixelTraits = MeshConvertPixelTraits< typename TOutputMesh::CellPixelType > >
142 itkStaticConstMacro(OutputPointDimension,
unsigned int, OutputMeshType::PointDimension);
145 itkSetStringMacro(FileName);
146 itkGetStringMacro(FileName);
156 itkGetModifiableObjectMacro(MeshIO,
MeshIOBase);
161 virtual void GenerateOutputInformation();
163 template<
typename T >
164 void ReadPoints(T *buffer);
166 template<
typename T >
167 void ReadCells(T *buffer);
169 void ReadPointData();
176 void PrintSelf(std::ostream & os,
Indent indent)
const;
179 template<
typename T >
180 void ConvertPointPixelBuffer(
void *inputData, T *outputData,
size_t numberOfPixels);
182 template<
typename T >
183 void ConvertCellPixelBuffer(
void *inputData, T *outputData,
size_t numberOfPixels);
190 void TestFileExistanceAndReadability();
193 virtual void GenerateData();
202 void operator=(
const Self &);
208 #ifndef ITK_MANUAL_INSTANTIATION
209 #include "itkMeshFileReader.hxx"
MeshIOBase::SizeValueType SizeValueType
MeshFileReaderException(const char *file, unsigned int line, const char *message="Error in IO", const char *loc="Unknown")
Represents a line segment for a Mesh.
Light weight base class for most itk classes.
TOutputMesh OutputMeshType
OutputMeshType::CellIdentifier OutputCellIdentifier
TriangleCell< OutputCellType > OutputTriangleCellType
SmartPointer< const Self > ConstPointer
IdentifierType SizeValueType
OutputMeshType::CellPixelType OutputCellPixelType
Base class for all process objects that output mesh data.
MeshSource< TOutputMesh > Superclass
TetrahedronCell< OutputCellType > OutputTetrahedronCellType
bool m_UserSpecifiedMeshIO
std::string m_ExceptionMessage
QuadraticTriangleCell< OutputCellType > OutputQuadraticTriangleCellType
PolygonCell< OutputCellType > OutputPolygonCellType
Represents a second order triangular patch for a Mesh.
Represents a hexahedron for a Mesh.
OutputMeshType::CellAutoPointer OutputCellAutoPointer
Represents a second order line segment for a Mesh.
Standard exception handling object.
OutputMeshType::PointIdentifier OutputPointIdentifier
SmartPointer< Self > Pointer
OutputMeshType::PointType OutputPointType
QuadrilateralCell< OutputCellType > OutputQuadrilateralCellType
LineCell< OutputCellType > OutputLineCellType
VertexCell< OutputCellType > OutputVertexCellType
Represents a polygon in a Mesh.
TetrahedronCell represents a tetrahedron for a Mesh.
MeshFileReaderException(const std::string &file, unsigned int line, const char *message="Error in IO", const char *loc="Unknown")
OutputMeshType::PixelType OutputPointPixelType
MeshIOBase::Pointer m_MeshIO
virtual ~MeshFileReaderException()
OutputMeshType::CoordRepType OutputCoordRepType
Represents a single vertex for a Mesh.
QuadraticEdgeCell< OutputCellType > OutputQuadraticEdgeCellType
HexahedronCell< OutputCellType > OutputHexahedronCellType
Control indentation during Print() invocation.
Abstract superclass defines mesh IO interface.
Represents a quadrilateral for a Mesh.
OutputMeshType::CellType OutputCellType
Mesh source that reads mesh data from a single file.
Base exception class for IO conflicts.