dox/IO/vtkPNGWriter.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00035 #ifndef __vtkPNGWriter_h
00036 #define __vtkPNGWriter_h
00037
00038 #include "vtkImageWriter.h"
00039
00040 class vtkImageData;
00041 class vtkUnsignedCharArray;
00042
00043 class VTK_IO_EXPORT vtkPNGWriter : public vtkImageWriter
00044 {
00045 public:
00046 static vtkPNGWriter *New();
00047 vtkTypeRevisionMacro(vtkPNGWriter,vtkImageWriter);
00048 void PrintSelf(ostream& os, vtkIndent indent);
00049
00051 virtual void Write();
00052
00054
00055 vtkSetMacro(WriteToMemory, unsigned int);
00056 vtkGetMacro(WriteToMemory, unsigned int);
00057 vtkBooleanMacro(WriteToMemory, unsigned int);
00059
00061
00063 virtual void SetResult(vtkUnsignedCharArray*);
00064 vtkGetObjectMacro(Result, vtkUnsignedCharArray);
00066
00067 protected:
00068 vtkPNGWriter();
00069 ~vtkPNGWriter();
00070
00071 void WriteSlice(vtkImageData *data);
00072 unsigned int WriteToMemory;
00073 vtkUnsignedCharArray *Result;
00074
00075 private:
00076 vtkPNGWriter(const vtkPNGWriter&);
00077 void operator=(const vtkPNGWriter&);
00078 };
00079
00080 #endif
00081
00082