|
ITK
5.3.0
Insight Toolkit
|
Go to the documentation of this file.
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>>
122 static constexpr
unsigned int OutputPointDimension = OutputMeshType::PointDimension;
125 itkSetStringMacro(FileName);
126 itkGetStringMacro(FileName);
137 itkGetModifiableObjectMacro(MeshIO,
MeshIOBase);
143 GenerateOutputInformation()
override;
145 template <
typename T>
147 ReadPoints(T * buffer);
149 template <
typename T>
151 ReadCells(T * buffer);
163 PrintSelf(std::ostream & os,
Indent indent)
const override;
166 template <
typename T>
168 ConvertPointPixelBuffer(
void * inputData, T * outputData,
size_t numberOfPixels);
170 template <
typename T>
172 ConvertCellPixelBuffer(
void * inputData, T * outputData,
size_t numberOfPixels);
180 TestFileExistanceAndReadability();
184 GenerateData()
override;
192 template <
typename T>
194 ReadPointsUsingMeshIO();
196 template <
typename T>
198 ReadCellsUsingMeshIO();
213 template <
typename TOutputMesh,
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"
SmartPointer< Self > Pointer
MeshIOBase::Pointer m_MeshIO
typename OutputMeshType::CellIdentifier OutputCellIdentifier
Represents a single vertex for a Mesh.
Represents a quadrilateral for a Mesh.
Represents a series of connected line segments for a Mesh.
IdentifierType SizeValueType
typename OutputMeshType::CoordRepType OutputCoordRepType
typename MeshIOBase::SizeValueType SizeValueType
Mesh source that reads mesh data from a single file.
ImageBaseType::PointType PointType
Abstract superclass defines mesh IO interface.
Represents a polygon in a Mesh.
Control indentation during Print() invocation.
Represents a second order line segment for a Mesh.
TetrahedronCell represents a tetrahedron for a Mesh.
Traits class used to by ConvertPixels to convert blocks of pixels.
Light weight base class for most itk classes.
typename OutputMeshType::PointIdentifier OutputPointIdentifier
Base class for all process objects that output mesh data.
Represents a hexahedron (cuboid) for a Mesh.
std::string m_ExceptionMessage
typename OutputMeshType::PixelType OutputPointPixelType
Represents a line segment for a Mesh.
TOutputMesh::Pointer ReadMesh(const std::string &filename)
typename OutputMeshType::PointType OutputPointType
typename OutputMeshType::CellPixelType OutputCellPixelType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
TOutputMesh OutputMeshType
typename OutputMeshType::CellType OutputCellType
Represents a second order triangular patch for a Mesh.
typename OutputMeshType::CellAutoPointer OutputCellAutoPointer
bool m_UserSpecifiedMeshIO