![]() |
Maria GDK 5.0.0.737
Documentation of native code in develop branch
|
#include <MGeoIndex.h>
Classes | |
struct | CoreInfo |
struct | IndexedObjectInfo |
Public Types | |
using | idx_t = uint64_t |
Public Member Functions | |
GeoIndex (const GeoIndex &)=delete | |
GeoIndex & | operator= (const GeoIndex &)=delete |
GeoIndex (GeoIndex &&)=delete | |
GeoIndex & | operator= (GeoIndex &&)=delete |
virtual bool | deleteObject (idx_t objId)=0 |
virtual void | setObject (IndexedObjectInfo obj, BasicGeoTypes::GeoPos pos)=0 |
virtual void | setObject (IndexedObjectInfo obj, BasicGeoTypes::GeoRect bounds)=0 |
virtual void | setObject (IndexedObjectInfo obj, const std::vector< BasicGeoTypes::GeoPos > &positions)=0 |
virtual void | getObjects (TileId tileId, std::unordered_set< idx_t > &objectIds) const =0 |
virtual void | getObjects (const BasicGeoTypes::GeoPos &pos, uint8_t tileLevel, std::unordered_set< idx_t > &objectIds) const =0 |
virtual void | getObjects (const BasicGeoTypes::GeoRect &bounds, uint8_t tileLevel, std::unordered_set< idx_t > &objectIds) const =0 |
virtual size_t | getUsedTileCount () const noexcept=0 |
virtual size_t | getObjectCount () const noexcept=0 |
virtual void | clear ()=0 |
virtual std::shared_ptr< TileMapper > | tileMapper () const =0 |
Interface for the GeoIndex.
This construct it used to lookup which objects can be seen in a certain region. An example use case could be to retrieve all icons that might be in view for a given viewport or geographic region.
|
pure virtual |
Deletes an object from the index.
objId | ID of the object to delete. |
Implemented in Maria::TiledGeoIndex, and Maria::TiledSubIndex.