itkPNGImageIO.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkPNGImageIO_h
00018 #define __itkPNGImageIO_h
00019
00020 #ifdef _MSC_VER
00021 #pragma warning ( disable : 4786 )
00022 #endif
00023
00024 #include "itkImageIOBase.h"
00025
00026 namespace itk
00027 {
00028
00036 class ITK_EXPORT PNGImageIO : public ImageIOBase
00037 {
00038 public:
00040 typedef PNGImageIO Self;
00041 typedef ImageIOBase Superclass;
00042 typedef SmartPointer<Self> Pointer;
00043
00045 itkNewMacro(Self);
00046
00048 itkTypeMacro(PNGImageIO, ImageIOBase);
00049
00052 itkSetMacro(CompressionLevel, int);
00053 itkGetConstMacro(CompressionLevel, int);
00055
00056
00057
00060 virtual bool CanReadFile(const char*);
00061
00063 virtual void ReadImageInformation();
00064
00066 virtual void Read(void* buffer);
00067
00069 virtual void ReadVolume(void* buffer);
00070
00071
00072
00075 virtual bool CanWriteFile(const char*);
00076
00079 virtual void WriteImageInformation();
00080
00083 virtual void Write(const void* buffer);
00084
00085 protected:
00086 PNGImageIO();
00087 ~PNGImageIO();
00088 void PrintSelf(std::ostream& os, Indent indent) const;
00089
00090 void WriteSlice(const std::string& fileName, const void* buffer);
00091
00094 int m_CompressionLevel;
00095
00096 private:
00097 PNGImageIO(const Self&);
00098 void operator=(const Self&);
00099
00100
00101 };
00102
00103 }
00104
00105 #endif // __itkPNGImageIO_h
00106