33#ifndef vtkUniformHyperTreeGrid_h
34#define vtkUniformHyperTreeGrid_h
41#include "vtkCommonDataModelModule.h"
71 vtkSetVector3Macro(Origin,
double);
72 vtkGetVector3Macro(Origin,
double);
81 vtkGetVector3Macro(GridScale,
double);
147 void SetFixedCoordinates(
unsigned int axis,
double value) override;
153 void GetLevelZeroOriginAndSizeFromIndex(
vtkIdType,
double*,
double*) override;
158 void GetLevelZeroOriginFromIndex(
vtkIdType,
double*) override;
173 unsigned long GetActualMemorySizeBytes() override;
206 bool ComputedXCoordinates;
207 bool ComputedYCoordinates;
208 bool ComputedZCoordinates;
211 unsigned int FindDichotomicX(
double value)
const override
213 if (value < this->Origin[0] ||
214 value > this->Origin[0] + this->GridScale[0] * (this->
GetDimensions()[0] - 1))
218 return std::round((value - this->Origin[0]) / this->GridScale[0]);
222 if (value < this->Origin[1] ||
223 value > this->Origin[1] + this->GridScale[1] * (this->
GetDimensions()[1] - 1))
227 return std::round((value - this->Origin[1]) / this->GridScale[1]);
231 if (value < this->Origin[2] ||
232 value > this->Origin[2] + this->GridScale[2] * (this->
GetDimensions()[2] - 1))
236 return std::round((value - this->Origin[2]) / this->GridScale[2]);
242 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(...)