VTK  9.3.0
vtkHyperTreeGridThreshold.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
31 #ifndef vtkHyperTreeGridThreshold_h
32 #define vtkHyperTreeGridThreshold_h
33 
34 #include "vtkFiltersHyperTreeModule.h" // For export macro
36 
37 VTK_ABI_NAMESPACE_BEGIN
38 class vtkBitArray;
39 class vtkHyperTreeGrid;
40 
42 
43 class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridThreshold : public vtkHyperTreeGridAlgorithm
44 {
45 public:
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
51 
54  vtkSetMacro(JustCreateNewMask, bool);
55  vtkGetMacro(JustCreateNewMask, bool);
57 
59 
62  vtkSetMacro(LowerThreshold, double);
63  vtkGetMacro(LowerThreshold, double);
65 
67 
70  vtkSetMacro(UpperThreshold, double);
71  vtkGetMacro(UpperThreshold, double);
73 
77  void ThresholdBetween(double, double);
78 
79 protected:
82 
87 
92 
99 
104 
109 
114 
119 
124 
129 
134 
135 private:
137  void operator=(const vtkHyperTreeGridThreshold&) = delete;
138 };
139 
140 VTK_ABI_NAMESPACE_END
141 #endif /* vtkHyperTreeGridThreshold */
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:29
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:45
general representation of visualization data
Definition: vtkDataObject.h:55
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:29
Store vtkAlgorithm input/output information.
int vtkIdType
Definition: vtkType.h:315