-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscene_manager.h
More file actions
65 lines (52 loc) · 1.73 KB
/
scene_manager.h
File metadata and controls
65 lines (52 loc) · 1.73 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#ifndef SCENE_MANAGER_H
#define SCENE_MANAGER_H
#include "glm/glm.hpp"
#include <vector>
#include "gl_drawable.h"
#include "terrain.h"
#include "lighting_manager.h"
#include "grid.h"
#include <QObject>
#include "controllers.h"
#include "progress_bar_widget.h"
class QSlider;
class ActionFamily;
class RainfallEditDialog;
class SceneManager : public QObject{
Q_OBJECT
public:
SceneManager(PositionControllers position_controllers, TimeControllers time_controllers, TerrainControllers terrain_controllers,
TemperatureEditDialog * temp_edit_dlg, RainfallEditDialog * rainfall_edit_dlg, ActionFamily * overlay_actions);
~SceneManager();
Asset* getAccelerationStructure();
Asset* getSun();
Terrain * getTerrain();
LightingManager & getLightingManager();
Grid & getGrid();
void loadTerrain(QString filename);
void initScene();
signals:
void processing(QString description);
void processingUpdate(int percent_complete);
void processingComplete();
public slots:
void sunPositionChanged(float pos_x, float pos_y, float pos_z);
void setNorthOrientation(float north_x, float north_y, float north_z);
void refreshAccelerationStructureViewer();
void refreshDailyIllumination();
private slots:
void emitProcessing(QString description);
void emitProcessingComplete();
void emitProcessingUpdate(int update);
private:
// void clear_acceleration_structure_viewer();
void establish_connections();
Asset * m_acceleration_structure_viewer;
Asset * m_sun;
Grid m_grid;
Terrain * m_terrain; // Pointer to control
LightingManager m_lighting_manager;
QString current_terrain_file;
// TemperatureEditDialog * m_temp_edit_dlg;
};
#endif //SCENE_MANAGER_H