Maria GDK 5.0.0.737
Documentation of native code in develop branch
Loading...
Searching...
No Matches
Maria::MapTileData Class Reference

#include <MMapTileData.h>

Inheritance diagram for Maria::MapTileData:
Maria::TileData

Public Member Functions

 MapTileData (TileId tileId, const std::shared_ptr< Maria::SharedCounter > &memCounter)
 
std::shared_ptr< STK::Texture2Dtexture ()
 
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)
 
- 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::GeoRectGetGeoRect () 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::TileLabelDataprocessLabels (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
 
- 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
 

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 ()
 

Detailed Description

MapTileData - Short description. Detailed description.

Member Function Documentation

◆ ProcessData()

bool MapTileData::ProcessData ( const MariaProtobuf::ProtoMapData &  data)
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.

Returns
True if processing went ok. This will cause the tile state to be set to TileData::Redy. False if processing failed, and state is set to TileData::Error.

Reimplemented from Maria::TileData.


The documentation for this class was generated from the following files: