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

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 =========================================================================*/
00046 #ifndef __vtkPNGWriter_h
00047 #define __vtkPNGWriter_h
00048 
00049 #include "vtkImageWriter.h"
00050 
00051 class vtkImageData;
00052 class vtkUnsignedCharArray;
00053 
00054 class VTK_IO_EXPORT vtkPNGWriter : public vtkImageWriter
00055 {
00056 public:
00057   static vtkPNGWriter *New();
00058   vtkTypeRevisionMacro(vtkPNGWriter,vtkImageWriter);
00059   void PrintSelf(ostream& os, vtkIndent indent);
00060 
00062   virtual void Write();
00063 
00065 
00066   vtkSetMacro(WriteToMemory, unsigned int);
00067   vtkGetMacro(WriteToMemory, unsigned int);
00068   vtkBooleanMacro(WriteToMemory, unsigned int);
00070   
00072 
00074   virtual void SetResult(vtkUnsignedCharArray*);
00075   vtkGetObjectMacro(Result, vtkUnsignedCharArray);
00077 
00078 protected:
00079   vtkPNGWriter();
00080   ~vtkPNGWriter();
00081   
00082   void WriteSlice(vtkImageData *data);
00083   unsigned int WriteToMemory;
00084   vtkUnsignedCharArray *Result;
00085 
00086 private:
00087   vtkPNGWriter(const vtkPNGWriter&);  // Not implemented.
00088   void operator=(const vtkPNGWriter&);  // Not implemented.
00089 };
00090 
00091 #endif
00092 
00093