Changeset 1615 for code/branches/hud/src/orxonox/overlays/hud/HUDBar.h
- Timestamp:
- Jun 22, 2008, 12:06:55 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hud/src/orxonox/overlays/hud/HUDBar.h
r1614 r1615 41 41 namespace orxonox 42 42 { 43 class _OrxonoxExport HUDBar : public OrxonoxOverlay44 {43 class _OrxonoxExport HUDBar : public OrxonoxOverlay 44 { 45 45 public: 46 HUDBar();47 virtual ~HUDBar();46 HUDBar(); 47 virtual ~HUDBar(); 48 48 49 virtual void XMLPort(Element& xmlElement, XMLPort::Mode mode);49 virtual void XMLPort(Element& xmlElement, XMLPort::Mode mode); 50 50 51 void setValue(float value);52 void addColour(float value, const ColourValue& colour);53 void clearColours();51 virtual void setValue(float value); 52 void addColour(float value, const ColourValue& colour); 53 void clearColours(); 54 54 55 inline void setRightToLeft(bool r2l)55 inline void setRightToLeft(bool r2l) 56 56 { this->right2Left_ = r2l; } 57 inline bool getRightToLeft() const57 inline bool getRightToLeft() const 58 58 { return this->right2Left_; } 59 inline float getValue() const59 inline float getValue() const 60 60 { return this->value_; } 61 61 62 62 private: 63 static unsigned int materialcount_s; 64 bool right2Left_; 65 bool autoColour_; // whether bar changes colour automatically 66 float value_; // progress of bar 67 Ogre::PanelOverlayElement* bar_; 68 Ogre::TextureUnitState* textureUnitState_; 69 std::map<float, ColourValue> colours_; 63 bool right2Left_; 64 bool autoColour_; //!< whether bar changes colour automatically 65 float value_; //!< progress of bar 70 66 71 float barWidth_s; 72 float barHeight_s; 73 float barOffsetLeft_s; 74 float barOffsetTop_s; 67 Ogre::PanelOverlayElement* bar_; 68 Ogre::TextureUnitState* textureUnitState_; 69 std::map<float, ColourValue> colours_; 70 71 float barWidth_s; 72 float barHeight_s; 73 float barOffsetLeft_s; 74 float barOffsetTop_s; 75 76 static unsigned int materialcount_s; 75 77 }; 76 78 }
Note: See TracChangeset
for help on using the changeset viewer.