|
|
| NormalMapProvider (const Maria::TileCacheSpec &tcs, const std::shared_ptr< ElevationData > &elevation, const std::string &mapSignature="*", bool allowOverzoom=false, bool generateEmptyTiles=true, int maxConcurrentRequests=10) |
| |
|
void | setElevationData (const std::shared_ptr< Maria::ElevationData > &elevation) |
| |
|
void | setInterpolationMethod (Maria::InterpolationMethod interpolationMethod) |
| |
|
Maria::InterpolationMethod | getInterpolationMethod () const |
| |
| void | setAllowOverzoom (bool allowOverzoom) |
| |
|
bool | allowOverzoom () const |
| |
| void | setGenerateMissingTiles (bool generateEmptyTiles) |
| |
|
bool | generateMissingTiles () const |
| |
| bool | GetMapEntry (const MapContentQuery &mapQuery, MapEntry &mapEntry, unsigned long timeout) override |
| |
| std::shared_ptr< MariaProtobuf::FetchMapReplyMessage > | GetTileData (const GenerateMapTileRequest &req, unsigned long timeout_ms) override |
| |
| void | GetMapEntries (std::vector< MapEntry > &mapEntries) const override |
| |
| bool | AddRequest (const MapContentQuery &request, FullTileId tileId, std::shared_ptr< ITileDataResponseTarget > responseTarget) override |
| | Add request to provider. Returns false if provider queue is full.
|
| |
| FullTileId | RemoveRequest (int tileCacheId, bool removeNewest=false) override |
| | Try to remove request from queue associated with a specific tile cache.
|
| |
| int | PendingRequestCount (int tileCacheId=-1) const override |
| | Count of pending requests for specified tile cache.
|
| |
|
virtual int | GetFlags () |
| |
| virtual bool | GetMapEntry (const MapContentQuery &mapQuery, Maria::MapEntry &mapEntry, unsigned long timeout=0)=0 |
| |
| virtual std::shared_ptr< MariaProtobuf::FetchMapReplyMessage > | GetTileData (const GenerateMapTileRequest &req, unsigned long timeout_ms=0)=0 |
| |
| virtual void | GetMapEntries (std::vector< MapEntry > &mapEntries) const =0 |
| |
| virtual bool | AddRequest (const MapContentQuery &request, FullTileId tileId, std::shared_ptr< ITileDataResponseTarget > responseTarget)=0 |
| | Add request to provider. Returns false if provider queue is full.
|
| |
| virtual FullTileId | RemoveRequest (int tileCacheId, bool removeNewest=false)=0 |
| | Try to remove request from queue associated with a specific tile cache.
|
| |
| virtual int | PendingRequestCount (int tileCacheId=-1) const =0 |
| | Count of pending requests for specified tile cache.
|
| |
| virtual void | GetMapEntries (std::vector< MapEntry > &mapEntries) const =0 |
| | Get all map entries served by the provider. Note that if "*" is set as map signature, the provider can provide data for map signatures of given map type.
|
| |
NormalMapProvider - Generate normal maps from elevation data layer Detailed description.
| bool Maria::NormalMapProvider::GetMapEntry |
( |
const MapContentQuery & |
mapQuery, |
|
|
MapEntry & |
mapEntry, |
|
|
unsigned long |
timeout |
|
) |
| |
|
overridevirtual |
Get a map catalog entry from a map query. This method should fill out the provided mapEntry with the resolved data for the given mapQuery.
The method should return true on success, and false on failure.
The method should block until a response can be given, but at most timeout ms. If timeout = 0, it may block indefinitely.
Implements Maria::IMapDataProvider.