VTK
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 =========================================================================*/
31 #ifndef vtkExtractSelectedIds_h
32 #define vtkExtractSelectedIds_h
33 
34 #include "vtkFiltersExtractionModule.h" // For export macro
36 
37 class vtkSelection;
38 class vtkSelectionNode;
39 
40 class VTKFILTERSEXTRACTION_EXPORT vtkExtractSelectedIds : public vtkExtractSelectionBase
41 {
42 public:
43  static vtkExtractSelectedIds *New();
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
47 protected:
49  ~vtkExtractSelectedIds() override;
50 
51  // Overridden to indicate that the input must be a vtkDataSet.
53 
54  // Usual data generation method
57  vtkInformationVector *) override;
58 
59 
60  int ExtractCells(vtkSelectionNode *sel, vtkDataSet *input,
61  vtkDataSet *output);
62  int ExtractPoints(vtkSelectionNode *sel, vtkDataSet *input,
63  vtkDataSet *output);
64 
65 private:
67  void operator=(const vtkExtractSelectedIds&) = delete;
68 };
69 
70 #endif
vtkExtractSelectionBase::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkExtractSelectionBase.h
vtkSelectionNode
A node in a selection tree. Used to store selection results.
Definition: vtkSelectionNode.h:67
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkSelection
data object that represents a "selection" in VTK.
Definition: vtkSelection.h:63
vtkExtractSelectedIds
extract a list of cells from a dataset
Definition: vtkExtractSelectedIds.h:40
vtkX3D::port
Definition: vtkX3D.h:447
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
Definition: vtkX3D.h:376
vtkExtractSelectionBase
abstract base class for all extract selection filters.
Definition: vtkExtractSelectionBase.h:30
vtkDataObjectAlgorithm::New
static vtkDataObjectAlgorithm * New()
vtkDataObjectAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Definition: vtkDataObjectAlgorithm.h:122
vtkExtractSelectionBase::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.