Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: some gui-work

File size: 853 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
[4838]12// FORWARD DECLARATION
[3543]13
[5365]14//! This is Bar part of the openglGUI class
[5360]15/**
[6287]16 * The Bar shows the part value.
[5360]17 */
[5365]18class GLGuiBar : public GLGuiWidget {
[3543]19
[5360]20 public:
[5365]21  GLGuiBar();
22  virtual ~GLGuiBar();
[2036]23
[6287]24  void setValue(float value) { this->value = value; };
25  void setMinimum(float minimum) { this->minimum = minimum; };
26  void setMaximum(float maximum) { this->maximum = maximum; };
[1853]27
[6287]28  float getValue() const { return this->value; };
29  float getMinimum() const { return this->minimum; };
30  float getMaximum() const { return this->maximum; };
[1853]31
[6287]32  virtual void update() { };
33  virtual void draw() const;
34
[3245]35 private:
[6287]36   void init();
[3245]37
[6287]38  private:
39    float value;
40
41    float minimum;
42    float maximum;
[1853]43};
44
[5360]45#endif /* _GLGUI__H */
Note: See TracBrowser for help on using the repository browser.