|
|
| GeoLayerManager (std::shared_ptr< STK::ShaderProgramManager > shaderManager, std::shared_ptr< STK::FontManager > fontManager, std::shared_ptr< Maria::SystemTicker >systemTicker, std::shared_ptr< Maria::TileCacheManager > tileCacheMgr, std::shared_ptr< STK::Screen > screen) |
| |
| void | drawFrame () |
| |
| bool | drawRasterProjector (const std::shared_ptr< RasterProjector > &viewport, double mapScale, float pixelScale, bool sync) |
| |
| std::shared_ptr< STK::Image > | drawBitmap (const std::shared_ptr< RasterProjector > &viewport, double mapScale, float pixelScale=1.0, int numSamples=0) |
| |
| void | setViewport (const std::shared_ptr< Maria::Viewport > &vp) |
| |
|
const std::shared_ptr< Maria::Viewport > & | getViewport () const |
| |
|
void | setScreen (const std::shared_ptr< STK::Screen > &screen) |
| |
|
const std::shared_ptr< STK::Screen > & | getScreen () const |
| |
|
const std::shared_ptr< STK::PerformanceGraphs > & | getPerformanceGraphs () const |
| |
|
void | setShowPerformanceGraphs (bool showPerfGraphs) |
| |
|
bool | getShowPerformanceGraphs () const |
| |
|
void | setPerformanceGraphEnabled (const std::string &name, bool enabled) |
| |
|
bool | getPerformanceGraphEnabled (const std::string &name) |
| |
|
const std::shared_ptr< Maria::SystemTicker > & | getSystemTicker () const |
| |
| void | setDebugRendering (const std::string &feature, bool enabled) |
| | Control debug rendering feature.
|
| |
| bool | getDebugRendering (const std::string &feature) const |
| | Check if debug rendering feature is enabled.
|
| |
|
bool | updateFrame (bool sync) |
| |
|
int | updateFrameSync (int timeoutMs) |
| |
| void | setPixelTolerance (double pixelScale) |
| | Resolution parameter 1.0 guarantees that the pixels are at least the same resolution as the viewport resolution. 2.0 allows the pixels to be up to 2x as big as the viewport resolution.
|
| |
|
double | getPixelTolerance () const |
| |
| void | setMapResolutionScale (double scale) |
| | Set resolution scale factor. This scale factor will be multiplied with the base pixel scale and can be used to temporarily increase or decrease the pixel resolution of the map. The scale factor affects the pixel error tolerance of the display so that higher numbers means lower resolution. It also affects the template layer scale selections.
|
| |
|
double | getMapResolutionScale () const |
| |
|
int | getNumLayers () const |
| |
|
int | getMaxDepth () const |
| |
|
int | getMinDepth () const |
| |
|
int | getNextDepth () const |
| |
|
std::shared_ptr< GeoUnitsSetting > | getGeoUnitsSetting () const |
| |
|
void | setGeoUnitsSetting (const std::shared_ptr< GeoUnitsSetting > &geoUnitsSetting) |
| |
|
void | setGeoUnitsSettingEnums (int positionFormat, int bearingType, int bearingUnit, int speedUnit, int distanceUnit, int elevationUnit) |
| |
|
std::shared_ptr< GeoLayer > | getGeoLayer (const std::string &id) const |
| |
|
void | setLayer (const std::string &id, const std::shared_ptr< GeoLayer > &layer) |
| |
| void | removeLayer (const std::string &layerId) |
| |
|
void | clearLayers () |
| | Clear all layers.
|
| |
|
bool | needsRedraw () const |
| | Returns true if any of the layers have changed so we need a redraw.
|
| |
|
void | forceRedraw (const char *msg=nullptr) |
| |
|
|
void | updateViewportProjection (const std::shared_ptr< RasterProjector > &viewport) |
| |
|
bool | updateLayers (const std::shared_ptr< RasterProjector > &viewport, double scale, float pixelScale, bool sync) |
| |
|
int | updateLayersSync (const std::shared_ptr< RasterProjector > &viewport, double scale, float pixelScale, int timeoutMs) |
| |
|
void | redrawInternal (const std::shared_ptr< RasterProjector > &viewport) |
| |
|
void | setGLViewport (int x, int y, int width, int height) |
| |
GeoLayerManager - Manages setup and rendering of all geographical data layers, including map layers.