17 #ifndef GlobeEngine_Grid_h
18 #define GlobeEngine_Grid_h
20 #include "vmmlib/vector.hpp"
36 vmml::Vector2ui
getSize()
const;
59 void clear()
override;
66 void create(vmml::Vector2ui _pointCounts,
double _stepsize);
101 void clear()
override;
108 void create(vmml::Vector2ui _pointcount, vmml::Vector2d _stepsizes);
128 vmml::Vector2d stepsizes;
vmml::Vector2d getMidpoint() const
Definition: Grid.cpp:16
virtual void clear()
Definition: Grid.cpp:5
CartesianGrid2D()
Definition: Grid.cpp:29
ge::AABB2d bound
Definition: Grid.h:44
RegularGrid2D()
Definition: Grid.h:98
vmml::Vector2ui getSize() const
Definition: Grid.cpp:11
A cartesian grid is a uniform grid having the same distance between all points in all axis directions...
Definition: Grid.h:54
vmml::Vector2d midpoint
Definition: Grid.h:46
virtual vmml::Vector2ui getCellIdxForPoint(vmml::Vector2d _point)=0
A regular grid is a uniform grid with the same distance between all points of an axis.
Definition: Grid.h:95
vmml::Vector2ui sizes
Definition: Grid.h:45
void clear() override
Definition: Grid.cpp:33
const ge::AABB2d & getAABB() const
Definition: Grid.cpp:21
void clear() override
Definition: Grid.cpp:65
~RegularGrid2D()
Definition: Grid.h:99
Grid2D()
Definition: Grid.h:33
~CartesianGrid2D()
Definition: Grid.h:58
Definition: AvalancheTrainingSimulationEngine.h:28
void create(vmml::Vector2ui _pointCounts, double _stepsize)
Set up a cartesian grid with origin 0.0, 0.0.
Definition: Grid.cpp:37
void create(vmml::Vector2ui _pointcount, vmml::Vector2d _stepsizes)
Set up a regular grid with origin 0.0, 0.0.
Definition: Grid.cpp:70
virtual ~Grid2D()
Definition: Grid.h:34
This 2D grid class is an abstraction of properties for uniform and nonuniform grids. The defintions are according to: https://en.wikipedia.org/wiki/Regular_grid.
Definition: Grid.h:30
virtual vmml::Vector2i getCellIdxForBound(vmml::Vector4d _point)=0