80 lines
1.4 KiB
C++
Executable File
80 lines
1.4 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* FunctionDialog
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <QSlider>
|
|
|
|
|
|
// ESRI
|
|
#include <arcgis/Map.h>
|
|
#include <arcgis/MapGraphicsView.h>
|
|
#include <arcgis/GraphicsOverlay.h>
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
namespace SituationMap
|
|
{
|
|
|
|
|
|
class SimpleEsriLayerSlider : public QSlider
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
SimpleEsriLayerSlider(const QString &layername, int min, int max)
|
|
: QSlider(), m_layername(layername)
|
|
{
|
|
this->setOrientation(Qt::Horizontal);
|
|
setMinimum(min);
|
|
setMaximum(max);
|
|
}
|
|
|
|
public:
|
|
QString m_layername;
|
|
};
|
|
|
|
|
|
class SimpleEsriLayer : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
SimpleEsriLayer(QWidget *parent, Esri::ArcGISRuntime::MapGraphicsView *mapView);
|
|
virtual ~SimpleEsriLayer();
|
|
|
|
SimpleEsriLayer(const SimpleEsriLayer &other) = delete; // No copy
|
|
SimpleEsriLayer &operator=(const SimpleEsriLayer &other) = delete; // No copy
|
|
|
|
bool updatePanel();
|
|
private slots:
|
|
void layerOnOff();
|
|
void opacity(int);
|
|
void brightness(int);
|
|
void contrast(int);
|
|
void gamma(int);
|
|
|
|
private :
|
|
|
|
class Private;
|
|
/**
|
|
* The private d-pointer to not break BC when changing internals of this class
|
|
*/
|
|
Private *d = nullptr;
|
|
|
|
};
|
|
|
|
|
|
} // namespace SituationMap
|
|
|
|
//----------------------------------------------------------------------------
|
|
// Q_DECLARE_METATYPE(SituationMap::GeometryType);
|
|
|