VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
vtkWriter.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkWriter.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
=========================================================================*/
33
#ifndef __vtkWriter_h
34
#define __vtkWriter_h
35
36
#include "
vtkAlgorithm.h
"
37
38
class
vtkDataObject
;
39
40
#define VTK_ASCII 1
41
#define VTK_BINARY 2
42
43
class
VTK_IO_EXPORT
vtkWriter
:
public
vtkAlgorithm
44
{
45
public
:
46
vtkTypeMacro(
vtkWriter
,
vtkAlgorithm
);
47
void
PrintSelf
(ostream& os,
vtkIndent
indent);
48
52
virtual
int
Write();
53
58
void
EncodeString(
char
* resname,
const
char
*
name
,
bool
doublePercent);
59
65
void
EncodeWriteString(ostream* out,
const
char
*
name
,
bool
doublePercent);
66
68
69
void
SetInput(
vtkDataObject
*input);
70
void
SetInput(
int
index
,
vtkDataObject
*input);
71
//BTX
72
vtkDataObject
*GetInput();
73
vtkDataObject
*GetInput(
int
port
);
74
//ETX
76
77
protected
:
78
vtkWriter
();
79
~
vtkWriter
();
80
81
virtual
int
ProcessRequest
(
vtkInformation
*request,
82
vtkInformationVector
**inputVector,
83
vtkInformationVector
*outputVector);
84
virtual
int
RequestData(
vtkInformation
*request,
85
vtkInformationVector
**inputVector,
86
vtkInformationVector
*outputVector);
87
88
virtual
void
WriteData() = 0;
//internal method subclasses must respond to
89
vtkTimeStamp
WriteTime
;
90
private
:
91
vtkWriter
(
const
vtkWriter
&);
// Not implemented.
92
void
operator=(
const
vtkWriter
&);
// Not implemented.
93
};
94
95
#endif
Generated on Wed May 30 2012 13:22:18 for VTK by
1.8.1