|
libosmscout 0.1
|
Helper class to divide a given GeoBox in multiple equally sized parts. More...
#include <Geometry.h>
Public Types | |
| enum class | Direction { HORIZONTAL , VERTICAL } |
Public Member Functions | |
| void | Advance () |
| GeoBoxPartitioner (const GeoBox &box, Direction direction, size_t parts) | |
| GeoBox | GetCurrentGeoBox () const |
| size_t | GetCurrentIndex () const |
Helper class to divide a given GeoBox in multiple equally sized parts.
The partitioning can ether be done horizontally or vertically.
TODO: An alternative design is possible where all the magic is placed inside iterators and there is a strategy (the iterator has two different (global instances) stateless implementations) for either iterating horizontally or vertically.
|
strong |
|
inline |
|
inline |
|
inline |
|
inline |