VTK  9.3.20240418
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 
35 VTK_ABI_NAMESPACE_BEGIN
37 
38 class VTKFILTERSEXTRACTION_EXPORT vtkValueSelector : public vtkSelector
39 {
40 private:
41  friend class vtkConvertSelection;
42 
43 public:
44  static vtkValueSelector* New();
45  vtkTypeMacro(vtkValueSelector, vtkSelector);
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
48  void Initialize(vtkSelectionNode* node) override;
49  void Finalize() override;
50 
51 protected:
53  ~vtkValueSelector() override;
54 
55  bool ComputeSelectedElements(vtkDataObject* input, vtkSignedCharArray* insidednessArray) override;
56 
57 private:
58  vtkValueSelector(const vtkValueSelector&) = delete;
59  void operator=(const vtkValueSelector&) = delete;
60 
61  class vtkInternals;
62  std::unique_ptr<vtkInternals> Internals;
63 };
64 
65 VTK_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.
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...