Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/IO/vtkPNGWriter.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkPNGWriter.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 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&); // Not implemented. 00077 void operator=(const vtkPNGWriter&); // Not implemented. 00078 }; 00079 00080 #endif 00081 00082