30#ifndef vtkUniformHyperTreeGrid_h
31#define vtkUniformHyperTreeGrid_h
39#include "vtkCommonDataModelModule.h"
69 vtkSetVector3Macro(Origin,
double);
70 vtkGetVector3Macro(Origin,
double);
79 vtkGetVector3Macro(GridScale,
double);
145 void SetFixedCoordinates(
unsigned int axis,
double value) override;
151 void GetLevelZeroOriginAndSizeFromIndex(
vtkIdType,
double*,
double*) override;
156 void GetLevelZeroOriginFromIndex(
vtkIdType,
double*) override;
171 unsigned long GetActualMemorySizeBytes() override;
204 bool ComputedXCoordinates;
205 bool ComputedYCoordinates;
206 bool ComputedZCoordinates;
209 unsigned int FindDichotomicX(
double value)
const override
211 if (value < this->Origin[0] ||
212 value > this->Origin[0] + this->GridScale[0] * (this->
GetDimensions()[0] - 1))
216 return std::round((value - this->Origin[0]) / this->GridScale[0]);
220 if (value < this->Origin[1] ||
221 value > this->Origin[1] + this->GridScale[1] * (this->
GetDimensions()[1] - 1))
225 return std::round((value - this->Origin[1]) / this->GridScale[1]);
229 if (value < this->Origin[2] ||
230 value > this->Origin[2] + this->GridScale[2] * (this->
GetDimensions()[2] - 1))
234 return std::round((value - this->Origin[2]) / this->GridScale[2]);
240 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(...)