#include <grid.hpp>
Collaboration diagram for Arak::Grid< ItemType >::ConvexPolygonCellIteratorBase< GridType, CellType >:

Definition at line 811 of file grid.hpp.
Public Member Functions | |
| ConvexPolygonCellIteratorBase (GridType &g, const Geometry::Polygon &p) | |
| Constructor for an iterator over all cells whose closures intersect a given convex polygon. | |
| ConvexPolygonCellIteratorBase () | |
| Constructor for an end iterator. | |
| bool | operator== (const ConvexPolygonCellIteratorBase< GridType, CellType > &other) const |
| Comparison operators. | |
| bool | operator!= (const ConvexPolygonCellIteratorBase< GridType, CellType > &other) const |
| ConvexPolygonCellIteratorBase< GridType, CellType > & | operator++ (int) |
| Increment operators. | |
| ConvexPolygonCellIteratorBase< GridType, CellType > & | operator++ () |
| CellType * | operator-> () const |
| Accessors. | |
| CellType & | operator * () const |
Protected Attributes | |
| CellType * | curCell |
| The current cell of the iterator. | |
| GridType * | grid |
| The grid. | |
| int | imin |
| The minimum i coordinate of all cells intersecting the polygon. | |
| int | imax |
| The maximum i coordinate of all cells intersecting the polygon. | |
| std::vector< int > | jmins |
| Stores for each column between imin and imax (inclusive) the minimum j coordinate of all cells intersecting the polygon. | |
| std::vector< int > | jmaxs |
| Stores for each column between imin and imax (inclusive) the maximum j coordinate of all cells intersecting the polygon. | |
|
||||||||||||||||||||
|
Constructor for an iterator over all cells whose closures intersect a given convex polygon.
Definition at line 860 of file grid.hpp. References Arak::Grid< ItemType >::Cell::col(), Arak::Grid< ItemType >::ConstLineCellIterator, Arak::Geometry::Polygon, Arak::Geometry::Rectangle, and Arak::Grid< ItemType >::Cell::row(). |
|
|||||||||||||
|
Constructor for an end iterator.
|
|
|||||||||||||
|
|
|
||||||||||||||
|
|
|
|||||||||||||
|
|
|
||||||||||||||
|
Increment operators.
Definition at line 924 of file grid.hpp. References Arak::Grid< ItemType >::ConvexPolygonCellIterator. |
|
|||||||||||||
|
Accessors.
|
|
||||||||||||||
|
Comparison operators.
Definition at line 916 of file grid.hpp. References Arak::Grid< ItemType >::ConvexPolygonCellIteratorBase< GridType, CellType >::curCell. |
|
|||||||||
|
The current cell of the iterator.
Definition at line 818 of file grid.hpp. Referenced by Arak::Grid< ItemType >::ConvexPolygonCellIteratorBase< GridType, CellType >::operator==(). |
|
|||||||||
|
The grid.
|
|
|||||||||
|
The maximum i coordinate of all cells intersecting the polygon.
|
|
|||||||||
|
The minimum i coordinate of all cells intersecting the polygon.
|
|
|||||||||
|
Stores for each column between imin and imax (inclusive) the maximum j coordinate of all cells intersecting the polygon.
|
|
|||||||||
|
Stores for each column between imin and imax (inclusive) the minimum j coordinate of all cells intersecting the polygon.
|
1.3.6