30#ifndef vtkUniformHyperTreeGrid_h
31#define vtkUniformHyperTreeGrid_h
38#include "vtkCommonDataModelModule.h"
68 vtkSetVector3Macro(Origin,
double);
69 vtkGetVector3Macro(Origin,
double);
78 vtkGetVector3Macro(GridScale,
double);
144 void SetFixedCoordinates(
unsigned int axis,
double value) override;
150 void GetLevelZeroOriginAndSizeFromIndex(
vtkIdType,
double*,
double*) override;
155 void GetLevelZeroOriginFromIndex(
vtkIdType,
double*) override;
170 unsigned long GetActualMemorySizeBytes() override;
203 bool ComputedXCoordinates;
204 bool ComputedYCoordinates;
205 bool ComputedZCoordinates;
208 unsigned int FindDichotomicX(
double value)
const override
210 if (value < this->Origin[0] ||
211 value > this->Origin[0] + this->GridScale[0] * (this->
GetDimensions()[0] - 1))
215 return std::round((value - this->Origin[0]) / this->GridScale[0]);
219 if (value < this->Origin[1] ||
220 value > this->Origin[1] + this->GridScale[1] * (this->
GetDimensions()[1] - 1))
224 return std::round((value - this->Origin[1]) / this->GridScale[1]);
228 if (value < this->Origin[2] ||
229 value > this->Origin[2] + this->GridScale[2] * (this->
GetDimensions()[2] - 1))
233 return std::round((value - this->Origin[2]) / this->GridScale[2]);
239 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
#define VTK_SIZEHINT(...)