18 #ifndef __itkFDFImageIO_h
19 #define __itkFDFImageIO_h
20 #include "ITKIOFDFExport.h"
47 if( dim == 2 || dim == 3 )
62 virtual bool CanReadFile(
const char*);
65 virtual void ReadImageInformation();
71 virtual void Read(
void* buffer);
74 virtual void ReadVolume(
void* buffer);
85 virtual bool CanWriteFile(
const char*);
89 virtual void WriteImageInformation();
93 virtual void Write(
const void* buffer);
98 void PrintSelf(std::ostream& os,
Indent indent)
const;
100 void WriteSlice(std::string& fileName,
const void* buffer);
102 int ReadHeader(
const char *FileNameToRead);
106 void operator=(
const Self&);
108 void SwapBytesIfNecessary(
void* buffer,
unsigned long numberOfPixels);
125 #define RAISE_EXCEPTION() \
126 { ExceptionObject exception(__FILE__, __LINE__); \
127 exception.SetDescription("File cannot be read"); \
Light weight base class for most itk classes.
virtual bool SupportsDimension(unsigned long dim)
Abstract superclass defines image IO interface.
std::vector< float > m_Location
std::vector< float > m_Span
std::string m_SpatialRank
SmartPointer< Self > Pointer
vcl_size_t m_InputPosition
std::vector< float > m_Roi
std::vector< int > m_Size
Control indentation during Print() invocation.