|
libosmscout 1.1.1
|
#include <libosmscout/include/osmscout/util/Geometry.h>
Public Types | |
| enum class | Direction { HORIZONTAL , VERTICAL } |
Public Member Functions | |
| GeoBoxPartitioner (const GeoBox &box, Direction direction, size_t parts) | |
| void | Advance () |
| 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 |