VTK  9.0.1
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 =========================================================================*/
22 #ifndef vtkBlockSelector_h
23 #define vtkBlockSelector_h
24 
25 #include "vtkSelector.h"
26 
27 class VTKFILTERSEXTRACTION_EXPORT vtkBlockSelector : public vtkSelector
28 {
29 public:
30  static vtkBlockSelector* New();
31  vtkTypeMacro(vtkBlockSelector, vtkSelector);
32  void PrintSelf(ostream& os, vtkIndent indent) override;
33 
34  void Initialize(vtkSelectionNode* node) 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;
42  SelectionMode GetBlockSelection(unsigned int compositeIndex) override;
43 
44 private:
45  vtkBlockSelector(const vtkBlockSelector&) = delete;
46  void operator=(const vtkBlockSelector&) = delete;
47 
48  class vtkInternals;
49  vtkInternals* Internals;
50 };
51 
52 #endif
vtkSelector::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSelector::GetAMRBlockSelection
virtual SelectionMode GetAMRBlockSelection(unsigned int level, unsigned int index)
Returns whether the AMR block is to be processed.
vtkSelectionNode
A node in a selection tree. Used to store selection results.
Definition: vtkSelectionNode.h:61
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkSelector::ComputeSelectedElements
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...
vtkSignedCharArray
dynamic, self-adjusting array of signed char
Definition: vtkSignedCharArray.h:35
vtkSelector.h
vtkSelector
Definition: vtkSelector.h:38
vtkSelector::GetBlockSelection
virtual SelectionMode GetBlockSelection(unsigned int compositeIndex)
Returns whether the block is to be processed.
vtkX3D::level
@ level
Definition: vtkX3D.h:401
vtkBlockSelector
Selects cells or points contained in a block as defined in the vtkSelectionNode used to initialize th...
Definition: vtkBlockSelector.h:27
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkSelector::SelectionMode
SelectionMode
Definition: vtkSelector.h:108
vtkSelector::Initialize
virtual void Initialize(vtkSelectionNode *node)
Sets the vtkSelectionNode used by this selection operator and initializes the data structures in the ...
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:59
vtkX3D::index
@ index
Definition: vtkX3D.h:252