|  | Maria GDK 5.0.0.910
    Documentation of native code in develop branch | 
#include <MElevationAnalysisObserver.h>
 
  
| Public Member Functions | |
| ElevationAnalysisObserver (const std::string &id) | |
| bool | update (const std::shared_ptr< RasterProjector > &vp, std::shared_ptr< Maria::ElevationData > elevation) | 
| void | redraw (const STK::Matrix4x4f &mv, STK::ShaderProgram &shader, float opacity) | 
| const std::string & | getId () const | 
| bool | isBusy () const | 
| void | setPosition (const BasicGeoTypes::GeoPos &gp) | 
| const BasicGeoTypes::GeoPos & | getPosition () const | 
| void | setRadius (double radius) | 
| double | getRadius () const | 
| void | setInnerRadius (double innerRadius) | 
| double | getInnerRadius () const | 
| void | setBearing (double bearing) | 
| double | getBearing () const | 
| void | setSectorSize (int sectorSize) | 
| int | getSectorSize () const | 
| double | getHeightAboveGround () const | 
| void | setHeightAboveGround (double heightAboveGround) | 
| double | getTargetHeightAboveGround () const | 
| void | setTargetHeightAboveGround (double targetHeightAboveGround) | 
| double | getFovTilt () const | 
| void | setFovTilt (double tilt) | 
| double | getFovHeight () const | 
| void | setFovHeight (double height) | 
| bool | needsUpdate () const | 
| void | forceUpdate () | 
| int | getMaxRasterSize () const | 
| void | setMaxRasterSize (int maxRasterSize) | 
| Protected Member Functions | |
| bool | calcExtents (const std::shared_ptr< Maria::IProjector > &pj, const BasicGeoTypes::GeoPos &pos, double radius, BasicGeoTypes::Extents &ext) | 
| virtual void | updateTexture (std::shared_ptr< RasterProjector > pj, const BasicGeoTypes::Extents &ext, const std::shared_ptr< Maria::ElevationData > &elevation)=0 | 
| void | asyncUpdate (std::shared_ptr< RasterProjector > vp, const BasicGeoTypes::GeoPos &gp, double radius, BasicGeoTypes::Extents ext, std::shared_ptr< Maria::ElevationData > elevation) | 
| void | setTextureImage (const std::shared_ptr< STK::Image > &img) | 
| bool | insideEllipse (double px, double py, double cx, double cy, double rx, double ry, double rx0, double ry0) | 
| void | cancelUpdate () | 
| void | cancelProcessingThread () | 
| Protected Attributes | |
| std::string | _id | 
| BasicGeoTypes::GeoPos | _position | 
| BasicGeoTypes::PointDXY | _offset | 
| double | _width = 0.0 | 
| double | _height = 0.0 | 
| double | _radius = 0.0 | 
| double | _innerRadius = 0.0 | 
| double | _heightAboveGround = 0.0 | 
| double | _targetHeightAboveGround = 0.0 | 
| double | _bearing = 0.0 | 
| int | _sectorSize = 360 | 
| double | _fovTilt = 0.0 | 
| double | _fovHeight = 0.0 | 
| bool | _dirty = false | 
| Maria::InterpolationMethod | _interpolationMethod = InterpolationMethod::Bilinear | 
| std::mutex | _mutex | 
| std::mutex | _texMutex | 
| std::shared_ptr< STK::Image > | _texImage | 
| std::shared_ptr< STK::Texture > | _texture | 
| int | _texWidth = 0 | 
| int | _texHeight = 0 | 
| std::atomic< bool > | _busy = false | 
| std::atomic< bool > | _cancelProcess = false | 
| std::shared_ptr< std::thread > | _updateThread | 
| uint32_t | _generatedTextureGeneration = 0 | 
| uint32_t | _renderedTextureGeneration = 0 | 
| BasicGeoTypes::GeoPos | _bmPos | 
| double | _bmRadius = 0.0 | 
| int | _maxRasterSize = 2048 | 
| int | _reqWidth = 0 | 
| int | _reqHeight = 0 | 
ElevationAnalysisObserver - Short description. Detailed description.
| void ElevationAnalysisObserver::redraw | ( | const STK::Matrix4x4f & | mv, | 
| STK::ShaderProgram & | shader, | ||
| float | opacity | ||
| ) | 
Redraw analysis bitmap. This method will redraw the bitmap with the transform calculated in the last update().
| bool ElevationAnalysisObserver::update | ( | const std::shared_ptr< RasterProjector > & | vp, | 
| std::shared_ptr< Maria::ElevationData > | elevation | ||
| ) | 
Update data according to viewport. This method will update the rendering transforms and fire off a new calculation thread for the analysis data if the observer parameters have changed.