VTK  9.3.1
vtkLocationSelector.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
11 #ifndef vtkLocationSelector_h
12 #define vtkLocationSelector_h
13 
14 #include "vtkSelector.h"
15 
16 #include <memory> // unique_ptr
17 
18 VTK_ABI_NAMESPACE_BEGIN
19 class VTKFILTERSEXTRACTION_EXPORT vtkLocationSelector : public vtkSelector
20 {
21 public:
22  static vtkLocationSelector* New();
24  void PrintSelf(ostream& os, vtkIndent indent) override;
25 
26  void Initialize(vtkSelectionNode* node) override;
27  void Finalize() override;
28 
29 protected:
31  ~vtkLocationSelector() override;
32 
33  bool ComputeSelectedElements(vtkDataObject* input, vtkSignedCharArray* insidednessArray) override;
34 
35 private:
37  void operator=(const vtkLocationSelector&) = delete;
38 
39  class vtkInternals;
40  class vtkInternalsForPoints;
41  class vtkInternalsForCells;
42  std::unique_ptr<vtkInternals> Internals;
43 };
44 
45 VTK_ABI_NAMESPACE_END
46 #endif
a node in a vtkSelection the defines the selection criteria.
virtual bool ComputeSelectedElements(vtkDataObject *input, vtkSignedCharArray *insidednessArray)=0
This method computes whether or not each element in the dataset is inside the selection and populates...
selects cells containing or points near chosen point locations.
a simple class to control print indentation
Definition: vtkIndent.h:28
dynamic, self-adjusting array of signed char
virtual void Initialize(vtkSelectionNode *node)
Sets the vtkSelectionNode used by this selection operator and initializes the data structures in the ...
virtual void Finalize()
Does any cleanup of objects created in Initialize.
Definition: vtkSelector.h:49
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
general representation of visualization data
Definition: vtkDataObject.h:54
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.