paysages3d/gui_qt/inputheightmap.h
2012-08-08 13:30:40 +00:00

30 lines
579 B
C++

#ifndef _PAYSAGES_QT_INPUTHEIGHTMAP_H_
#define _PAYSAGES_QT_INPUTHEIGHTMAP_H_
#include <QWidget>
#include "baseinput.h"
#include "../lib_paysages/heightmap.h"
#include "../lib_paysages/terraincanvas.h"
class InputHeightMap:public BaseInput
{
Q_OBJECT
public:
InputHeightMap(QWidget* form, QString label, HeightMap* value, TerrainCanvas* canvas);
public slots:
virtual void updatePreview();
virtual void applyValue();
virtual void revert();
private slots:
void editHeightMap();
private:
HeightMap* _value;
TerrainCanvas* _canvas;
};
#endif