30 #ifndef vtkUniformHyperTreeGrid_h
31 #define vtkUniformHyperTreeGrid_h
37 #include "vtkCommonDataModelModule.h"
67 vtkSetVector3Macro(Origin,
double);
68 vtkGetVector3Macro(Origin,
double);
77 vtkGetVector3Macro(GridScale,
double);
143 void SetFixedCoordinates(
unsigned int axis,
double value) override;
149 void GetLevelZeroOriginAndSizeFromIndex(
vtkIdType,
double*,
double*) override;
154 void GetLevelZeroOriginFromIndex(
vtkIdType,
double*) override;
169 unsigned long GetActualMemorySizeBytes() override;
202 bool ComputedXCoordinates;
203 bool ComputedYCoordinates;
204 bool ComputedZCoordinates;
207 unsigned int FindDichotomicX(
double value)
const override
209 if (value < this->Origin[0] ||
214 return round((
value - this->Origin[0]) / this->GridScale[0]);
218 if (value < this->Origin[1] ||
223 return round((
value - this->Origin[1]) / this->GridScale[1]);
227 if (value < this->Origin[2] ||
232 return round((
value - this->Origin[2]) / this->GridScale[2]);
238 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(...)