VTK  9.3.1
vtkBlockSelector.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
14 #ifndef vtkBlockSelector_h
15 #define vtkBlockSelector_h
16 
17 #include "vtkSelector.h"
18 
19 VTK_ABI_NAMESPACE_BEGIN
20 class VTKFILTERSEXTRACTION_EXPORT vtkBlockSelector : public vtkSelector
21 {
22 public:
23  static vtkBlockSelector* New();
24  vtkTypeMacro(vtkBlockSelector, vtkSelector);
25  void PrintSelf(ostream& os, vtkIndent indent) override;
26 
27  void Initialize(vtkSelectionNode* node) override;
28 
34  void Execute(vtkDataObject* input, vtkDataObject* output) override;
35 
36 protected:
38  ~vtkBlockSelector() override;
39 
40  bool ComputeSelectedElements(vtkDataObject* input, vtkSignedCharArray* insidednessArray) override;
41  SelectionMode GetAMRBlockSelection(unsigned int level, unsigned int index) override;
43  unsigned int compositeIndex, bool isDataObjectTree = true) override;
44 
45 private:
46  vtkBlockSelector(const vtkBlockSelector&) = delete;
47  void operator=(const vtkBlockSelector&) = delete;
48 
49  class vtkInternals;
50  vtkInternals* Internals;
51 };
52 
53 VTK_ABI_NAMESPACE_END
54 #endif
a node in a vtkSelection the defines the selection criteria.
virtual void Execute(vtkDataObject *input, vtkDataObject *output)
Given an input and the vtkSelectionNode passed into the Initialize() method, add to the output a vtkS...
virtual SelectionMode GetBlockSelection(unsigned int compositeIndex, bool isDataObjectTree=true)
Returns whether the block is to be processed.
virtual bool ComputeSelectedElements(vtkDataObject *input, vtkSignedCharArray *insidednessArray)=0
This method computes whether or not each element in the dataset is inside the selection and populates...
a simple class to control print indentation
Definition: vtkIndent.h:28
dynamic, self-adjusting array of signed char
selector for blocks
virtual void Initialize(vtkSelectionNode *node)
Sets the vtkSelectionNode used by this selection operator and initializes the data structures in the ...
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
general representation of visualization data
Definition: vtkDataObject.h:54
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual SelectionMode GetAMRBlockSelection(unsigned int level, unsigned int index)
Returns whether the AMR block is to be processed.