KrisLibrary  1.0.0
Public Member Functions | Public Attributes | List of all members
Meshing::AreaGridIterator< T > Struct Template Reference

Iterator over a 2D area grid. More...

#include <AreaGrid.h>

Public Member Functions

 AreaGridIterator (const Array2D< T > &cells, const AABB2D &bb)
 
void setRange (const IntPair &bmin, const IntPair &bmax)
 
const T & operator* () const
 
T & operator* ()
 
const IntPairgetIndex () const
 
void operator++ ()
 
bool isDone () const
 
void getCell (AABB2D &cell) const
 
void getCellCenter (Vector2 &c) const
 

Public Attributes

const Array2D< T > & cells
 
const AABB2Dbb
 
Array2D< T >::iterator it
 
IntPair lo
 
IntPair hi
 
IntPair index
 
Vector2 cellCorner
 
Vector2 cellSize
 
Vector2 bbMin
 

Detailed Description

template<class T>
struct Meshing::AreaGridIterator< T >

Iterator over a 2D area grid.

Allows quick iteration and access to the 2D cell. Use the ++ operator until isDone() return true.


The documentation for this struct was generated from the following file: