VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filtering
vtkDataObjectAlgorithm.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkDataObjectAlgorithm.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 __vtkDataObjectAlgorithm_h
37
#define __vtkDataObjectAlgorithm_h
38
39
#include "
vtkAlgorithm.h
"
40
#include "
vtkDataObject.h
"
// makes things a bit easier
41
42
class
vtkDataSet
;
43
class
vtkDataObject
;
44
45
class
VTK_FILTERING_EXPORT
vtkDataObjectAlgorithm
:
public
vtkAlgorithm
46
{
47
public
:
48
static
vtkDataObjectAlgorithm
*
New
();
49
vtkTypeMacro(
vtkDataObjectAlgorithm
,
vtkAlgorithm
);
50
void
PrintSelf
(ostream& os,
vtkIndent
indent);
51
53
54
vtkDataObject
* GetOutput();
55
vtkDataObject
* 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
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
vtkDataObjectAlgorithm
();
94
~
vtkDataObjectAlgorithm
();
95
96
// convenience method
97
virtual
int
RequestInformation(
vtkInformation
* request,
98
vtkInformationVector
** inputVector,
99
vtkInformationVector
* outputVector);
100
102
104
virtual
int
RequestDataObject(
vtkInformation
*,
105
vtkInformationVector
**,
106
vtkInformationVector
*)
107
{
108
return
1;
109
}
111
112
virtual
int
RequestData(
vtkInformation
* request,
113
vtkInformationVector
** inputVector,
114
vtkInformationVector
* outputVector);
115
117
119
virtual
int
RequestUpdateExtent(
vtkInformation
*,
120
vtkInformationVector
**,
121
vtkInformationVector
*)
122
{
123
return
1;
124
};
126
131
int
UpdateExtentIsEmpty
(
vtkDataObject
*output);
132
134
135
virtual
void
ExecuteData(
vtkDataObject
*output);
136
virtual
void
Execute();
138
139
// see algorithm for more info
140
virtual
int
FillOutputPortInformation
(
int
port
,
vtkInformation
*
info
);
141
virtual
int
FillInputPortInformation
(
int
port
,
vtkInformation
*
info
);
142
143
private
:
144
vtkDataObjectAlgorithm
(
const
vtkDataObjectAlgorithm
&);
// Not implemented.
145
void
operator=(
const
vtkDataObjectAlgorithm
&);
// Not implemented.
146
};
147
148
#endif
Generated on Wed May 30 2012 13:21:54 for VTK by
1.8.1