Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/gui/gl/glgui_bar.h @ 8319

Last change on this file since 8319 was 8145, checked in by bensch, 19 years ago

trunk: merged the gui back
merged with command:
svn merge -r8114:HEAD https://svn.orxonox.net/orxonox/branches/gui .
→ no conflicts

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