VTK  9.0.3
vtkLocationSelector.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkLocationSelector.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 =========================================================================*/
23 #ifndef vtkLocationSelector_h
24 #define vtkLocationSelector_h
25 
26 #include "vtkSelector.h"
27 
28 #include <memory> // unique_ptr
29 
30 class VTKFILTERSEXTRACTION_EXPORT vtkLocationSelector : public vtkSelector
31 {
32 public:
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
37  void Initialize(vtkSelectionNode* node) override;
38  void Finalize() override;
39 
40 protected:
43 
44  bool ComputeSelectedElements(vtkDataObject* input, vtkSignedCharArray* insidednessArray) override;
45 
46 private:
48  void operator=(const vtkLocationSelector&) = delete;
49 
50  class vtkInternals;
51  class vtkInternalsForPoints;
52  class vtkInternalsForCells;
53  std::unique_ptr<vtkInternals> Internals;
54 };
55 
56 #endif
general representation of visualization data
Definition: vtkDataObject.h:60
a simple class to control print indentation
Definition: vtkIndent.h:34
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 selection tree.
dynamic, self-adjusting array of signed char