VTK  9.3.20240425
vtkExtractSelectionBase.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
12#ifndef vtkExtractSelectionBase_h
13#define vtkExtractSelectionBase_h
14
16#include "vtkFiltersGeneralModule.h" // For export macro
17
18VTK_ABI_NAMESPACE_BEGIN
19class VTKFILTERSGENERAL_EXPORT vtkExtractSelectionBase : public vtkDataObjectAlgorithm
20{
21public:
23 void PrintSelf(ostream& os, vtkIndent indent) override;
24
30 {
31 this->SetInputConnection(1, algOutput);
32 }
33
35
40 vtkSetMacro(PreserveTopology, vtkTypeBool);
41 vtkGetMacro(PreserveTopology, vtkTypeBool);
42 vtkBooleanMacro(PreserveTopology, vtkTypeBool);
44
45protected:
48
53 vtkInformationVector* outputVector) override;
54
55 int FillInputPortInformation(int port, vtkInformation* info) override;
56
58
59private:
61 void operator=(const vtkExtractSelectionBase&) = delete;
62};
63
64VTK_ABI_NAMESPACE_END
65#endif
Proxy object to connect input/output ports.
virtual void SetInputConnection(int port, vtkAlgorithmOutput *input)
Set the connection for the given input port index.
Superclass for algorithms that produce only data object as output.
abstract base class for all extract selection filters.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Sets up empty output dataset.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void SetSelectionConnection(vtkAlgorithmOutput *algOutput)
Convenience method to specify the selection connection (2nd input port)
~vtkExtractSelectionBase() override
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition vtkABI.h:64