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 "vtkIOImageModule.h" // For export macro
35 #include "vtkImageWriter.h"
36 
37 class vtkImageData;
39 
41 {
42 public:
43  static vtkPNGWriter *New();
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
48  virtual void Write();
49 
51 
55  vtkSetClampMacro(CompressionLevel, int, 0, 9);
56  vtkGetMacro(CompressionLevel, int);
58 
60 
61  vtkSetMacro(WriteToMemory, unsigned int);
62  vtkGetMacro(WriteToMemory, unsigned int);
63  vtkBooleanMacro(WriteToMemory, unsigned int);
65 
67 
69  virtual void SetResult(vtkUnsignedCharArray*);
70  vtkGetObjectMacro(Result, vtkUnsignedCharArray);
72 
73 protected:
74  vtkPNGWriter();
75  ~vtkPNGWriter();
76 
77  void WriteSlice(vtkImageData *data, int* uExtent);
79  unsigned int WriteToMemory;
81  FILE *TempFP;
82 
83 private:
84  vtkPNGWriter(const vtkPNGWriter&); // Not implemented.
85  void operator=(const vtkPNGWriter&); // Not implemented.
86 };
87 
88 #endif
89 
90 
Writes PNG files.
Definition: vtkPNGWriter.h:40
unsigned int WriteToMemory
Definition: vtkPNGWriter.h:79
FILE * TempFP
Definition: vtkPNGWriter.h:81
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkUnsignedCharArray * Result
Definition: vtkPNGWriter.h:80
topologically and geometrically regular array of data
Definition: vtkImageData.h:44
virtual void Write()
Writes images to files.
static vtkImageWriter * New()
dynamic, self-adjusting array of unsigned char
void PrintSelf(ostream &os, vtkIndent indent)
#define VTKIOIMAGE_EXPORT
int CompressionLevel
Definition: vtkPNGWriter.h:78