VTK  9.2.6
vtkExtractSelectedIds.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExtractSelectedIds.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
47 #ifndef vtkExtractSelectedIds_h
48 #define vtkExtractSelectedIds_h
49 
50 #include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_2_0
52 #include "vtkFiltersExtractionModule.h" // For export macro
53 
54 class vtkSelection;
55 class vtkSelectionNode;
56 
58  VTKFILTERSEXTRACTION_EXPORT vtkExtractSelectedIds : public vtkExtractSelectionBase
59 {
60 public:
61  static vtkExtractSelectedIds* New();
63  void PrintSelf(ostream& os, vtkIndent indent) override;
64 
65 protected:
67  ~vtkExtractSelectedIds() override;
68 
69  // Overridden to indicate that the input must be a vtkDataSet.
71 
72  // Usual data generation method
74 
75  int ExtractCells(vtkSelectionNode* sel, vtkDataSet* input, vtkDataSet* output);
76  int ExtractPoints(vtkSelectionNode* sel, vtkDataSet* input, vtkDataSet* output);
77 
78 private:
80  void operator=(const vtkExtractSelectedIds&) = delete;
81 };
82 
83 #endif
84 
85 // 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:62
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:59
a simple class to control print indentation
Definition: vtkIndent.h:39
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.