30 #ifndef vtkUniformHyperTreeGrid_h 31 #define vtkUniformHyperTreeGrid_h 37 #include "vtkCommonDataModelModule.h" 67 vtkSetVector3Macro(Origin,
double);
68 vtkGetVector3Macro(Origin,
double);
75 void SetGridScale(
double,
double,
double);
76 void SetGridScale(
double*);
77 vtkGetVector3Macro(GridScale,
double);
83 void SetGridScale(
double);
209 if (value < this->Origin[0] ||
210 value > this->Origin[0] + this->GridScale[0] * (this->
GetDimensions()[0] - 1))
214 return round((value - this->Origin[0]) / this->GridScale[0]);
218 if (value < this->Origin[1] ||
219 value > this->Origin[1] + this->GridScale[1] * (this->
GetDimensions()[1] - 1))
223 return round((value - this->Origin[1]) / this->GridScale[1]);
227 if (value < this->Origin[2] ||
228 value > this->Origin[2] + this->GridScale[2] * (this->
GetDimensions()[2] - 1))
232 return round((value - this->Origin[2]) / this->GridScale[2]);
238 mutable std::shared_ptr<vtkHyperTreeGridScales>
Scales;
virtual vtkDataArray * GetXCoordinates()
Set/Get the grid coordinates in the x-direction.
virtual unsigned long GetActualMemorySizeBytes()
Return the actual size of the data in kibibytes (1024 bytes).
void Initialize() override
Restore data object to initial state.
virtual void SetZCoordinates(vtkDataArray *)
Set/Get the grid coordinates in the z-direction.
virtual double * GetBounds()
Return a pointer to the geometry bounding box in the form (xmin,xmax, ymin,ymax, zmin,zmax).
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
virtual void CopyCoordinates(const vtkHyperTreeGrid *output)
JB Augented services on Coordinates.
virtual void SetXCoordinates(vtkDataArray *)
Set/Get the grid coordinates in the x-direction.
virtual void GetLevelZeroOriginAndSizeFromIndex(vtkIdType, double *, double *)
Convert the global index of a root to its Spacial coordinates origin and size.
virtual vtkDataArray * GetYCoordinates()
Set/Get the grid coordinates in the y-direction.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
dynamic, self-adjusting array of double
virtual void SetYCoordinates(vtkDataArray *)
Set/Get the grid coordinates in the y-direction.
virtual void SetFixedCoordinates(unsigned int axis, double value)
JB Augented services on Coordinates.
static vtkHyperTreeGrid * New()
a simple class to control print indentation
void ShallowCopy(vtkDataObject *) override
Create shallow copy of hyper tree grid.
#define VTK_UNIFORM_HYPER_TREE_GRID
abstract superclass for arrays of numeric data
void DeepCopy(vtkDataObject *) override
Create deep copy of hyper tree grid.
#define VTK_SIZEHINT(...)
virtual void CopyStructure(vtkDataObject *)
Copy the internal geometric and topological structure of a vtkHyperTreeGrid object.
virtual vtkDataArray * GetZCoordinates()
Set/Get the grid coordinates in the z-direction.
A data object structured as a tree.
virtual vtkHyperTree * GetTree(vtkIdType, bool create=false)
Return tree located at given index of hyper tree grid NB: This will construct a new HyperTree if grid...
A specifalized type of vtkHyperTreeGrid for the case when root cells have uniform sizes in each direc...
virtual void GetLevelZeroOriginFromIndex(vtkIdType, double *)
JB Convert the global index of a root to its Spacial coordinates origin and size. ...
general representation of visualization data
const unsigned int * GetDimensions() const
Get dimensions of this rectilinear grid dataset.