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) override;
38  void Finalize() override;
39 
40 protected:
42  ~vtkLocationSelector() override;
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
vtkSelector::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSelectionNode
A node in a selection tree. Used to store selection results.
Definition: vtkSelectionNode.h:61
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkSelector::ComputeSelectedElements
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...
vtkSignedCharArray
dynamic, self-adjusting array of signed char
Definition: vtkSignedCharArray.h:35
vtkSelector.h
vtkSelector
Definition: vtkSelector.h:38
vtkLocationSelector
selects cells containing or points near chosen point locations.
Definition: vtkLocationSelector.h:30
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkSelector::Initialize
virtual void Initialize(vtkSelectionNode *node)
Sets the vtkSelectionNode used by this selection operator and initializes the data structures in the ...
vtkSelector::Finalize
virtual void Finalize()
Does any cleanup of objects created in Initialize.
Definition: vtkSelector.h:58
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:58