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:
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:
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
vtkLocationSelector::vtkLocationSelector
vtkLocationSelector()
vtkLocationSelector::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.
Definition: vtkSelectionNode.h:68
vtkLocationSelector::New
static vtkLocationSelector * New()
vtkLocationSelector::Finalize
void Finalize() override
Does any cleanup of objects created in Initialize.
vtkSignedCharArray
dynamic, self-adjusting array of signed char
Definition: vtkSignedCharArray.h:39
vtkSelector.h
vtkSelector
Definition: vtkSelector.h:36
vtkLocationSelector
selects cells containing or points near chosen point locations.
Definition: vtkLocationSelector.h:31
vtkLocationSelector::Initialize
void Initialize(vtkSelectionNode *node, const std::string &insidednessArrayName) override
Sets the vtkSelectionNode used by this selection operator and initializes the data structures in the ...
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkLocationSelector::ComputeSelectedElementsForBlock
bool ComputeSelectedElementsForBlock(vtkDataObject *input, vtkSignedCharArray *insidednessArray, unsigned int compositeIndex, unsigned int amrLevel, unsigned int amrIndex) override
This method computes whether or not each element in the dataset is inside the selection and populates...
vtkX3D::string
@ string
Definition: vtkX3D.h:490
vtkLocationSelector::~vtkLocationSelector
~vtkLocationSelector() override
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65