21#ifndef vtkUniformHyperTreeGrid_h
22#define vtkUniformHyperTreeGrid_h
29#include "vtkCommonDataModelModule.h"
32VTK_ABI_NAMESPACE_BEGIN
60 vtkSetVector3Macro(Origin,
double);
61 vtkGetVector3Macro(Origin,
double);
70 vtkGetVector3Macro(GridScale,
double);
187 if (value < (this->Origin[dim] - tol) ||
188 value > (this->Origin[dim] + tol + this->GridScale[dim] * maxIdx))
190 return std::numeric_limits<unsigned int>::max();
193 long idx = std::round((value - this->Origin[dim]) / this->GridScale[dim]);
194 return std::min(std::max(idx, 0l),
static_cast<long>(maxIdx));
199 return this->FindDichotomic(value, 0, tolerance);
203 return this->FindDichotomic(value, 1, tolerance);
207 return this->FindDichotomic(value, 2, tolerance);
213 mutable std::shared_ptr<vtkHyperTreeGridScales>
Scales;
abstract superclass for arrays of numeric data
general representation of visualization data
dynamic, self-adjusting array of double
A specifalized type of vtkHyperTreeGrid for the case when root cells have uniform sizes in each direc...
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
const unsigned int * GetDimensions() const
Get dimensions of this rectilinear grid dataset.
A data object structured as a tree.
a simple class to control print indentation
#define VTK_UNIFORM_HYPER_TREE_GRID