VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filtering
vtkSelectionAlgorithm.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkSelectionAlgorithm.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
=========================================================================*/
43
#ifndef __vtkSelectionAlgorithm_h
44
#define __vtkSelectionAlgorithm_h
45
46
#include "
vtkAlgorithm.h
"
47
#include "
vtkSelection.h
"
// makes things a bit easier
48
49
class
vtkDataSet
;
50
51
class
VTK_FILTERING_EXPORT
vtkSelectionAlgorithm
:
public
vtkAlgorithm
52
{
53
public
:
54
static
vtkSelectionAlgorithm
*
New
();
55
vtkTypeMacro(
vtkSelectionAlgorithm
,
vtkAlgorithm
);
56
void
PrintSelf
(ostream& os,
vtkIndent
indent);
57
59
60
virtual
int
ProcessRequest
(
vtkInformation
*,
61
vtkInformationVector
**,
62
vtkInformationVector
*);
64
66
67
vtkSelection
*
GetOutput
() {
return
this->
GetOutput
(0); }
68
vtkSelection
* GetOutput(
int
index
);
70
72
79
void
SetInput
(
vtkDataObject
* obj) { this->
SetInput
(0, obj); }
80
void
SetInput(
int
index
,
vtkDataObject
* obj);
82
83
protected
:
84
vtkSelectionAlgorithm
();
85
~
vtkSelectionAlgorithm
();
86
87
// convenience method
88
virtual
int
RequestInformation(
vtkInformation
* request,
89
vtkInformationVector
** inputVector,
90
vtkInformationVector
* outputVector);
91
93
95
virtual
int
RequestData(
vtkInformation
* request,
96
vtkInformationVector
** inputVector,
97
vtkInformationVector
* outputVector);
99
101
103
virtual
int
RequestUpdateExtent(
vtkInformation
*,
104
vtkInformationVector
**,
105
vtkInformationVector
*);
107
108
// see algorithm for more info
109
virtual
int
FillOutputPortInformation
(
int
port
,
vtkInformation
*
info
);
110
virtual
int
FillInputPortInformation
(
int
port
,
vtkInformation
*
info
);
111
112
private
:
113
vtkSelectionAlgorithm
(
const
vtkSelectionAlgorithm
&);
// Not implemented.
114
void
operator=(
const
vtkSelectionAlgorithm
&);
// Not implemented.
115
};
116
117
#endif
Generated on Wed May 30 2012 13:21:57 for VTK by
1.8.1