18 #ifndef __itkMeshFileReader_h
19 #define __itkMeshFileReader_h
52 const char *message =
"Error in IO",
53 const char *loc =
"Unknown"):
59 const char *message =
"Error in IO",
60 const char *loc =
"Unknown"):
97 template<
class TOutputMesh,
98 class ConvertPointPixelTraits = MeshConvertPixelTraits< typename TOutputMesh::PixelType >,
99 class ConvertCellPixelTraits = MeshConvertPixelTraits< typename TOutputMesh::CellPixelType > >
138 itkStaticConstMacro(OutputPointDimension,
unsigned int, OutputMeshType::PointDimension);
141 itkSetStringMacro(FileName);
142 itkGetStringMacro(FileName);
157 virtual void GenerateOutputInformation();
159 template<
typename T >
160 void ReadPoints(T *buffer);
162 template<
typename T >
163 void ReadCells(T *buffer);
165 void ReadPointData();
172 void PrintSelf(std::ostream & os,
Indent indent)
const;
175 template<
typename T >
176 void ConvertPointPixelBuffer(
void *inputData, T *outputData,
size_t numberOfPixels);
178 template<
typename T >
179 void ConvertCellPixelBuffer(
void *inputData, T *outputData,
size_t numberOfPixels);
186 void TestFileExistanceAndReadability();
189 virtual void GenerateData();
197 void operator=(
const Self &);
203 #ifndef ITK_MANUAL_INSTANTIATION
204 #include "itkMeshFileReader.hxx"