-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRenderExplorer.h
More file actions
46 lines (42 loc) · 1.04 KB
/
RenderExplorer.h
File metadata and controls
46 lines (42 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef RENDEREXPLORER_H
#define RENDEREXPLORER_H
#include "Util.h"
#include "Render.h"
#define ASPECT_RATIO (4/3)
class Camera;
class RenderExplorer : public Render
{
Q_OBJECT
public:
RenderExplorer();
~RenderExplorer();
void Draw();
void Update();
bool KeyEvent(int key);
void SetCameraProjection(int w, int h);
void AddCameraDistance(float d);
void mousePressEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event, int x, int y);
private:
Camera *camera;
int gridX;
int gridY;
bool fly;
float width, heigth;
Point2D mousePosition;
bool clicked;
ModelInfo selectedModel;
int selectedPosition;
void getWorldMouseCoord(int x, int y, float &wx, float &wy, float &wz);
bool mouseMove;
void setEditMode(EditModes em){return;}
signals:
void changeTab();
void setMessage(string, int);
void pickedInfo(string);
public slots:
void setMouseMove(bool);
void changeModelTexture(ModelInfo, int);
};
#endif