VTK  9.3.1
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:
81  ~vtkHyperTreeGridThreshold() override;
82 
86  int FillOutputPortInformation(int, vtkInformation*) override;
87 
92 
96  bool RecursivelyProcessTree(
98  bool RecursivelyProcessTreeWithCreateNewMask(vtkHyperTreeGridNonOrientedCursor*);
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 */
int FillOutputPortInformation(int, vtkInformation *) override
Define default input and output port types.
Store vtkAlgorithm input/output information.
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
double UpperThreshold
UpperThreshold scalar value to be accepted.
int vtkIdType
Definition: vtkType.h:315
vtkIdType CurrentId
Keep track of current index in output hyper tree grid.
Objects for traversal a HyperTreeGrid.
a simple class to control print indentation
Definition: vtkIndent.h:28
bool JustCreateNewMask
With or without copy.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkBitArray * InMask
Input material mask.
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:44
double LowerThreshold
LowerThreshold scalar value to be accepted.
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:28
Superclass for algorithms that produce a hyper tree grid as output.
static vtkAlgorithm * New()
vtkBitArray * OutMask
Output material mask constructed by this filter.
vtkDataArray * InScalars
Keep track of selected input scalars.
general representation of visualization data
Definition: vtkDataObject.h:54
Extract cells from a hyper tree grid where selected scalar value is within given range.
virtual int ProcessTrees(vtkHyperTreeGrid *, vtkDataObject *)=0
Main routine to process individual trees in the grid This is pure virtual method to be implemented by...