2013-06-09 16:08:01 +00:00
|
|
|
#ifndef _PAYSAGES_EDITING_TERRAIN_WIDGETTERRAINBASENOISEPREVIEW_H_
|
|
|
|
#define _PAYSAGES_EDITING_TERRAIN_WIDGETTERRAINBASENOISEPREVIEW_H_
|
|
|
|
|
2013-11-03 14:46:39 +00:00
|
|
|
#include "editing_global.h"
|
2013-08-18 15:12:54 +00:00
|
|
|
|
2013-11-12 22:15:35 +00:00
|
|
|
#include "DrawingWidget.h"
|
2013-08-18 15:12:54 +00:00
|
|
|
class QPainter;
|
|
|
|
|
|
|
|
class WidgetTerrainBaseNoisePreview : public DrawingWidget
|
2013-06-09 16:08:01 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit WidgetTerrainBaseNoisePreview(QWidget* parent = 0);
|
|
|
|
|
|
|
|
void setNoise(NoiseGenerator* noise);
|
|
|
|
|
|
|
|
protected:
|
2013-08-18 15:12:54 +00:00
|
|
|
virtual void doDrawing(QPainter* painter);
|
2013-06-09 16:08:01 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
NoiseGenerator* _noise;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|