2012-01-06 16:09:03 +00:00
|
|
|
#ifndef _PAYSAGES_QT_FORMRENDER_H_
|
|
|
|
#define _PAYSAGES_QT_FORMRENDER_H_
|
|
|
|
|
|
|
|
#include "baseform.h"
|
2012-01-27 23:01:21 +00:00
|
|
|
#include "../lib_paysages/camera.h"
|
2012-04-02 19:38:59 +00:00
|
|
|
#include "../lib_paysages/renderer.h"
|
2012-06-13 15:38:11 +00:00
|
|
|
#include "../lib_paysages/render.h"
|
2012-01-06 16:09:03 +00:00
|
|
|
|
|
|
|
class FormRender : public BaseForm
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit FormRender(QWidget *parent = 0);
|
2012-04-02 19:38:59 +00:00
|
|
|
~FormRender();
|
2012-01-06 16:09:03 +00:00
|
|
|
|
2012-06-27 10:30:00 +00:00
|
|
|
virtual void savePack(PackStream* stream);
|
|
|
|
virtual void loadPack(PackStream* stream);
|
|
|
|
|
2012-01-27 23:01:21 +00:00
|
|
|
public slots:
|
|
|
|
virtual void revertConfig();
|
|
|
|
virtual void applyConfig();
|
2012-04-02 19:38:59 +00:00
|
|
|
void startQuickRender();
|
2012-01-27 23:01:21 +00:00
|
|
|
|
|
|
|
protected slots:
|
|
|
|
virtual void configChangeEvent();
|
|
|
|
|
2012-01-06 16:09:03 +00:00
|
|
|
private slots:
|
|
|
|
void startRender();
|
|
|
|
void showRender();
|
|
|
|
void saveRender();
|
|
|
|
|
|
|
|
private:
|
2012-06-13 15:38:11 +00:00
|
|
|
RenderParams _params;
|
2012-01-27 23:01:21 +00:00
|
|
|
CameraDefinition _camera;
|
2012-04-02 19:38:59 +00:00
|
|
|
Renderer _renderer;
|
|
|
|
bool _renderer_inited;
|
2012-04-12 20:02:31 +00:00
|
|
|
BasePreview* _preview_landscape;
|
2012-01-06 16:09:03 +00:00
|
|
|
};
|
|
|
|
|
2012-07-10 15:38:12 +00:00
|
|
|
#endif
|