VTK  9.3.20241003
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
32VTK_ABI_NAMESPACE_BEGIN
33class vtkDataSet;
34
35class VTKCOMMONEXECUTIONMODEL_EXPORT vtkSelectionAlgorithm : public vtkAlgorithm
36{
37public:
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
62protected:
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
86 int FillOutputPortInformation(int port, vtkInformation* info) override;
87 int FillInputPortInformation(int port, vtkInformation* info) override;
88
89private:
91 void operator=(const vtkSelectionAlgorithm&) = delete;
92};
93
94VTK_ABI_NAMESPACE_END
95#endif
Superclass for all sources, filters, and sinks in VTK.
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.
vtkSelection * GetOutput()
Get the output data object for a port on this algorithm.
vtkSelection * GetOutput(int index)
virtual int RequestUpdateTime(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
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.
static vtkSelectionAlgorithm * New()
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.
int vtkTypeBool
Definition vtkABI.h:64