18 #ifndef itkMeshFileReader_h
19 #define itkMeshFileReader_h
78 template <
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);
141 itkGetModifiableObjectMacro(MeshIO,
MeshIOBase);
147 GenerateOutputInformation()
override;
149 template <
typename T>
151 ReadPoints(T * buffer);
153 template <
typename T>
155 ReadCells(T * buffer);
167 PrintSelf(std::ostream & os,
Indent indent)
const override;
170 template <
typename T>
172 ConvertPointPixelBuffer(
void * inputData, T * outputData,
size_t numberOfPixels);
174 template <
typename T>
176 ConvertCellPixelBuffer(
void * inputData, T * outputData,
size_t numberOfPixels);
184 TestFileExistanceAndReadability();
188 GenerateData()
override;
191 bool m_UserSpecifiedMeshIO{};
193 std::string m_FileName{};
196 template <
typename T>
198 ReadPointsUsingMeshIO();
200 template <
typename T>
202 ReadCellsUsingMeshIO();
204 std::string m_ExceptionMessage{};
217 template <
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"