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-12-10 22:05:53 +00:00
|
|
|
#include "../lib_paysages/terrain/public.h"
|
2012-07-13 12:23:58 +00:00
|
|
|
#include "tools.h"
|
|
|
|
#include "widgetheightmap.h"
|
|
|
|
|
|
|
|
class DialogHeightMap : public DialogWithPreview
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2012-12-10 22:05:53 +00:00
|
|
|
explicit DialogHeightMap(QWidget* parent, TerrainDefinition* terrain);
|
|
|
|
static bool editHeightMap(QWidget* parent, TerrainDefinition* terrain);
|
2012-07-13 12:23:58 +00:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
virtual void accept();
|
|
|
|
void revert();
|
2012-12-09 17:49:28 +00:00
|
|
|
|
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);
|
2013-02-03 21:18:32 +00:00
|
|
|
void heightmapChanged();
|
2012-12-10 22:05:53 +00:00
|
|
|
//void loadFromFile();
|
2012-07-13 12:23:58 +00:00
|
|
|
|
|
|
|
private:
|
2012-12-10 22:05:53 +00:00
|
|
|
TerrainDefinition* _value_original;
|
|
|
|
TerrainDefinition* _value_modified;
|
2013-02-03 21:18:32 +00:00
|
|
|
QLabel* _info_memory;
|
2012-07-13 12:23:58 +00:00
|
|
|
WidgetHeightMap* _3dview;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|