VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filtering
vtkUnstructuredGridAlgorithm.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkUnstructuredGridAlgorithm.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 __vtkUnstructuredGridAlgorithm_h
37
#define __vtkUnstructuredGridAlgorithm_h
38
39
#include "
vtkAlgorithm.h
"
40
41
class
vtkDataSet
;
42
class
vtkUnstructuredGrid
;
43
44
class
VTK_FILTERING_EXPORT
vtkUnstructuredGridAlgorithm
:
public
vtkAlgorithm
45
{
46
public
:
47
static
vtkUnstructuredGridAlgorithm
*
New
();
48
vtkTypeMacro(
vtkUnstructuredGridAlgorithm
,
vtkAlgorithm
);
49
void
PrintSelf
(ostream& os,
vtkIndent
indent);
50
52
53
vtkUnstructuredGrid
* GetOutput();
54
vtkUnstructuredGrid
* GetOutput(
int
);
55
virtual
void
SetOutput(
vtkDataObject
* d);
57
59
60
virtual
int
ProcessRequest
(
vtkInformation
*,
61
vtkInformationVector
**,
62
vtkInformationVector
*);
64
65
// this method is not recommended for use, but lots of old style filters
66
// use it
67
vtkDataObject
*GetInput(
int
port
);
68
vtkDataObject
*
GetInput
() {
return
this->
GetInput
(0); };
69
vtkUnstructuredGrid
*GetUnstructuredGridInput(
int
port
);
70
72
79
void
SetInput(
vtkDataObject
*);
80
void
SetInput(
int
,
vtkDataObject
*);
82
84
88
void
AddInput(
vtkDataObject
*);
89
void
AddInput(
int
,
vtkDataObject
*);
91
92
protected
:
93
vtkUnstructuredGridAlgorithm
();
94
~
vtkUnstructuredGridAlgorithm
();
95
96
// convenience method
97
virtual
int
RequestInformation(
vtkInformation
* request,
98
vtkInformationVector
** inputVector,
99
vtkInformationVector
* outputVector);
100
102
104
virtual
int
RequestData(
vtkInformation
* request,
105
vtkInformationVector
** inputVector,
106
vtkInformationVector
* outputVector);
108
110
112
virtual
int
RequestUpdateExtent(
vtkInformation
*,
113
vtkInformationVector
**,
114
vtkInformationVector
*);
116
118
119
virtual
void
ExecuteData(
vtkDataObject
*output);
120
virtual
void
Execute();
122
123
// see algorithm for more info
124
virtual
int
FillOutputPortInformation
(
int
port
,
vtkInformation
*
info
);
125
virtual
int
FillInputPortInformation
(
int
port
,
vtkInformation
*
info
);
126
127
private
:
128
vtkUnstructuredGridAlgorithm
(
const
vtkUnstructuredGridAlgorithm
&);
// Not implemented.
129
void
operator=(
const
vtkUnstructuredGridAlgorithm
&);
// Not implemented.
130
};
131
132
#endif
Generated on Thu Mar 13 2014 08:09:57 for VTK by
1.8.1.2