18#ifndef vtkHyperTreeGridCellSizeStrategy_h
19#define vtkHyperTreeGridCellSizeStrategy_h
21#include "vtkFiltersHyperTreeModule.h"
26#include <unordered_map>
28VTK_ABI_NAMESPACE_BEGIN
33class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridCellSizeStrategy
37 static vtkHyperTreeGridCellSizeStrategy*
New();
64 vtkHyperTreeGridCellSizeStrategy();
65 ~vtkHyperTreeGridCellSizeStrategy()
override;
72 bool InsertSize(
double cellSize,
vtkIdType currentIndex);
80 bool UseIndexedVolume =
true;
81 std::unordered_map<double, unsigned char> VolumeLookup;
dynamic, self-adjusting array of double
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkHyperTreeGridCellSizeStrategy * New()
vtkDataArray * GetAndFinalizeArray() override
If UseIndexedVolume is true, build and return the output as an implicit indexed array.
void Initialize(vtkHyperTreeGrid *inputHTG) override
Init internal variables from inputHTG.
void Compute(vtkHyperTreeGridNonOrientedGeometryCursor *cursor) override
Record the depth of the cell pointed by the cursor in an internal structure.
vtkHyperTreeGridGenerateFieldStrategy()=default
virtual void Compute(vtkHyperTreeGridNonOrientedGeometryCursor *)
Reimplement to compute the data for the current cell.
virtual void Initialize(vtkHyperTreeGrid *inputHTG)
Reimplement to initialize internal structures based on the given input HTG.
Objects for traversal a HyperTreeGrid.
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
a simple class to control print indentation
Allocate and hold a VTK object.
dynamic, self-adjusting array of unsigned char