|
| GridRunner (Grid< T > &target_grid, const QRectF &rectangle) |
|
| GridRunner (const Grid< T > &target_grid, const QRectF &rectangle) |
|
| GridRunner (Grid< T > *target_grid, const QRectF &rectangle) |
|
| GridRunner (Grid< T > &target_grid, const QRect &rectangle) |
|
| GridRunner (const Grid< T > &target_grid, const QRect &rectangle) |
|
| GridRunner (Grid< T > *target_grid, const QRect &rectangle) |
|
| GridRunner (Grid< T > *target_grid) |
|
T * | next () |
| to to next element, return NULL if finished More...
|
|
T * | current () const |
| return the current element, or NULL More...
|
|
T * | first () const |
| return the first element More...
|
|
T * | last () const |
| return the last element (not one element behind the last element!) More...
|
|
bool | isValid () const |
| checks if the state of the GridRunner is valid, returns false if out of scope More...
|
|
QPoint | currentIndex () const |
| return the (index) - coordinates of the current position in the grid More...
|
|
QPointF | currentCoord () const |
| return the coordinates of the cell center point of the current position in the grid. More...
|
|
void | reset () |
|
void | setPosition (QPoint new_index) |
| set the internal pointer to the pixel at index 'new_index'. The index is relative to the base grid! More...
|
|
void | neighbors4 (T **rArray) |
| fill array with pointers to neighbors (north, east, west, south) or Null-pointers if out of range. More...
|
|
void | neighbors8 (T **rArray) |
| get pointers to the 8-neighbor-hood north/east/west/south/NE/NW/SE/SW 0-pointers are returned for edge pixels. More...
|
|
template<class T>
class GridRunner< T >
helper class to iterate over a rectangular fraction of a grid
fill array with pointers to neighbors (north, east, west, south) or Null-pointers if out of range.
get pointers the the 4-neighborhood north, east, west, south 0-pointers are returned for edge pixels.
the target array (rArray) is not checked and must be valid!