30#ifndef vtkHyperTreeGridThreshold_h
31#define vtkHyperTreeGridThreshold_h
34#include "vtkFiltersHyperTreeModule.h"
39VTK_ABI_NAMESPACE_BEGIN
60 virtual
void SetJustCreateNewMask(
bool) {}
62 virtual
bool GetJustCreateNewMask() {
return (this->GetMemoryStrategy() == MaskInput); }
69 vtkSetMacro(LowerThreshold,
double);
70 vtkGetMacro(LowerThreshold,
double);
77 vtkSetMacro(UpperThreshold,
double);
78 vtkGetMacro(UpperThreshold,
double);
98 CopyStructureAndIndexArrays = 1,
106 vtkGetMacro(MemoryStrategy,
int);
107 vtkSetClampMacro(MemoryStrategy,
int, MaskInput, DeepThreshold);
173 int MemoryStrategy = MaskInput;
176 std::unique_ptr<Internals> Internal;
dynamic, self-adjusting array of bits
abstract superclass for arrays of numeric data
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.
static vtkHyperTreeGridThreshold * New()
double LowerThreshold
LowerThreshold scalar value to be accepted.
vtkBitArray * InMask
Input material mask.
MemoryStrategyChoice
Enum for defining the strategy to take in allocating the memory used by the output.
~vtkHyperTreeGridThreshold() override
int FillOutputPortInformation(int, vtkInformation *) override
For this algorithm the output is a vtkHyperTreeGrid instance.
bool JustCreateNewMask
With or without copy (deprecated in favor of MemoryStrategy)
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.
vtkHyperTreeGridThreshold()
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
#define VTK_DEPRECATED_IN_9_3_0(reason)