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>>
101#ifndef ITK_FUTURE_LEGACY_REMOVE
102 using OutputCoordRepType ITK_FUTURE_DEPRECATED(
103 "ITK 6 discourages using `OutputCoordRepType`. Please use `OutputCoordinateType` instead!") =
OutputCoordinateType;
126 static constexpr unsigned int OutputPointDimension = OutputMeshType::PointDimension;
129 itkSetStringMacro(FileName);
130 itkGetStringMacro(FileName);
149 template <
typename T>
153 template <
typename T>
170 template <
typename T>
174 template <
typename T>
191 bool m_UserSpecifiedMeshIO{};
193 std::string m_FileName{};
196 template <
typename T>
200 template <
typename T>
204 std::string m_ExceptionMessage{};
217template <
typename TOutputMesh,
218 typename ConvertPointPixelTraits = MeshConvertPixelTraits<typename TOutputMesh::PixelType>,
219 typename ConvertCellPixelTraits = MeshConvertPixelTraits<typename TOutputMesh::CellPixelType>>
224 reader->SetFileName(filename);
226 return reader->GetOutput();
232#ifndef ITK_MANUAL_INSTANTIATION
233# include "itkMeshFileReader.hxx"
236#if defined ITK_MESHIO_FACTORY_REGISTER_MANAGER || defined ITK_IO_FACTORY_REGISTER_MANAGER
237# 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
typename OutputMeshType::CoordinateType OutputCoordinateType
void ConvertPointPixelBuffer(void *inputData, T *outputData, vcl_size_t numberOfPixels)
void ReadPoints(T *buffer)
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)