VTK
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:
33  static vtkLocationSelector* New();
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
37  void Initialize(vtkSelectionNode* node, const std::string& insidednessArrayName) override;
38  void Finalize() override;
39 
40 protected:
42  ~vtkLocationSelector() override;
43 
45  vtkSignedCharArray* insidednessArray, unsigned int compositeIndex,
46  unsigned int amrLevel, unsigned int amrIndex) override;
47 
48 private:
50  void operator=(const vtkLocationSelector&) = delete;
51 
52  class vtkInternals;
53  class vtkInternalsForPoints;
54  class vtkInternalsForCells;
55  std::unique_ptr<vtkInternals> Internals;
56 };
57 
58 #endif
A node in a selection tree.
selects cells containing or points near chosen point locations.
virtual void Initialize(vtkSelectionNode *node, const std::string &insidednessArrayName)
Sets the vtkSelectionNode used by this selection operator and initializes the data structures in the ...
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual bool ComputeSelectedElementsForBlock(vtkDataObject *input, vtkSignedCharArray *insidednessArray, unsigned int compositeIndex, unsigned int amrLevel, unsigned int amrIndex)=0
This method computes whether or not each element in the dataset is inside the selection and populates...
dynamic, self-adjusting array of signed char
virtual void Finalize()
Does any cleanup of objects created in Initialize.
Definition: vtkSelector.h:57
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:64
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.