![]() |
Maria GDK 5.0.0.930
Documentation of native code in develop branch
|
#include <MDrawObjectStore.h>
Public Member Functions | |
| DrawObjectStore (const std::string &storeId, std::shared_ptr< DrawObjectCache > drawObjectCache) | |
| 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) |
| const Maria::ScaleFilter & | getScaleFilter () const |
| 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 | 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) |
| std::vector< int > | findAllObjectsInGeoRect (BasicGeoTypes::GeoRect grc) |
| void | addToTransientList (const Maria::ItemId &itemId) |
| void | removeFromTransientList (const Maria::ItemId &itemId) |
| bool | isInTransientList (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::vector< std::shared_ptr< DrawObjectData > > | getDrawObjectData (const std::vector< Maria::ItemId > &ids) 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 |
| int | getLastKnownGeneration () const |
| long | getLastGeneration () const |
| long | getIndexGeneration () const |
| std::vector< ItemId > | getObjectIds () const |
| void | syncGeoIndex (const std::string &originator, const std::string &id) |
| 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 | ( | const std::string & | originator, |
| const std::string & | id | ||
| ) |
Call periodically to fetch index updates.Can be called frequently, 10 - 1000ms interval Only object changes will be processed