2012-07-13 12:23:58 +00:00
|
|
|
#ifndef _PAYSAGES_QT_DIALOGHEIGHTMAP_H_
|
|
|
|
#define _PAYSAGES_QT_DIALOGHEIGHTMAP_H_
|
|
|
|
|
2012-08-08 14:25:01 +00:00
|
|
|
#include <QLabel>
|
2012-07-13 12:23:58 +00:00
|
|
|
#include "tools.h"
|
|
|
|
#include "widgetheightmap.h"
|
|
|
|
#include "../lib_paysages/heightmap.h"
|
2012-08-08 13:30:40 +00:00
|
|
|
#include "../lib_paysages/terraincanvas.h"
|
2012-07-13 12:23:58 +00:00
|
|
|
|
|
|
|
class DialogHeightMap : public DialogWithPreview
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2012-08-08 13:30:40 +00:00
|
|
|
explicit DialogHeightMap(QWidget* parent, HeightMap* heightmap, TerrainCanvas* canvas);
|
|
|
|
static bool editHeightMap(QWidget* parent, HeightMap* heightmap, TerrainCanvas* canvas);
|
2012-07-13 12:23:58 +00:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
virtual void accept();
|
|
|
|
void revert();
|
2012-07-13 21:24:19 +00:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void angleHChanged(int value);
|
|
|
|
void angleVChanged(int value);
|
2012-07-16 15:48:05 +00:00
|
|
|
void brushModeChanged(int value);
|
2012-07-15 14:42:50 +00:00
|
|
|
void brushSizeChanged(int value);
|
|
|
|
void brushSmoothingChanged(int value);
|
2012-07-16 20:34:01 +00:00
|
|
|
void brushStrengthChanged(int value);
|
2012-08-08 13:30:40 +00:00
|
|
|
void loadFromFile();
|
|
|
|
void resetToTerrain();
|
2012-08-08 14:25:01 +00:00
|
|
|
void changeResolution();
|
|
|
|
void updateResolutionLabel();
|
2012-07-13 12:23:58 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
HeightMap* _value_original;
|
|
|
|
HeightMap _value_modified;
|
|
|
|
WidgetHeightMap* _3dview;
|
2012-08-08 14:25:01 +00:00
|
|
|
QLabel* _resolution_label;
|
2012-08-08 13:30:40 +00:00
|
|
|
TerrainCanvas* _canvas;
|
2012-07-13 12:23:58 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|