VTK  9.3.20240423
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
19VTK_ABI_NAMESPACE_BEGIN
20class VTKFILTERSEXTRACTION_EXPORT vtkBlockSelector : public vtkSelector
21{
22public:
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
36protected:
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
45private:
46 vtkBlockSelector(const vtkBlockSelector&) = delete;
47 void operator=(const vtkBlockSelector&) = delete;
48
49 class vtkInternals;
50 vtkInternals* Internals;
51};
52
53VTK_ABI_NAMESPACE_END
54#endif
selector for blocks
SelectionMode GetBlockSelection(unsigned int compositeIndex, bool isDataObjectTree=true) override
Returns whether the block is to be processed.
~vtkBlockSelector() 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...
void Initialize(vtkSelectionNode *node) override
Sets the vtkSelectionNode used by this selection operator and initializes the data structures in the ...
void Execute(vtkDataObject *input, vtkDataObject *output) override
Overridden to handle BLOCK_SELECTORS.
static vtkBlockSelector * New()
SelectionMode GetAMRBlockSelection(unsigned int level, unsigned int index) override
Returns whether the AMR block is to be processed.
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