VTK  9.3.1
vtkExtractSelectedIds.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
35 #ifndef vtkExtractSelectedIds_h
36 #define vtkExtractSelectedIds_h
37 
38 #include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_2_0
40 #include "vtkFiltersExtractionModule.h" // For export macro
41 
42 VTK_ABI_NAMESPACE_BEGIN
43 class vtkSelection;
44 class vtkSelectionNode;
45 
47  VTKFILTERSEXTRACTION_EXPORT vtkExtractSelectedIds : public vtkExtractSelectionBase
48 {
49 public:
50  static vtkExtractSelectedIds* New();
52  void PrintSelf(ostream& os, vtkIndent indent) override;
53 
54 protected:
56  ~vtkExtractSelectedIds() override;
57 
58  // Overridden to indicate that the input must be a vtkDataSet.
60 
61  // Usual data generation method
63 
64  int ExtractCells(vtkSelectionNode* sel, vtkDataSet* input, vtkDataSet* output);
65  int ExtractPoints(vtkSelectionNode* sel, vtkDataSet* input, vtkDataSet* output);
66 
67 private:
69  void operator=(const vtkExtractSelectedIds&) = delete;
70 };
71 
72 VTK_ABI_NAMESPACE_END
73 #endif
74 
75 // VTK-HeaderTest-Exclude: vtkExtractSelectedIds.h
a node in a vtkSelection the defines the selection criteria.
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:52
static vtkDataObjectAlgorithm * New()
extract a list of cells from a dataset
#define VTK_DEPRECATED_IN_9_2_0(reason)
abstract base class for all extract selection filters.
data object that represents a "selection" in VTK.
Definition: vtkSelection.h:49
a simple class to control print indentation
Definition: vtkIndent.h:28
extract a subset from a vtkDataSet.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store zero or more vtkInformation instances.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.