VTK  9.1.0
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
47class VTKFILTERSEXTRACTION_EXPORT vtkValueSelector : public vtkSelector
48{
49public:
52 void PrintSelf(ostream& os, vtkIndent indent) override;
53
54 void Initialize(vtkSelectionNode* node) override;
55 void Finalize() override;
56
57protected:
60
61 bool ComputeSelectedElements(vtkDataObject* input, vtkSignedCharArray* insidednessArray) override;
62
63private:
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
a simple class to control print indentation
Definition: vtkIndent.h:113
a node in a vtkSelection the defines the selection criteria.
dynamic, self-adjusting array of signed char
selects elements matching chosen values.
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
static vtkValueSelector * New()
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...