VMTK
vtkvmtkPNGWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: VMTK
4 Module: $RCSfile: vtkvmtkPNGWriter.h,v $
5 Language: C++
6 
7  Copyright (c) Luca Antiga, David Steinman. All rights reserved.
8  See LICENSE file for details.
9 
10  Portions of this code are covered under the VTK copyright.
11  See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
12  for details.
13 
14  This software is distributed WITHOUT ANY WARRANTY; without even
15  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16  PURPOSE. See the above copyright notices for more information.
17 
18 =========================================================================*/
28 #ifndef __vtkvmtkPNGWriter_h
29 #define __vtkvmtkPNGWriter_h
30 
31 #include "vtkvmtkWin32Header.h"
32 #include "vtkPNGWriter.h"
33 
34 class VTK_VMTK_IO_EXPORT vtkvmtkPNGWriter : public vtkPNGWriter
35 {
36 public:
37  static vtkvmtkPNGWriter *New();
38  vtkTypeMacro(vtkvmtkPNGWriter,vtkPNGWriter);
39  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
40 
41  vtkGetStringMacro(Base64Image);
42  vtkSetStringMacro(Base64Image);
43 
44  vtkSetMacro(WriteToBase64,int);
45  vtkGetMacro(WriteToBase64,int);
46  vtkBooleanMacro(WriteToBase64,int);
47 
48  vtkSetMacro(FlipImage,int);
49  vtkGetMacro(FlipImage,int);
50  vtkBooleanMacro(FlipImage,int);
51 
52  virtual void Write() VTK_OVERRIDE;
53 
54 protected:
57 
58  char* Base64Image;
59  int WriteToBase64;
60  int FlipImage;
61 
62 private:
63  vtkvmtkPNGWriter(const vtkvmtkPNGWriter&); // Not implemented.
64  void operator=(const vtkvmtkPNGWriter&); // Not implemented.
65 };
66 
67 #endif
writes .png files