VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
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
;
37
class
vtkUnsignedCharArray
;
38
39
class
VTK_IO_EXPORT
vtkPNGWriter
:
public
vtkImageWriter
40
{
41
public
:
42
static
vtkPNGWriter
*
New
();
43
vtkTypeMacro(
vtkPNGWriter
,
vtkImageWriter
);
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
;
69
vtkUnsignedCharArray
*
Result
;
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
Generated on Wed Nov 21 2012 21:33:59 for VTK by
1.8.2