![]() |
Maria GDK 5.0.0.738
Documentation of native code in develop branch
|
#include <MElevationTileData.h>
Public Member Functions | |
ElevationTileData (Maria::TileId tileId, const std::shared_ptr< Maria::SharedCounter > &memCounter) | |
void | SetImage (std::shared_ptr< STK::Image > img) |
std::shared_ptr< STK::Image > | GetImage () |
std::shared_ptr< const STK::Image > | GetImage () const |
bool | ProcessData (const MariaProtobuf::ProtoMapData &mapData) override |
void | setMinElevation (double min, BasicGeoTypes::GeoPos pos) |
void | setMaxElevation (double max, BasicGeoTypes::GeoPos pos) |
BasicGeoTypes::GeoPos | getMinElevationPos () const |
BasicGeoTypes::GeoPos | getMaxElevationPos () const |
double | getMaxElevation () const |
double | getMinElevation () const |
bool | hasValidMinMax () |
![]() | |
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) |
Protected Attributes | |
std::shared_ptr< STK::Image > | _img |
double | _minElevation {0} |
double | _maxElevation {0} |
BasicGeoTypes::GeoPos | _minElevationPos |
BasicGeoTypes::GeoPos | _maxElevationPos |
bool | _minMaxValid |
![]() | |
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 |
Additional Inherited Members | |
![]() | |
enum | TileState { Empty , Pending , Ready , OutsideArea , OutsideResolution , Error } |
![]() | |
static int | getNumTilesInMemory () |
ElevationTileData - Short description. Detailed description.
|
overridevirtual |
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.