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 =========================================================================*/
38 #ifndef vtkHyperTreeGridThreshold_h
39 #define vtkHyperTreeGridThreshold_h
40 
41 #include "vtkFiltersHyperTreeModule.h" // For export macro
43 
44 class vtkBitArray;
45 class vtkHyperTreeCursor;
46 class vtkHyperTreeGrid;
48 
49 class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridThreshold : public vtkHyperTreeGridAlgorithm
50 {
51 public:
54  void PrintSelf( ostream&, vtkIndent ) override;
55 
57 
60  vtkSetMacro(LowerThreshold, double);
61  vtkGetMacro(LowerThreshold, double);
63 
65 
68  vtkSetMacro(UpperThreshold, double);
69  vtkGetMacro(UpperThreshold, double);
71 
75  void ThresholdBetween( double, double );
76 
77 protected:
80 
85 
90 
96  vtkBitArray* );
97 
102 
107 
112 
117 
122 
123 private:
125  void operator=(const vtkHyperTreeGridThreshold&) = delete;
126 };
127 
128 
129 #endif /* vtkHyperTreeGridThreshold */
vtkHyperTreeGridCursor
Objects for depth-first traversal HyperTreeGrids.
Definition: vtkHyperTreeGridCursor.h:46
vtkHyperTreeGridThreshold::InScalars
vtkDataArray * InScalars
Keep track of selected input scalars.
Definition: vtkHyperTreeGridThreshold.h:121
vtkHyperTreeGridThreshold
Extract cells from a hyper tree grid where selected scalar value is within given range.
Definition: vtkHyperTreeGridThreshold.h:50
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkHyperTreeGridAlgorithm.h
vtkHyperTreeGridThreshold::MaterialMask
vtkBitArray * MaterialMask
Output material mask constructed by this filter.
Definition: vtkHyperTreeGridThreshold.h:111
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
vtkHyperTreeGridThreshold::PrintSelf
void PrintSelf(ostream &, vtkIndent) override
Methods invoked by print to print information about the object including superclasses.
vtkHyperTreeGridThreshold::CurrentId
vtkIdType CurrentId
Keep track of current index in output hyper tree grid.
Definition: vtkHyperTreeGridThreshold.h:116
vtkHyperTreeCursor
Objects for depth-first traversal HyperTrees.
Definition: vtkHyperTreeCursor.h:43
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkHyperTreeGridThreshold::ThresholdBetween
void ThresholdBetween(double, double)
Convenience method to set both threshold values at once.
vtkHyperTreeGridThreshold::UpperThreshold
double UpperThreshold
UpperThreshold scalar value to be accepted.
Definition: vtkHyperTreeGridThreshold.h:106
vtkHyperTreeGridThreshold::ProcessTrees
int ProcessTrees(vtkHyperTreeGrid *, vtkDataObject *) override
Main routine to extract cells based on thresholded value.
vtkHyperTreeGridThreshold::vtkHyperTreeGridThreshold
vtkHyperTreeGridThreshold()
vtkHyperTreeGridThreshold::FillOutputPortInformation
int FillOutputPortInformation(int, vtkInformation *) override
For this algorithm the output is a vtkHyperTreeGrid instance.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkHyperTreeGridThreshold::LowerThreshold
double LowerThreshold
LowerThreshold scalar value to be accepted.
Definition: vtkHyperTreeGridThreshold.h:101
vtkHyperTreeGridThreshold::New
static vtkHyperTreeGridThreshold * New()
vtkHyperTreeGridThreshold::RecursivelyProcessTree
bool RecursivelyProcessTree(vtkHyperTreeGridCursor *, vtkHyperTreeCursor *, vtkBitArray *)
Recursively descend into tree down to leaves.
vtkHyperTreeGridThreshold::~vtkHyperTreeGridThreshold
~vtkHyperTreeGridThreshold() override
vtkBitArray
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:37
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkHyperTreeGridAlgorithm
Superclass for algorithms that produce a hyper tree grid as output.
Definition: vtkHyperTreeGridAlgorithm.h:47
vtkHyperTreeGrid
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
Definition: vtkHyperTreeGrid.h:71