18 #ifndef __itkRawImageIO_h
19 #define __itkRawImageIO_h
47 template<
class TPixel,
unsigned int VImageDimension = 2 >
84 itkSetMacro(FileDimensionality,
unsigned long);
85 itkGetConstMacro(FileDimensionality,
unsigned long);
93 virtual bool SupportsDimension(
unsigned long dim)
94 {
return ( dim == m_FileDimensionality ); }
108 virtual void Read(
void *buffer);
111 itkGetConstReferenceMacro(ImageMask,
unsigned short);
112 void SetImageMask(
unsigned long val)
114 if ( val == m_ImageMask ) {
return; }
115 m_ImageMask = ( (
unsigned short)( val ) );
121 virtual void ReadHeader(
const std::string = std::string() ) {}
128 virtual bool CanWriteFile(
const char *);
134 virtual void Write(
const void *buffer);
139 void PrintSelf(std::ostream & os,
Indent indent)
const;
142 void OpenFileForReading(std::ifstream & is);
144 void OpenFileForWriting(std::ofstream & os);
148 void operator=(
const Self &);
158 template<
class TPixel,
unsigned int VImageDimension >
169 const char * GetITKSourceVersion(
void)
const
174 const char * GetDescription(
void)
const
176 return "Raw ImageIO Factory, allows the loading of Raw images into insight";
180 itkFactorylessNewMacro(Self);
186 static void RegisterOneFactory(
void)
199 void operator=(
const Self &);
203 #ifndef ITK_MANUAL_INSTANTIATION
204 #include "itkRawImageIO.hxx"