28 #ifndef __itkVTKImageIO_h
29 #define __itkVTKImageIO_h
30 #include "ITKIOVTKExport.h"
68 virtual bool CanStreamWrite(
void) ITK_OVERRIDE;
73 virtual
bool CanStreamRead(
void) ITK_OVERRIDE;
80 virtual
bool CanReadFile(const
char *) ITK_OVERRIDE;
83 virtual
void ReadImageInformation() ITK_OVERRIDE;
86 virtual
void Read(
void *buffer) ITK_OVERRIDE;
92 virtual
bool CanWriteFile(const
char *) ITK_OVERRIDE;
96 virtual
void WriteImageInformation() ITK_OVERRIDE {}
100 virtual void Write(
const void *buffer) ITK_OVERRIDE;
109 virtual void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
111 void InternalReadImageInformation(std::ifstream & file);
113 void WriteImageInformation(
const void *buffer);
115 void ReadHeaderSize(std::ifstream & file);
118 virtual void ReadBufferAsASCII(std::istream & os,
void *buffer,
119 IOComponentType ctype,
120 SizeType numberOfBytesToBeRead) ITK_OVERRIDE;
123 virtual void WriteBufferAsASCII(std::ostream & os,
const void *buffer,
124 IOComponentType ctype,
125 SizeType numberOfBytesToWrite) ITK_OVERRIDE;
129 virtual void ReadSymmetricTensorBufferAsBinary(std::istream& os,
135 virtual void WriteSymmetricTensorBufferAsBinary(std::ostream& os,
141 void operator=(
const Self &);
142 void SetPixelTypeFromString(
const std::string & pixelType);
145 SizeType GetIORegionSizeInPixels()
const;
148 SizeType GetIORegionSizeInBytes()
const;
152 SizeType GetIORegionSizeInComponents()
const;
158 #endif // __itkVTKImageIO_h
Light weight base class for most itk classes.
A base class for specific ImageIO file formats which support streaming.
SmartPointer< Self > Pointer
ImageIO class for reading VTK images.
Control indentation during Print() invocation.
SmartPointer< const Self > ConstPointer
virtual SizeType GetHeaderSize() const ITK_OVERRIDE
StreamingImageIOBase Superclass