VTK  9.4.20250102
vtkValueSelector.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
28#ifndef vtkValueSelector_h
29#define vtkValueSelector_h
30
31#include "vtkSelector.h"
32
33#include <memory> // unique_ptr
34
35VTK_ABI_NAMESPACE_BEGIN
37
38class VTKFILTERSEXTRACTION_EXPORT vtkValueSelector : public vtkSelector
39{
40private:
41 friend class vtkConvertSelection;
42
43public:
46 void PrintSelf(ostream& os, vtkIndent indent) override;
47
48 void Initialize(vtkSelectionNode* node) override;
49 void Finalize() override;
50
51protected:
54
55 bool ComputeSelectedElements(vtkDataObject* input, vtkSignedCharArray* insidednessArray) override;
56
57private:
58 vtkValueSelector(const vtkValueSelector&) = delete;
59 void operator=(const vtkValueSelector&) = delete;
60
61 class vtkInternals;
62 std::unique_ptr<vtkInternals> Internals;
63};
64
65VTK_ABI_NAMESPACE_END
66#endif
Convert a selection from one type to another.
general representation of visualization data
a simple class to control print indentation
Definition vtkIndent.h:108
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...