Changeset 1615 for code/branches/hud/src/orxonox/overlays/OverlayGroup.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/OverlayGroup.h
r1614 r1615 39 39 namespace orxonox 40 40 { 41 class HUDBar;42 class OrxonoxOverlay;43 44 41 class _OrxonoxExport OverlayGroup : public BaseObject 45 42 { 46 43 public: 47 44 OverlayGroup(); 48 45 ~OverlayGroup(); 49 46 50 virtual void XMLPort(Element& xmlElement, XMLPort::Mode mode); 51 52 void scale(const Vector2& scale); 53 Vector2 getScale() const { return this->scale_; } 47 void XMLPort(Element& xmlElement, XMLPort::Mode mode); 54 48 55 49 static void toggleVisibility(const std::string& name); 56 50 static void scaleGroup(const std::string& name, float scale); 51 static void scrollGroup(const std::string& name, const Vector2& scroll); 52 static void rotateGroup(const std::string& name, Radian angle); 57 53 58 private: 59 OverlayGroup(const OverlayGroup& instance); 54 private: 55 void scale(const Vector2& scale) { this->setScale(scale * this->scale_); } 56 void setScale(const Vector2& scale); 57 Vector2 getScale() const { return this->scale_; } 58 59 void scroll(const Vector2& scroll) { this->setScroll(scroll + this->scroll_); } 60 void setScroll(const Vector2& scroll); 61 Vector2 getScroll() const { return this->scale_; } 60 62 61 63 void addElement(OrxonoxOverlay* element); … … 64 66 std::map<std::string, OrxonoxOverlay*> hudElements_; 65 67 Vector2 scale_; 68 Vector2 scroll_; 66 69 }; 67 70 }
Note: See TracChangeset
for help on using the changeset viewer.