VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filtering
vtkDataSetAlgorithm.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkDataSetAlgorithm.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
=========================================================================*/
36
#ifndef __vtkDataSetAlgorithm_h
37
#define __vtkDataSetAlgorithm_h
38
39
#include "
vtkAlgorithm.h
"
40
41
class
vtkDataSet
;
42
class
vtkImageData
;
43
class
vtkPolyData
;
44
class
vtkStructuredPoints
;
45
class
vtkStructuredGrid
;
46
class
vtkUnstructuredGrid
;
47
class
vtkRectilinearGrid
;
48
49
class
VTK_FILTERING_EXPORT
vtkDataSetAlgorithm
:
public
vtkAlgorithm
50
{
51
public
:
52
static
vtkDataSetAlgorithm
*
New
();
53
vtkTypeMacro(
vtkDataSetAlgorithm
,
vtkAlgorithm
);
54
void
PrintSelf
(ostream& os,
vtkIndent
indent);
55
57
58
vtkDataSet
* GetOutput();
59
vtkDataSet
* GetOutput(
int
);
61
64
vtkDataObject
* GetInput();
65
67
vtkPolyData
*GetPolyDataOutput();
68
70
vtkStructuredPoints
*GetStructuredPointsOutput();
71
73
vtkImageData
*GetImageDataOutput();
74
76
vtkStructuredGrid
*GetStructuredGridOutput();
77
79
vtkUnstructuredGrid
*GetUnstructuredGridOutput();
80
82
vtkRectilinearGrid
*GetRectilinearGridOutput();
83
85
92
void
SetInput(
vtkDataObject
*);
93
void
SetInput(
int
,
vtkDataObject
*);
94
void
SetInput(
vtkDataSet
*);
95
void
SetInput(
int
,
vtkDataSet
*);
97
99
103
void
AddInput(
vtkDataObject
*);
104
void
AddInput(
vtkDataSet
*);
105
void
AddInput(
int
,
vtkDataSet
*);
106
void
AddInput(
int
,
vtkDataObject
*);
108
110
111
virtual
int
ProcessRequest
(
vtkInformation
* request,
112
vtkInformationVector
** inputVector,
113
vtkInformationVector
* outputVector);
115
116
protected
:
117
vtkDataSetAlgorithm
();
118
~vtkDataSetAlgorithm
() {};
119
121
126
virtual
int
RequestInformation(
vtkInformation
*,
127
vtkInformationVector
**,
128
vtkInformationVector
*) {
return
1;};
130
132
136
virtual
int
RequestUpdateExtent(
vtkInformation
*,
137
vtkInformationVector
**,
138
vtkInformationVector
*)
139
{
140
return
1;
141
};
143
144
146
153
virtual
int
RequestDataObject(
vtkInformation
* request,
154
vtkInformationVector
** inputVector,
155
vtkInformationVector
* outputVector);
157
159
163
virtual
int
RequestData(
vtkInformation
*,
164
vtkInformationVector
**,
165
vtkInformationVector
*) {
return
1;};
167
168
169
// see algorithm for more info
170
virtual
int
FillOutputPortInformation
(
int
port
,
vtkInformation
*
info
);
171
virtual
int
FillInputPortInformation
(
int
port
,
vtkInformation
*
info
);
172
173
vtkDataObject
*GetInput(
int
port
);
174
175
private
:
176
vtkDataSetAlgorithm
(
const
vtkDataSetAlgorithm
&);
// Not implemented.
177
void
operator=(
const
vtkDataSetAlgorithm
&);
// Not implemented.
178
};
179
180
#endif
181
182
Generated on Sun Sep 9 2012 13:03:28 for VTK by
1.8.1.2