mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-04-02 20:49:11 +02:00
31 lines
677 B
C++
31 lines
677 B
C++
#ifndef HILLSHADING_H
|
|
#define HILLSHADING_H
|
|
|
|
#include <QImage>
|
|
#include "map/matrix.h"
|
|
|
|
class HillShading
|
|
{
|
|
public:
|
|
static QImage render(const MatrixD &m, int extend);
|
|
|
|
static int blur() {return _blur;}
|
|
|
|
static void setAlpha(int alpha) {_alpha = alpha;}
|
|
static void setBlur(int blur) {_blur = blur;}
|
|
static void setAzimuth(int azimuth) {_azimuth = azimuth;}
|
|
static void setAltitude(int altitude) {_altitude = altitude;}
|
|
static void setZFactor(double z) {_z = z;}
|
|
static void setLightening(double b) {_l = b;}
|
|
|
|
private:
|
|
static int _alpha;
|
|
static int _blur;
|
|
static int _azimuth;
|
|
static int _altitude;
|
|
static double _z;
|
|
static double _l;
|
|
};
|
|
|
|
#endif // HILLSHADING_H
|