VTK
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 =========================================================================*/
35 #ifndef vtkHyperTreeGridThreshold_h
36 #define vtkHyperTreeGridThreshold_h
37 
38 #include "vtkFiltersHyperTreeModule.h" // For export macro
40 
41 class vtkBitArray;
42 class vtkHyperTreeCursor;
43 class vtkHyperTreeGrid;
45 
46 class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridThreshold : public vtkHyperTreeGridAlgorithm
47 {
48 public:
51  void PrintSelf( ostream&, vtkIndent ) override;
52 
54 
57  vtkSetMacro(LowerThreshold, double);
58  vtkGetMacro(LowerThreshold, double);
60 
62 
65  vtkSetMacro(UpperThreshold, double);
66  vtkGetMacro(UpperThreshold, double);
68 
72  void ThresholdBetween( double, double );
73 
74 protected:
76  ~vtkHyperTreeGridThreshold() override;
77 
81  int FillOutputPortInformation( int, vtkInformation* ) override;
82 
86  int ProcessTrees( vtkHyperTreeGrid*, vtkDataObject* ) override;
87 
91  bool RecursivelyProcessTree( vtkHyperTreeGridCursor*,
93  vtkBitArray* );
94 
99 
104 
109 
114 
119 
120 private:
122  void operator=(const vtkHyperTreeGridThreshold&) = delete;
123 };
124 
125 
126 #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:345
vtkIdType CurrentId
Keep track of current index in output hyper tree grid.
Objects for depth-first traversal HyperTrees.
Objects for depth-first traversal HyperTreeGrids.
vtkBitArray * MaterialMask
Output material mask constructed by this filter.
a simple class to control print indentation
Definition: vtkIndent.h:33
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:48
double LowerThreshold
LowerThreshold scalar value to be accepted.
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:33
Superclass for algorithms that produce a hyper tree grid as output.
static vtkAlgorithm * New()
vtkDataArray * InScalars
Keep track of selected input scalars.
general representation of visualization data
Definition: vtkDataObject.h:58
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...