VTK  9.0.1
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) override;
55  void Finalize() override;
56 
57 protected:
59  ~vtkValueSelector() override;
60 
61  bool ComputeSelectedElements(vtkDataObject* input, vtkSignedCharArray* insidednessArray) override;
62 
63 private:
64  vtkValueSelector(const vtkValueSelector&) = delete;
65  void operator=(const vtkValueSelector&) = delete;
66 
67  class vtkInternals;
68  std::unique_ptr<vtkInternals> Internals;
69 };
70 
71 #endif
general representation of visualization data
Definition: vtkDataObject.h:60
a simple class to control print indentation
Definition: vtkIndent.h:34
A node in a selection tree.
dynamic, self-adjusting array of signed char
selects elements matching chosen values.
static vtkValueSelector * New()
void Initialize(vtkSelectionNode *node) override
Sets the vtkSelectionNode used by this selection operator and initializes the data structures in the ...
void Finalize() override
Does any cleanup of objects created in Initialize.
~vtkValueSelector() override
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...