18 #ifndef __itkMeshFileReader_h
19 #define __itkMeshFileReader_h
55 const char *message =
"Error in IO",
56 const char *loc =
"Unknown"):
62 const char *message =
"Error in IO",
63 const char *loc =
"Unknown"):
100 template<
class TOutputMesh,
101 class ConvertPointPixelTraits = MeshConvertPixelTraits< typename TOutputMesh::PixelType >,
102 class ConvertCellPixelTraits = MeshConvertPixelTraits< typename TOutputMesh::CellPixelType > >
141 itkStaticConstMacro(OutputPointDimension,
unsigned int, OutputMeshType::PointDimension);
144 itkSetStringMacro(FileName);
145 itkGetStringMacro(FileName);
160 virtual void GenerateOutputInformation();
162 template<
typename T >
163 void ReadPoints(T *buffer);
165 template<
typename T >
166 void ReadCells(T *buffer);
168 void ReadPointData();
175 void PrintSelf(std::ostream & os,
Indent indent)
const;
178 template<
typename T >
179 void ConvertPointPixelBuffer(
void *inputData, T *outputData,
size_t numberOfPixels);
181 template<
typename T >
182 void ConvertCellPixelBuffer(
void *inputData, T *outputData,
size_t numberOfPixels);
189 void TestFileExistanceAndReadability();
192 virtual void GenerateData();
201 void operator=(
const Self &);
207 #ifndef ITK_MANUAL_INSTANTIATION
208 #include "itkMeshFileReader.hxx"