VTK
vtkPNGWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPNGWriter.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
31 #ifndef __vtkPNGWriter_h
32 #define __vtkPNGWriter_h
33 
34 #include "vtkImageWriter.h"
35 
36 class vtkImageData;
38 
40 {
41 public:
42  static vtkPNGWriter *New();
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
47  virtual void Write();
48 
50 
51  vtkSetMacro(WriteToMemory, unsigned int);
52  vtkGetMacro(WriteToMemory, unsigned int);
53  vtkBooleanMacro(WriteToMemory, unsigned int);
55 
57 
59  virtual void SetResult(vtkUnsignedCharArray*);
60  vtkGetObjectMacro(Result, vtkUnsignedCharArray);
62 
63 protected:
64  vtkPNGWriter();
65  ~vtkPNGWriter();
66 
67  void WriteSlice(vtkImageData *data);
68  unsigned int WriteToMemory;
70  FILE *TempFP;
71 
72 private:
73  vtkPNGWriter(const vtkPNGWriter&); // Not implemented.
74  void operator=(const vtkPNGWriter&); // Not implemented.
75 };
76 
77 #endif
78 
79 
Writes PNG files.
Definition: vtkPNGWriter.h:39
unsigned int WriteToMemory
Definition: vtkPNGWriter.h:68
FILE * TempFP
Definition: vtkPNGWriter.h:70
a simple class to control print indentation
Definition: vtkIndent.h:37
vtkUnsignedCharArray * Result
Definition: vtkPNGWriter.h:69
topologically and geometrically regular array of data
Definition: vtkImageData.h:43
virtual void Write()
Writes images to files.
static vtkImageWriter * New()
dynamic, self-adjusting array of unsigned char
void PrintSelf(ostream &os, vtkIndent indent)
#define VTK_IO_EXPORT