VTK  9.3.20240419
vtkSelectionAlgorithm.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
25 #ifndef vtkSelectionAlgorithm_h
26 #define vtkSelectionAlgorithm_h
27 
28 #include "vtkAlgorithm.h"
29 #include "vtkCommonExecutionModelModule.h" // For export macro
30 #include "vtkSelection.h" // makes things a bit easier
31 
32 VTK_ABI_NAMESPACE_BEGIN
33 class vtkDataSet;
34 
35 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkSelectionAlgorithm : public vtkAlgorithm
36 {
37 public:
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
47 
51  vtkSelection* GetOutput() { return this->GetOutput(0); }
53 
59  void SetInputData(vtkDataObject* obj) { this->SetInputData(0, obj); }
60  void SetInputData(int index, vtkDataObject* obj);
61 
62 protected:
65 
66  // convenience method
67  virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
68  vtkInformationVector* outputVector);
69 
74  virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
75  vtkInformationVector* outputVector);
76 
82 
84 
85  // see algorithm for more info
88 
89 private:
91  void operator=(const vtkSelectionAlgorithm&) = delete;
92 };
93 
94 VTK_ABI_NAMESPACE_END
95 #endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:162
general representation of visualization data
abstract class to specify dataset behavior
Definition: vtkDataSet.h:166
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only Selection as output.
virtual int RequestUpdateTime(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkSelection * GetOutput(int index)
static vtkSelectionAlgorithm * New()
vtkSelection * GetOutput()
Get the output data object for a port on this algorithm.
void SetInputData(vtkDataObject *obj)
Assign a data object as input.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
~vtkSelectionAlgorithm() override
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
void SetInputData(int index, vtkDataObject *obj)
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
data object that represents a "selection" in VTK.
Definition: vtkSelection.h:159
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
@ index
Definition: vtkX3D.h:246
int vtkTypeBool
Definition: vtkABI.h:64