VTK  9.1.0
vtkBlockSelector.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkBlockSelector.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 =========================================================================*/
26 #ifndef vtkBlockSelector_h
27 #define vtkBlockSelector_h
28 
29 #include "vtkSelector.h"
30 
31 class VTKFILTERSEXTRACTION_EXPORT vtkBlockSelector : public vtkSelector
32 {
33 public:
34  static vtkBlockSelector* New();
35  vtkTypeMacro(vtkBlockSelector, vtkSelector);
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
38  void Initialize(vtkSelectionNode* node) override;
39 
45  void Execute(vtkDataObject* input, vtkDataObject* output) override;
46 
47 protected:
49  ~vtkBlockSelector() override;
50 
51  bool ComputeSelectedElements(vtkDataObject* input, vtkSignedCharArray* insidednessArray) override;
52  SelectionMode GetAMRBlockSelection(unsigned int level, unsigned int index) override;
53  SelectionMode GetBlockSelection(unsigned int compositeIndex) override;
54 
55 private:
56  vtkBlockSelector(const vtkBlockSelector&) = delete;
57  void operator=(const vtkBlockSelector&) = delete;
58 
59  class vtkInternals;
60  vtkInternals* Internals;
61 };
62 
63 #endif
vtkBlockSelector::GetBlockSelection
SelectionMode GetBlockSelection(unsigned int compositeIndex) override
Returns whether the block is to be processed.
vtkSelectionNode
a node in a vtkSelection the defines the selection criteria.
Definition: vtkSelectionNode.h:341
vtkBlockSelector::Execute
void Execute(vtkDataObject *input, vtkDataObject *output) override
Overridden to handle BLOCK_SELECTORS.
vtkBlockSelector::GetAMRBlockSelection
SelectionMode GetAMRBlockSelection(unsigned int level, unsigned int index) override
Returns whether the AMR block is to be processed.
vtkBlockSelector::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSignedCharArray
dynamic, self-adjusting array of signed char
Definition: vtkSignedCharArray.h:36
vtkSelector.h
vtkSelector
Definition: vtkSelector.h:41
vtkX3D::level
@ level
Definition: vtkX3D.h:401
vtkBlockSelector
selector for blocks
Definition: vtkBlockSelector.h:32
vtkBlockSelector::New
static vtkBlockSelector * New()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkSelector::SelectionMode
SelectionMode
Definition: vtkSelector.h:111
vtkBlockSelector::ComputeSelectedElements
bool ComputeSelectedElements(vtkDataObject *input, vtkSignedCharArray *insidednessArray) override
This method computes whether or not each element in the dataset is inside the selection and populates...
vtkBlockSelector::Initialize
void Initialize(vtkSelectionNode *node) override
Sets the vtkSelectionNode used by this selection operator and initializes the data structures in the ...
vtkBlockSelector::~vtkBlockSelector
~vtkBlockSelector() override
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:169
vtkX3D::index
@ index
Definition: vtkX3D.h:252
vtkBlockSelector::vtkBlockSelector
vtkBlockSelector()