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

#include <MMinMaxElevationObserver.h>

Inheritance diagram for Maria::MinMaxElevationObserver:
Maria::ElevationAnalysisObserver

Public Member Functions

 MinMaxElevationObserver (const std::string &id)
 
void SetColorTable (const std::vector< double > &elevations, const std::vector< STK::Color4i > &colors)
 
void SetDrawElevationColoring (bool drawElevationColoring)
 
bool GetDrawElevationColoring () const
 
const BasicGeoTypes::GeoPosGetMinPosition () const
 
const BasicGeoTypes::GeoPosGetMaxPosition () const
 
double GetMinElevation () const
 
double GetMaxElevation () const
 
- Public Member Functions inherited from Maria::ElevationAnalysisObserver
 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::GeoPosgetPosition () 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)
 
bool getUseFovSettings () const
 
void setUseFovSettings (bool useFovSettings)
 
double getFovAzimuth () const
 
void setFovAzimuth (double azimuth)
 
double getFovTilt () const
 
void setFovTilt (double tilt)
 
double getFovWidth () const
 
void setFovWidth (double width)
 
double getFovHeight () const
 
void setFovHeight (double height)
 
bool needsUpdate () const
 
void forceUpdate ()
 
int getMaxRasterSize () const
 
void setMaxRasterSize (int maxRasterSize)
 

Additional Inherited Members

- Protected Member Functions inherited from Maria::ElevationAnalysisObserver
bool calcExtents (const std::shared_ptr< Maria::IProjector > &pj, const BasicGeoTypes::GeoPos &pos, double radius, BasicGeoTypes::Extents &ext)
 
virtual void updateTexture (std::shared_ptr< IProjector > pj, const BasicGeoTypes::Extents &ext, const std::shared_ptr< STK::Image > &elevationImage)=0
 
void asyncUpdate (const std::shared_ptr< RasterProjector > &vp, const BasicGeoTypes::GeoPos &gp, double radius, const 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 inherited from Maria::ElevationAnalysisObserver
std::string _id
 
BasicGeoTypes::GeoPos _position
 
BasicGeoTypes::PointDXY _offset
 
double _width
 
double _height
 
double _radius = 0.0
 
double _innerRadius = 0.0
 
double _heightAboveGround = 0.0
 
double _targetHeightAboveGround = 0.0
 
double _bearing = 0.0
 
int _sectorSize = 100
 
bool _useFovSettings = false
 
double _fovAzimuth = 0.0
 
double _fovTilt = 0.0
 
double _fovWidth = 0.0
 
double _fovHeight = 0.0
 
bool _dirty
 
Maria::InterpolationMethod _interpolationMethod
 
std::mutex _mutex
 
std::mutex _texMutex
 
std::shared_ptr< STK::Image_texImage
 
std::shared_ptr< STK::Texture_texture
 
int _texWidth
 
int _texHeight
 
std::atomic< bool > _busy
 
std::atomic< bool > _needsRedraw
 
std::atomic< bool > _cancelProcess
 
std::shared_ptr< std::thread > _updateThread
 
BasicGeoTypes::GeoPos _bmPos
 
double _bmRadius
 
int _maxRasterSize
 

Detailed Description

MinMaxElevationObserver - Short description. Detailed description.

Member Function Documentation

◆ SetColorTable()

void Maria::MinMaxElevationObserver::SetColorTable ( const std::vector< double > &  elevations,
const std::vector< STK::Color4i > &  colors 
)
inline

Set color table. The color table consists of two vectors of equal length, where each element corresponds to the color and elevation at that index. The values need to be sorted on increasing elevation.


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