#include <grid.hpp>
Collaboration diagram for Arak::Grid< ItemType >::TriangleCellIteratorBase< GridType, CellType >:
Definition at line 651 of file grid.hpp.
Public Member Functions | |
TriangleCellIteratorBase (GridType &g, Geometry::Triangle t) | |
Constructor for an iterator over all cells whose closures intersect a given triangle. | |
TriangleCellIteratorBase () | |
Constructor for an end iterator. | |
bool | operator== (const TriangleCellIteratorBase< GridType, CellType > &other) const |
Comparison operators. | |
bool | operator!= (const TriangleCellIteratorBase< GridType, CellType > &other) const |
TriangleCellIteratorBase< GridType, CellType > & | operator++ (int) |
Increment operators. | |
TriangleCellIteratorBase< 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 triangle. | |
int | imax |
The maximum i coordinate of all cells intersecting the triangle. | |
std::vector< int > | jmins |
Stores for each column between imin and imax (inclusive) the minimum j coordinate of all cells intersecting the triangle. | |
std::vector< int > | jmaxs |
Stores for each column between imin and imax (inclusive) the maximum j coordinate of all cells intersecting the triangle. |
|
Constructor for an iterator over all cells whose closures intersect a given triangle.
Definition at line 698 of file grid.hpp. References Arak::Grid< ItemType >::Cell::col(), Arak::Grid< ItemType >::ConstLineCellIterator, Arak::Grid< ItemType >::TriangleCellIteratorBase< GridType, CellType >::imin, Arak::Grid< ItemType >::TriangleCellIteratorBase< GridType, CellType >::jmaxs, Arak::Grid< ItemType >::TriangleCellIteratorBase< GridType, CellType >::jmins, Arak::Geometry::Rectangle, Arak::Grid< ItemType >::Cell::row(), and Arak::Geometry::Triangle. |
|
Constructor for an end iterator.
|
|
|
|
|
|
|
Increment operators.
Definition at line 758 of file grid.hpp. References Arak::Grid< ItemType >::TriangleCellIterator. |
|
Accessors.
|
|
Comparison operators.
Definition at line 750 of file grid.hpp. References Arak::Grid< ItemType >::TriangleCellIteratorBase< GridType, CellType >::curCell. |
|
The current cell of the iterator.
Definition at line 658 of file grid.hpp. Referenced by Arak::Grid< ItemType >::TriangleCellIteratorBase< GridType, CellType >::operator==(). |
|
The grid.
|
|
The maximum i coordinate of all cells intersecting the triangle.
|
|
The minimum i coordinate of all cells intersecting the triangle.
Definition at line 668 of file grid.hpp. Referenced by Arak::Grid< ItemType >::TriangleCellIteratorBase< GridType, CellType >::operator++(), and Arak::Grid< ItemType >::TriangleCellIteratorBase< GridType, CellType >::TriangleCellIteratorBase(). |
|
Stores for each column between imin and imax (inclusive) the maximum j coordinate of all cells intersecting the triangle.
Definition at line 687 of file grid.hpp. Referenced by Arak::Grid< ItemType >::TriangleCellIteratorBase< GridType, CellType >::operator++(), and Arak::Grid< ItemType >::TriangleCellIteratorBase< GridType, CellType >::TriangleCellIteratorBase(). |
|
Stores for each column between imin and imax (inclusive) the minimum j coordinate of all cells intersecting the triangle.
Definition at line 680 of file grid.hpp. Referenced by Arak::Grid< ItemType >::TriangleCellIteratorBase< GridType, CellType >::operator++(), and Arak::Grid< ItemType >::TriangleCellIteratorBase< GridType, CellType >::TriangleCellIteratorBase(). |