VTK
vtkValueSelector.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkValueSelector.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 =========================================================================*/
40 #ifndef vtkValueSelector_h
41 #define vtkValueSelector_h
42 
43 #include "vtkSelector.h"
44 
45 #include <memory> // unique_ptr
46 
47 class VTKFILTERSEXTRACTION_EXPORT vtkValueSelector : public vtkSelector
48 {
49 public:
50  static vtkValueSelector* New();
51  vtkTypeMacro(vtkValueSelector, vtkSelector);
52  void PrintSelf(ostream& os, vtkIndent indent) override;
53 
54  void Initialize(vtkSelectionNode* node, const std::string& insidednessArrayName) override;
55  void Finalize() override;
56 
57 protected:
59  ~vtkValueSelector() override;
60 
62  vtkSignedCharArray* insidednessArray, unsigned int compositeIndex,
63  unsigned int amrLevel, unsigned int amrIndex) override;
64 
65 private:
66  vtkValueSelector(const vtkValueSelector&) = delete;
67  void operator=(const vtkValueSelector&) = delete;
68 
69  class vtkInternals;
70  std::unique_ptr<vtkInternals> Internals;
71 };
72 
73 #endif
A node in a selection tree.
selects elements matching chosen values.
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.