-
Notifications
You must be signed in to change notification settings - Fork 2
/
gui_control.h
72 lines (56 loc) · 1.77 KB
/
gui_control.h
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
66
67
68
69
70
71
72
#ifndef GUI_CONTROL_
#define GUI_CONTROL_
#include <FL\Fl.H>
#include <FL\Fl_Window.H>
#include <FL\Fl_Box.H>
#include <FL\Fl_Button.H>
#include <FL\Fl_Light_Button.H>
#include <FL\Fl_Value_Slider.H>
class Scene;
class GUIControl {
public:
GUIControl(Scene* s);
static void startButtonPressed();
static void pauseButtonPressed();
static void ballVelocityZSliderValueChanged();
static void cameraFocalScaleChanged();
static void recordButtonPressed();
static void snapShotButtonPressed();
static void showControlDialog();
static void dofLightButtonPressed();
static void softShadowLightButtonPressed();
static void glossyLightButtonPressed();
static void aaLightButtonPressed();
static void motionBlurLightButtonPressed();
static void giLightButtonPressed();
static void cameraChangeButtonPressed();
static void samplesPerFrameChanged();
static Scene* scene;
// indicating whether animation is on
static bool onAnimation;
// indicating whether at initial simulation step
static bool initialStep;
static float ballVelocityZ;
static float cameraFocalScale;
static bool dofOn;
static bool softShadowOn;
static bool glossyOn;
static bool aaOn;
static bool motionBlurOn;
static bool giOn;
static Fl_Button* startButton;
static Fl_Button* pauseButton;
static Fl_Button* recordButton;
static Fl_Button* snapShotButton;
static Fl_Value_Slider* ballVelocityZSlider;
static Fl_Value_Slider* cameraFocalScaleSlider;
static Fl_Light_Button* dofLightButton;
static Fl_Light_Button* softShadowLightButton;
static Fl_Light_Button* glossyLightButton;
static Fl_Light_Button* aaLightButton;
static Fl_Light_Button* motionBlurLightButton;
static Fl_Light_Button* giLightButton;
static Fl_Button* cameraChangeButton;
static Fl_Value_Slider* samplesPerFrameSlider;
};
#endif