![]() |
Maria GDK 5.0.0.738
Documentation of native code in develop branch
|
#include <MDrawObjectStore.h>
Public Member Functions | |
DrawObjectStore (const std::string &storeId, std::shared_ptr< GeneratorDictionary > genDir) | |
const std::string & | getStoreId () const |
std::shared_ptr< DrawObjectData > | updateDrawObjectData (int32_t index, const MariaProtobuf::DrawObjectDataProto &pbDrawObjectData) |
std::shared_ptr< DrawObjectData > | updateDrawObjectData (const MariaProtobuf::DrawObjectDataProto &pbDrawObjectData) |
void | setFilterXml (const std::string &filterXml, const std::vector< std::string > &listIds) |
int | getFilterGeneration () const |
State generation is used for non data state changes, for instance due to filter processing Used to determine if redraw/regeneration is required. | |
void | setContainers (const std::vector< int > containerIds) |
void | setGeoObjectStoreProvider (std::shared_ptr< IGeoObjectStoreProvider > geoStoreProvider) |
void | updateDrawObjectData (int32_t index, const std::shared_ptr< DrawObjectData > &data) |
void | updateDrawObjectData (const std::shared_ptr< DrawObjectData > &data) |
void | deleteDrawObjectData (const Maria::ItemId &itemId) |
void | addToTransientList (const Maria::ItemId &itemId) |
void | removeFromTransientList (const Maria::ItemId &itemId) |
const std::unordered_set< Maria::ItemId, ItemId::Hash > & | getTransientItems () const |
std::vector< int > | findPointsIdsInView (const std::shared_ptr< RasterProjector > &vp, int bufferPixels=0) |
std::vector< int > | findAreasInView (const std::shared_ptr< RasterProjector > &vp, int bufferPixels=0) |
std::vector< int > | findAllObjectsInView (const std::shared_ptr< RasterProjector > &vp, int bufferPixels=0) |
void | setPendingLoad (const std::unordered_set< int > &items, bool reset=false) |
std::shared_ptr< DrawObjectData > | getDrawObjectData (const Maria::ItemId &id) const |
std::shared_ptr< DrawObjectData > | getDrawObjectData (int localId) const |
bool | drawObjectDataExists (const Maria::ItemId &id) const |
std::vector< ItemId > | getUpdatedItems (long generation) const |
std::vector< ItemId > | getDeletedItems (long generation) const |
long | getLastGeneration () const |
long | getIndexGeneration () const |
std::vector< ItemId > | getObjectIds () const |
void | syncGeoIndex () |
GeoIndex64 & | index () |
DrawObjectStore - Short description
std::vector< ItemId > Maria::DrawObjectStore::getDeletedItems | ( | long | generation | ) | const |
Get IDs of all items that have been deleted since the given generation counter.
|
inline |
State generation is used for non data state changes, for instance due to filter processing Used to determine if redraw/regeneration is required.
std::vector< ItemId > Maria::DrawObjectStore::getUpdatedItems | ( | long | generation | ) | const |
Get IDs of all items that have been updated since the given generation counter.
void Maria::DrawObjectStore::syncGeoIndex | ( | ) |
Call periodically to fetch index updates.Can be called frequently, 10 - 1000ms interval Only object changes will be processed