VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filtering
vtkGenericDataSetAlgorithm.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkGenericDataSetAlgorithm.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 __vtkGenericDataSetAlgorithm_h
37
#define __vtkGenericDataSetAlgorithm_h
38
39
#include "
vtkAlgorithm.h
"
40
#include "
vtkGenericDataSet.h
"
// makes things a bit easier
41
42
class
vtkDataSet
;
43
class
vtkGenericDataSet
;
44
45
class
VTK_FILTERING_EXPORT
vtkGenericDataSetAlgorithm
:
public
vtkAlgorithm
46
{
47
public
:
48
vtkTypeMacro(
vtkGenericDataSetAlgorithm
,
vtkAlgorithm
);
49
void
PrintSelf
(ostream& os,
vtkIndent
indent);
50
52
53
vtkGenericDataSet
* GetOutput();
54
vtkGenericDataSet
* 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();
68
vtkDataObject
*GetInput(
int
port
);
69
vtkGenericDataSet
*GetGenericDataSetInput(
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
vtkGenericDataSetAlgorithm
();
94
~
vtkGenericDataSetAlgorithm
();
95
96
// convenience method
97
virtual
int
RequestInformation(
vtkInformation
* request,
98
vtkInformationVector
** inputVector,
99
vtkInformationVector
* outputVector);
100
102
105
virtual
int
RequestData(
vtkInformation
* request,
106
vtkInformationVector
** inputVector,
107
vtkInformationVector
* outputVector);
109
111
114
virtual
int
RequestDataObject(
vtkInformation
* request,
115
vtkInformationVector
** inputVector,
116
vtkInformationVector
* outputVector)=0;
118
120
123
virtual
int
RequestUpdateExtent(
vtkInformation
*,
124
vtkInformationVector
**,
125
vtkInformationVector
*);
127
129
130
virtual
void
ExecuteData(
vtkDataObject
*output);
131
virtual
void
Execute();
133
134
// see algorithm for more info
135
virtual
int
FillOutputPortInformation
(
int
port
,
vtkInformation
*
info
);
136
virtual
int
FillInputPortInformation
(
int
port
,
vtkInformation
*
info
);
137
138
private
:
139
vtkGenericDataSetAlgorithm
(
const
vtkGenericDataSetAlgorithm
&);
// Not implemented.
140
void
operator=(
const
vtkGenericDataSetAlgorithm
&);
// Not implemented.
141
};
142
143
#endif
Generated on Fri Aug 2 2013 12:19:47 for VTK by
1.8.4