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);
114 int GetNextLine(std::ifstream& ifs, std::
string& line,
bool lowerCase = true,
SizeValueType count= 0);
116 void WriteImageInformation(const
void *buffer);
118 void ReadHeaderSize(std::ifstream & file);
121 virtual
void ReadBufferAsASCII(std::istream & os,
void *buffer,
122 IOComponentType ctype,
123 SizeType numberOfBytesToBeRead) ITK_OVERRIDE;
126 virtual
void WriteBufferAsASCII(std::ostream & os, const
void *buffer,
127 IOComponentType ctype,
128 SizeType numberOfBytesToWrite) ITK_OVERRIDE;
132 virtual
void ReadSymmetricTensorBufferAsBinary(std::istream& os,
138 virtual
void WriteSymmetricTensorBufferAsBinary(std::ostream& os,
144 void SetPixelTypeFromString(const std::
string & pixelType);
145 std::
string GetComponentTypeAsString(IOComponentType);
148 SizeType GetIORegionSizeInPixels() const;
151 SizeType GetIORegionSizeInBytes() const;
155 SizeType GetIORegionSizeInComponents() const;
161 #endif // itkVTKImageIO_h
Light weight base class for most itk classes.
A base class for specific ImageIO file formats which support streaming.
unsigned long SizeValueType
virtual SizeType GetHeaderSize() const override
SmartPointer< Self > Pointer
ImageIO class for reading VTK images.
Control indentation during Print() invocation.
SmartPointer< const Self > ConstPointer
ImageBaseType::SizeType SizeType
StreamingImageIOBase Superclass