VTK  9.2.5
vtkHyperTreeGridThreshold.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkHyperTreeGridThreshold.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 =========================================================================*/
43 #ifndef vtkHyperTreeGridThreshold_h
44 #define vtkHyperTreeGridThreshold_h
45 
46 #include "vtkFiltersHyperTreeModule.h" // For export macro
48 
49 class vtkBitArray;
50 class vtkHyperTreeGrid;
51 
53 
54 class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridThreshold : public vtkHyperTreeGridAlgorithm
55 {
56 public:
59  void PrintSelf(ostream& os, vtkIndent indent) override;
60 
62 
65  vtkSetMacro(JustCreateNewMask, bool);
66  vtkGetMacro(JustCreateNewMask, bool);
68 
70 
73  vtkSetMacro(LowerThreshold, double);
74  vtkGetMacro(LowerThreshold, double);
76 
78 
81  vtkSetMacro(UpperThreshold, double);
82  vtkGetMacro(UpperThreshold, double);
84 
88  void ThresholdBetween(double, double);
89 
90 protected:
93 
98 
103 
110 
115 
120 
125 
130 
135 
140 
145 
146 private:
148  void operator=(const vtkHyperTreeGridThreshold&) = delete;
149 };
150 
151 #endif /* vtkHyperTreeGridThreshold */
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:37
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:165
general representation of visualization data
Superclass for algorithms that produce a hyper tree grid as output.
Objects for traversal a HyperTreeGrid.
Extract cells from a hyper tree grid where selected scalar value is within given range.
vtkIdType CurrentId
Keep track of current index in output hyper tree grid.
bool RecursivelyProcessTree(vtkHyperTreeGridNonOrientedCursor *, vtkHyperTreeGridNonOrientedCursor *)
Recursively descend into tree down to leaves.
double LowerThreshold
LowerThreshold scalar value to be accepted.
vtkBitArray * InMask
Input material mask.
~vtkHyperTreeGridThreshold() override
int FillOutputPortInformation(int, vtkInformation *) override
For this algorithm the output is a vtkHyperTreeGrid instance.
bool JustCreateNewMask
With or without copy.
vtkBitArray * OutMask
Output material mask constructed by this filter.
bool RecursivelyProcessTreeWithCreateNewMask(vtkHyperTreeGridNonOrientedCursor *)
double UpperThreshold
UpperThreshold scalar value to be accepted.
vtkDataArray * InScalars
Keep track of selected input scalars.
void ThresholdBetween(double, double)
Convenience method to set both threshold values at once.
static vtkHyperTreeGridThreshold * New()
int ProcessTrees(vtkHyperTreeGrid *, vtkDataObject *) override
Main routine to extract cells based on thresholded value.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
a simple class to control print indentation
Definition: vtkIndent.h:119
Store vtkAlgorithm input/output information.
int vtkIdType
Definition: vtkType.h:332