28 #ifndef __itkVTKImageIO_h
29 #define __itkVTKImageIO_h
30 #include "ITKIOVTKExport.h"
68 virtual bool CanStreamWrite(
void);
73 virtual bool CanStreamRead(
void);
80 virtual bool CanReadFile(
const char *);
83 virtual void ReadImageInformation();
86 virtual void Read(
void *buffer);
92 virtual bool CanWriteFile(
const char *);
100 virtual void Write(
const void *buffer);
109 void PrintSelf(std::ostream & os,
Indent indent)
const;
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);
123 virtual void WriteBufferAsASCII(std::ostream & os,
const void *buffer,
124 IOComponentType ctype,
125 SizeType numberOfBytesToWrite);
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.
virtual SizeType GetHeaderSize() const
A base class for specific ImageIO file formats which support streaming.
SmartPointer< Self > Pointer
ImageIO class for reading VTK images.
virtual void WriteImageInformation()
Control indentation during Print() invocation.
SmartPointer< const Self > ConstPointer
StreamingImageIOBase Superclass