18#ifndef itkMeshFileReader_h
19#define itkMeshFileReader_h
78template <
typename TOutputMesh,
79 typename ConvertPointPixelTraits = MeshConvertPixelTraits<typename TOutputMesh::PixelType>,
80 typename ConvertCellPixelTraits = MeshConvertPixelTraits<typename TOutputMesh::CellPixelType>>
122 static constexpr unsigned int OutputPointDimension = OutputMeshType::PointDimension;
125 itkSetStringMacro(FileName);
126 itkGetStringMacro(FileName);
145 template <
typename T>
149 template <
typename T>
166 template <
typename T>
170 template <
typename T>
187 bool m_UserSpecifiedMeshIO{};
189 std::string m_FileName{};
192 template <
typename T>
196 template <
typename T>
200 std::string m_ExceptionMessage{};
213template <
typename TOutputMesh,
214 typename ConvertPointPixelTraits = MeshConvertPixelTraits<typename TOutputMesh::PixelType>,
215 typename ConvertCellPixelTraits = MeshConvertPixelTraits<typename TOutputMesh::CellPixelType>>
220 reader->SetFileName(filename);
222 return reader->GetOutput();
228#ifndef ITK_MANUAL_INSTANTIATION
229# include "itkMeshFileReader.hxx"
232#if defined ITK_MESHIO_FACTORY_REGISTER_MANAGER || defined ITK_IO_FACTORY_REGISTER_MANAGER
233# include "itkMeshIOFactoryRegisterManager.h"
Represents a hexahedron (cuboid) for a Mesh.
Control indentation during Print() invocation.
Light weight base class for most itk classes.
Represents a line segment for a Mesh.
Mesh source that reads mesh data from a single file.
typename OutputMeshType::CellType OutputCellType
typename OutputMeshType::PointIdentifier OutputPointIdentifier
void TestFileExistanceAndReadability()
void ConvertCellPixelBuffer(void *inputData, T *outputData, vcl_size_t numberOfPixels)
typename OutputMeshType::CellIdentifier OutputCellIdentifier
void GenerateData() override
typename MeshIOBase::SizeValueType SizeValueType
void ConvertPointPixelBuffer(void *inputData, T *outputData, vcl_size_t numberOfPixels)
void ReadPoints(T *buffer)
typename OutputMeshType::CoordRepType OutputCoordRepType
typename OutputMeshType::PixelType OutputPointPixelType
void SetMeshIO(MeshIOBase *meshIO)
typename OutputMeshType::CellPixelType OutputCellPixelType
void GenerateOutputInformation() override
~MeshFileReader() override=default
typename OutputMeshType::CellAutoPointer OutputCellAutoPointer
void ReadPointsUsingMeshIO()
void ReadCellsUsingMeshIO()
typename OutputMeshType::PointType OutputPointType
void PrintSelf(std::ostream &os, Indent indent) const override
void ReadCells(T *buffer)
Abstract superclass defines mesh IO interface.
IdentifierType SizeValueType
Base class for all process objects that output mesh data.
TOutputMesh OutputMeshType
Represents a series of connected line segments for a Mesh.
Represents a polygon in a Mesh.
Represents a second order line segment for a Mesh.
Represents a second order triangular patch for a Mesh.
Represents a quadrilateral for a Mesh.
TetrahedronCell represents a tetrahedron for a Mesh.
Represents a single vertex for a Mesh.
SmartPointer< Self > Pointer
ImageBaseType::PointType PointType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
TOutputMesh::Pointer ReadMesh(const std::string &filename)