VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filtering
vtkStructuredGridAlgorithm.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkStructuredGridAlgorithm.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 __vtkStructuredGridAlgorithm_h
37
#define __vtkStructuredGridAlgorithm_h
38
39
#include "
vtkAlgorithm.h
"
40
#include "
vtkStructuredGrid.h
"
// makes things a bit easier
41
42
class
vtkDataSet
;
43
class
vtkStructuredGrid
;
44
45
class
VTK_FILTERING_EXPORT
vtkStructuredGridAlgorithm
:
public
vtkAlgorithm
46
{
47
public
:
48
static
vtkStructuredGridAlgorithm
*
New
();
49
vtkTypeMacro(
vtkStructuredGridAlgorithm
,
vtkAlgorithm
);
50
void
PrintSelf
(ostream& os,
vtkIndent
indent);
51
53
54
vtkStructuredGrid
* GetOutput();
55
vtkStructuredGrid
* GetOutput(
int
);
56
virtual
void
SetOutput(
vtkDataObject
* d);
58
60
61
virtual
int
ProcessRequest
(
vtkInformation
*,
62
vtkInformationVector
**,
63
vtkInformationVector
*);
65
66
// this method is not recommended for use, but lots of old style filters
67
// use it
68
vtkDataObject
* GetInput();
69
vtkDataObject
*GetInput(
int
port
);
70
vtkStructuredGrid
*GetStructuredGridInput(
int
port
);
71
73
80
void
SetInput(
vtkDataObject
*);
81
void
SetInput(
int
,
vtkDataObject
*);
83
85
89
void
AddInput(
vtkDataObject
*);
90
void
AddInput(
int
,
vtkDataObject
*);
92
93
protected
:
94
vtkStructuredGridAlgorithm
();
95
~
vtkStructuredGridAlgorithm
();
96
97
// convenience method
98
virtual
int
RequestInformation(
vtkInformation
* request,
99
vtkInformationVector
** inputVector,
100
vtkInformationVector
* outputVector);
101
103
105
virtual
int
RequestData(
vtkInformation
* request,
106
vtkInformationVector
** inputVector,
107
vtkInformationVector
* outputVector);
109
111
113
virtual
int
RequestUpdateExtent(
vtkInformation
*,
114
vtkInformationVector
**,
115
vtkInformationVector
*)
116
{
117
return
1;
118
};
120
122
123
virtual
void
ExecuteData(
vtkDataObject
*output);
124
virtual
void
Execute();
126
127
// see algorithm for more info
128
virtual
int
FillOutputPortInformation
(
int
port
,
vtkInformation
*
info
);
129
virtual
int
FillInputPortInformation
(
int
port
,
vtkInformation
*
info
);
130
131
private
:
132
vtkStructuredGridAlgorithm
(
const
vtkStructuredGridAlgorithm
&);
// Not implemented.
133
void
operator=(
const
vtkStructuredGridAlgorithm
&);
// Not implemented.
134
};
135
136
#endif
Generated on Wed May 30 2012 13:21:57 for VTK by
1.8.1