2012-06-08 12:28:46 +00:00
|
|
|
#ifndef _PAYSAGES_QT_EXPLORERCHUNKTERRAIN_H_
|
|
|
|
#define _PAYSAGES_QT_EXPLORERCHUNKTERRAIN_H_
|
|
|
|
|
|
|
|
#include "baseexplorerchunk.h"
|
|
|
|
#include "../lib_paysages/renderer.h"
|
|
|
|
#include "../lib_paysages/euclid.h"
|
|
|
|
|
|
|
|
class ExplorerChunkTerrain:public BaseExplorerChunk
|
|
|
|
{
|
|
|
|
public:
|
2012-06-17 09:40:40 +00:00
|
|
|
ExplorerChunkTerrain(Renderer* renderer, double x, double z, double size, int nbchunks);
|
2012-06-08 12:28:46 +00:00
|
|
|
~ExplorerChunkTerrain();
|
|
|
|
|
|
|
|
void onCameraEvent(CameraDefinition* camera);
|
|
|
|
void onResetEvent();
|
|
|
|
bool onMaintainEvent();
|
|
|
|
void onRenderEvent(QGLWidget* widget);
|
2012-06-17 09:40:40 +00:00
|
|
|
double getDisplayedSizeHint(CameraDefinition* camera);
|
|
|
|
Color getTextureColor(double x, double y);
|
2012-06-08 12:28:46 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
Vector3 getCenter();
|
|
|
|
|
2012-06-17 09:40:40 +00:00
|
|
|
double _startx;
|
|
|
|
double _startz;
|
|
|
|
double _size;
|
|
|
|
double _overall_step;
|
2012-06-08 12:28:46 +00:00
|
|
|
|
2012-06-17 09:40:40 +00:00
|
|
|
double* _tessellation;
|
2012-06-08 12:28:46 +00:00
|
|
|
int _tessellation_max_size;
|
|
|
|
int _tessellation_current_size;
|
2012-06-17 09:40:40 +00:00
|
|
|
double _tessellation_step;
|
2012-06-08 12:28:46 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|