GlobeEngine
ge::Grid2D Class Referenceabstract

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. More...

#include <Grid.h>

Inheritance diagram for ge::Grid2D:
ge::CartesianGrid2D ge::RegularGrid2D

Public Member Functions

 Grid2D ()
 
virtual ~Grid2D ()
 
virtual void clear ()
 
vmml::Vector2ui getSize () const
 
vmml::Vector2d getMidpoint () const
 
const ge::AABB2dgetAABB () const
 
virtual vmml::Vector2ui getCellIdxForPoint (vmml::Vector2d _point)=0
 
virtual vmml::Vector2i getCellIdxForBound (vmml::Vector4d _point)=0
 

Protected Attributes

ge::AABB2d bound
 
vmml::Vector2ui sizes
 
vmml::Vector2d midpoint
 

Detailed Description

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.

Constructor & Destructor Documentation

ge::Grid2D::Grid2D ( )
inline
virtual ge::Grid2D::~Grid2D ( )
inlinevirtual

Member Function Documentation

void ge::Grid2D::clear ( )
virtual

Reimplemented in ge::RegularGrid2D, and ge::CartesianGrid2D.

const ge::AABB2d & ge::Grid2D::getAABB ( ) const
virtual vmml::Vector2i ge::Grid2D::getCellIdxForBound ( vmml::Vector4d  _point)
pure virtual
virtual vmml::Vector2ui ge::Grid2D::getCellIdxForPoint ( vmml::Vector2d  _point)
pure virtual
vmml::Vector2d ge::Grid2D::getMidpoint ( ) const
vmml::Vector2ui ge::Grid2D::getSize ( ) const

Member Data Documentation

ge::AABB2d ge::Grid2D::bound
protected
vmml::Vector2d ge::Grid2D::midpoint
protected

Midpoint of the grid

vmml::Vector2ui ge::Grid2D::sizes
protected

Amount of points in every direction


The documentation for this class was generated from the following files: