My Project
 All Classes Files Functions Variables Enumerations Pages
control_render.h
Go to the documentation of this file.
1 /**************************************************************************/
2 /* Copyright 2009 Tim Day */
3 /* */
4 /* This file is part of Fracplanet */
5 /* */
6 /* Fracplanet is free software: you can redistribute it and/or modify */
7 /* it under the terms of the GNU General Public License as published by */
8 /* the Free Software Foundation, either version 3 of the License, or */
9 /* (at your option) any later version. */
10 /* */
11 /* Fracplanet is distributed in the hope that it will be useful, */
12 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
13 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
14 /* GNU General Public License for more details. */
15 /* */
16 /* You should have received a copy of the GNU General Public License */
17 /* along with Fracplanet. If not, see <http://www.gnu.org/licenses/>. */
18 /**************************************************************************/
19 
24 #ifndef _control_render_h_
25 #define _control_render_h_
26 
27 #include "control.h"
28 #include "parameters_render.h"
29 
31 class ControlRender : public Control
32 {
33  private:
34 
35  Q_OBJECT;
36 
37  public:
38 
40 
41  ~ControlRender();
42 
43  public slots:
44 
45  void setWireframe(int v);
46  void setDisplayList(int v);
47  void setJoystickMouse(int v);
48  void setAmbient(int v);
49  void setIlluminationAzimuth(int v);
50  void setIlluminationElevation(int v);
51 
52  void pickBackgroundColourLow();
53  void pickBackgroundColourHigh();
54 
55  private:
56 
58  ParametersRender*const parameters;
59 
60  QCheckBox* wireframe;
61  QCheckBox* display_list;
62  QCheckBox* joystick_mouse;
63  QSlider* ambient;
64  QSlider* illumination_azimuth;
65  QSlider* illumination_elevation;
66 
67  QPushButton* background_colour_low_button;
68  QPushButton* background_colour_high_button;
69 };
70 
71 #endif
Aggregates controllable parameters for all things related to OpenGL rendering.
Definition: parameters_render.h:32
Encapsulates GUI elements for controlling OpenGL rendering.
Definition: control_render.h:31
Base class for other controls; useful for shared stuff.
Definition: control.h:30
Interface for class Control.
ControlRender(ParametersRender *param)
Definition: control_render.cpp:24
Interface for class ParametersRender.