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
vtkSelectionNode
A node in a selection tree.
Definition: vtkSelectionNode.h:68
vtkValueSelector::~vtkValueSelector
~vtkValueSelector() override
vtkValueSelector::ComputeSelectedElementsForBlock
bool ComputeSelectedElementsForBlock(vtkDataObject *input, vtkSignedCharArray *insidednessArray, unsigned int compositeIndex, unsigned int amrLevel, unsigned int amrIndex) override
This method computes whether or not each element in the dataset is inside the selection and populates...
vtkValueSelector
selects elements matching chosen values.
Definition: vtkValueSelector.h:48
vtkValueSelector::Finalize
void Finalize() override
Does any cleanup of objects created in Initialize.
vtkSignedCharArray
dynamic, self-adjusting array of signed char
Definition: vtkSignedCharArray.h:39
vtkSelector.h
vtkSelector
Definition: vtkSelector.h:36
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkValueSelector::New
static vtkValueSelector * New()
vtkX3D::string
@ string
Definition: vtkX3D.h:490
vtkValueSelector::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkValueSelector::Initialize
void Initialize(vtkSelectionNode *node, const std::string &insidednessArrayName) override
Sets the vtkSelectionNode used by this selection operator and initializes the data structures in the ...
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkValueSelector::vtkValueSelector
vtkValueSelector()