![]() |
Maria GDK 5.0.0.737
Documentation of native code in develop branch
|
#include <MMapTileData.h>
Public Member Functions | |
MapTileData (TileId tileId, const std::shared_ptr< Maria::SharedCounter > &memCounter) | |
std::shared_ptr< STK::Texture2D > | texture () |
bool | ProcessData (const MariaProtobuf::ProtoMapData &mapdata) override |
const std::shared_ptr< Maria::TileLabelData > & | labels () const |
void | setLabels (const std::shared_ptr< TileLabelData > &labels) |
bool | hasTransparentPixels () const |
True if the imagery contains transparent pixels. | |
bool | hasVisiblePixels () const |
True if we have any visible pixels at all. | |
void | ClearData () |
const std::shared_ptr< MariaProtobuf::LegendData > & | getLegendData () const |
void | setLegendData (const std::shared_ptr< MariaProtobuf::LegendData > &legendData) |
![]() | |
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 Member Functions | |
std::shared_ptr< Maria::TileLabelData > | processLabels (const std::shared_ptr< RasterProjector > &tileRp, const MariaProtobuf::LabelData &labelData) |
std::vector< std::shared_ptr< Maria::TileLabel > > | joinConnectedLineLabels (const std::unordered_map< std::string, std::list< std::shared_ptr< Maria::TileLabel > > > &lineLabels) const |
Protected Attributes | |
std::shared_ptr< STK::Texture2D > | _texture |
std::shared_ptr< Maria::TileLabelData > | _labels |
std::shared_ptr< MariaProtobuf::LegendData > | _legendData |
bool | _transparentPixels |
bool | _visiblePixels |
![]() | |
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 () |
MapTileData - 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.