![]() |
Maria GDK 5.0.0.899
Documentation of native code in develop branch
|
#include <M3DForestData.h>
Public Member Functions | |
| ForestData (Maria::TileId tile_id, const std::shared_ptr< Maria::SharedCounter > &memCounter, const std::shared_ptr< Maria::ElevationData > &elev, bool geoidCorrection, const std::string &mapLayer) | |
| bool | ProcessData (const MariaProtobuf::ProtoMapData &mapData) |
| void | clear () |
| GLuint | getVertexBuffer () |
| int | getVertexBufferSize () const |
| GLuint | getTexCoordBuffer () |
| int | getTexCoordBufferSize () const |
Public Member Functions inherited from Maria::TileData | |
| TileData (TileId tileId, const std::shared_ptr< Maria::SharedCounter > &memCounter) | |
| void | SetState (TileState state) |
| TileState | GetState () const |
| bool | SetPendingDataRequest () |
| void | SetTimestamp (int64_t timestamp) |
| int64_t | GetTimestamp () const |
| void | SetTileId (TileId tileId) |
| TileId | GetTileId () const |
| const BasicGeoTypes::GeoRect & | GetGeoRect () const |
| void | SetGeoRect (const BasicGeoTypes::GeoRect &grc) |
| int | getMemSize () const |
| virtual bool | ProcessData (const MariaProtobuf::ProtoMapData &data) |
| const std::shared_ptr< MariaProtobuf::Metadata > & | getMetaData () const |
| void | setMetaData (const std::shared_ptr< MariaProtobuf::Metadata > &metaData) |
Additional Inherited Members | |
Public Types inherited from Maria::TileData | |
| enum | TileState { Empty , Pending , Ready , OutsideArea , OutsideResolution , Error } |
Static Public Member Functions inherited from Maria::TileData | |
| static int | getNumTilesInMemory () |
Protected Attributes inherited from Maria::TileData | |
| std::atomic< TileState > | _state |
| std::mutex | _requestLock |
| TileId | _tile_id |
| std::atomic< int64_t > | _timestamp |
| int | _memsize |
| std::shared_ptr< Maria::SharedCounter > | _cache_mem_counter |
| BasicGeoTypes::GeoRect | _grc |
| std::shared_ptr< MariaProtobuf::Metadata > | _metaData |
ForestData - A tile of forest density map data.
|
virtual |
Process the newly loaded data. This virtual method is run after the data has been received and unpacked. This happens in the same thread as the data unpacking, which is separate from both main thread and data reader threads. This method can be used to do potentially costly data processing that needs to be done before the data can be used for rendering.
Reimplemented from Maria::TileData.