Changeset 1615 for code/branches/hud/src/orxonox/overlays/OrxonoxOverlay.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/OrxonoxOverlay.h
r1614 r1615 42 42 { 43 43 public: 44 Ogre::Overlay* getOverlay() { return this->overlay_; }45 44 OrxonoxOverlay(); 46 45 virtual ~OrxonoxOverlay(); … … 70 69 71 70 /** Sets the rotation applied to this overlay.*/ 72 void setRotation(const Ogre::Radian& angle) { this->angle_ = angle; this->angleChanged(); }71 void setRotation(const Degree& angle) { this->angle_ = angle; this->angleChanged(); } 73 72 74 73 /** Gets the rotation applied to this overlay, in degrees.*/ … … 76 75 77 76 /** Adds the passed in angle to the rotation applied to this overlay. */ 78 void rotate(const Radian& angle) { this->angle_ += angle; this->angleChanged(); }77 void rotate(const Degree& angle) { this->angle_ += angle; this->angleChanged(); } 79 78 80 79 /** Sets the size of this overlay. */ … … 93 92 void scale(Vector2 scale) { this->size_ *= scale; this->sizeChanged(); } 94 93 94 static void scaleOverlay(const std::string& name, float scale); 95 static void scrollOverlay(const std::string& name, const Vector2& scroll); 96 static void rotateOverlay(const std::string& name, const Degree& angle); 97 95 98 protected: 96 99 virtual void changedVisibility(); … … 98 101 virtual void angleChanged(); 99 102 virtual void positionChanged(); 100 float getWindowAspectRatio() { return windowAspectRatio_; }103 virtual void sizeCorrectionChanged(); 101 104 102 105 void setBackgroundMaterial(const std::string& material); 103 std::stringgetBackgroundMaterial() const;106 const std::string& getBackgroundMaterial() const; 104 107 105 108 Ogre::Overlay* overlay_; 106 109 Ogre::PanelOverlayElement* background_; 107 108 private:109 void windowResized(int newWidth, int newHeight);110 111 110 float windowAspectRatio_; 112 111 bool bCorrectAspect_; … … 117 116 Vector2 origin_; 118 117 118 private: 119 void windowResized(int newWidth, int newHeight); 120 119 121 static unsigned int hudOverlayCounter_s; 122 static std::map<std::string, OrxonoxOverlay*> overlays_s; 120 123 }; 121 124 }
Note: See TracChangeset
for help on using the changeset viewer.