VTK  9.3.0
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:
24  void PrintSelf(ostream& os, vtkIndent indent) override;
25 
26  void Initialize(vtkSelectionNode* node) override;
27  void Finalize() override;
28 
29 protected:
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
general representation of visualization data
Definition: vtkDataObject.h:64
a simple class to control print indentation
Definition: vtkIndent.h:38
selects cells containing or points near chosen point locations.
~vtkLocationSelector() override
void Finalize() override
Does any cleanup of objects created in Initialize.
void Initialize(vtkSelectionNode *node) override
Sets the vtkSelectionNode used by this selection operator and initializes the data structures in the ...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
bool ComputeSelectedElements(vtkDataObject *input, vtkSignedCharArray *insidednessArray) override
This method computes whether or not each element in the dataset is inside the selection and populates...
static vtkLocationSelector * New()
a node in a vtkSelection the defines the selection criteria.
dynamic, self-adjusting array of signed char