Maria GDK 5.0.0.737
Documentation of native code in develop branch
Loading...
Searching...
No Matches
Maria::GeoIndex Class Referenceabstract

#include <MGeoIndex.h>

Inheritance diagram for Maria::GeoIndex:
Maria::TiledGeoIndex Maria::TiledSubIndex

Classes

struct  CoreInfo
 
struct  IndexedObjectInfo
 

Public Types

using idx_t = uint64_t
 

Public Member Functions

 GeoIndex (const GeoIndex &)=delete
 
GeoIndexoperator= (const GeoIndex &)=delete
 
 GeoIndex (GeoIndex &&)=delete
 
GeoIndexoperator= (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< TileMappertileMapper () const =0
 

Detailed Description

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.

Member Function Documentation

◆ deleteObject()

virtual bool Maria::GeoIndex::deleteObject ( idx_t  objId)
pure virtual

Deletes an object from the index.

Parameters
objIdID of the object to delete.
Returns
true on success.

Implemented in Maria::TiledGeoIndex, and Maria::TiledSubIndex.


The documentation for this class was generated from the following file: