18#ifndef itkMeshFileReader_h
19#define itkMeshFileReader_h
78template <
typename TOutputMesh,
101#ifndef ITK_FUTURE_LEGACY_REMOVE
102 using OutputCoordRepType ITK_FUTURE_DEPRECATED(
103 "ITK 6 discourages using `OutputCoordRepType`. Please use `OutputCoordinateType` instead!") =
OutputCoordinateType;
129 itkSetStringMacro(FileName);
130 itkGetStringMacro(FileName);
149 template <
typename T>
153 template <
typename T>
170 template <
typename T>
174 template <
typename T>
196 template <
typename T>
200 template <
typename T>
217template <
typename TOutputMesh,
218 typename ConvertPointPixelTraits = MeshConvertPixelTraits<typename TOutputMesh::PixelType>,
219 typename ConvertCellPixelTraits = MeshConvertPixelTraits<typename TOutputMesh::CellPixelType>>
220typename TOutputMesh::Pointer
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.
Represents a line segment for a Mesh.
Traits class used to by ConvertPixels to convert blocks of pixels.
typename OutputMeshType::CellType OutputCellType
TOutputMesh OutputMeshType
typename OutputMeshType::PointIdentifier OutputPointIdentifier
HexahedronCell< OutputCellType > OutputHexahedronCellType
void TestFileExistanceAndReadability()
QuadrilateralCell< OutputCellType > OutputQuadrilateralCellType
static constexpr unsigned int OutputPointDimension
void ConvertCellPixelBuffer(void *inputData, T *outputData, vcl_size_t numberOfPixels)
TetrahedronCell< OutputCellType > OutputTetrahedronCellType
typename OutputMeshType::CellIdentifier OutputCellIdentifier
void GenerateData() override
typename MeshIOBase::SizeValueType SizeValueType
typename OutputMeshType::CoordinateType OutputCoordinateType
TriangleCell< OutputCellType > OutputTriangleCellType
std::string m_ExceptionMessage
SmartPointer< const Self > ConstPointer
void ConvertPointPixelBuffer(void *inputData, T *outputData, vcl_size_t numberOfPixels)
void ReadPoints(T *buffer)
LineCell< OutputCellType > OutputLineCellType
typename OutputMeshType::PixelType OutputPointPixelType
QuadraticTriangleCell< OutputCellType > OutputQuadraticTriangleCellType
QuadraticEdgeCell< OutputCellType > OutputQuadraticEdgeCellType
void SetMeshIO(MeshIOBase *meshIO)
bool m_UserSpecifiedMeshIO
typename OutputMeshType::CellPixelType OutputCellPixelType
VertexCell< OutputCellType > OutputVertexCellType
void GenerateOutputInformation() override
PolyLineCell< OutputCellType > OutputPolyLineCellType
PolygonCell< OutputCellType > OutputPolygonCellType
MeshSource< TOutputMesh > Superclass
~MeshFileReader() override=default
typename OutputMeshType::CellAutoPointer OutputCellAutoPointer
void ReadPointsUsingMeshIO()
MeshIOBase::Pointer m_MeshIO
void ReadCellsUsingMeshIO()
typename OutputMeshType::PointType OutputPointType
void PrintSelf(std::ostream &os, Indent indent) const override
void ReadCells(T *buffer)
SmartPointer< Self > Pointer
Abstract superclass defines mesh IO interface.
SmartPointer< Self > Pointer
IdentifierType SizeValueType
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.
Implements transparent reference counting.
TetrahedronCell represents a tetrahedron for a Mesh.
Represents a single vertex for a Mesh.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
TOutputMesh::Pointer ReadMesh(const std::string &filename)