VTK  9.3.0
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 
15 #include "vtkDataObjectAlgorithm.h"
16 #include "vtkFiltersGeneralModule.h" // For export macro
17 
18 VTK_ABI_NAMESPACE_BEGIN
19 class VTKFILTERSGENERAL_EXPORT vtkExtractSelectionBase : public vtkDataObjectAlgorithm
20 {
21 public:
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 
45 protected:
48 
53  vtkInformationVector* outputVector) override;
54 
56 
58 
59 private:
61  void operator=(const vtkExtractSelectionBase&) = delete;
62 };
63 
64 VTK_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:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
int vtkTypeBool
Definition: vtkABI.h:64