Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/gui/gl_gui/glgui_bar.h @ 7264

Last change on this file since 7264 was 6287, checked in by bensch, 19 years ago

orxonox/trunk: some gui-work

File size: 853 bytes
Line 
1/*!
2 * @file glgui_bar.h
3 * The gl_ widget of th openglGUI
4 *
5 */
6
7#ifndef _GLGUI_BAR_H
8#define _GLGUI_BAR_H
9
10#include "glgui_widget.h"
11
12// FORWARD DECLARATION
13
14//! This is Bar part of the openglGUI class
15/**
16 * The Bar shows the part value.
17 */
18class GLGuiBar : public GLGuiWidget {
19
20 public:
21  GLGuiBar();
22  virtual ~GLGuiBar();
23
24  void setValue(float value) { this->value = value; };
25  void setMinimum(float minimum) { this->minimum = minimum; };
26  void setMaximum(float maximum) { this->maximum = maximum; };
27
28  float getValue() const { return this->value; };
29  float getMinimum() const { return this->minimum; };
30  float getMaximum() const { return this->maximum; };
31
32  virtual void update() { };
33  virtual void draw() const;
34
35 private:
36   void init();
37
38  private:
39    float value;
40
41    float minimum;
42    float maximum;
43};
44
45#endif /* _GLGUI__H */
Note: See TracBrowser for help on using the repository browser.