Changeset 4453 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Jun 1, 2005, 11:22:18 PM (20 years ago)
- Location:
- orxonox/trunk/src/glmenu
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/glmenu/glmenu_imagescreen.cc
r4357 r4453 47 47 \brief Loads a GLMenu from an inputElement 48 48 \param root The Element to load the GLMenu from 49 50 Tags are:51 \li BackgroundImage STRING: the background Image52 \li BarImage: STRING: the Image on the Bar53 \li BackgroundPS: FLOAT FLOAT FLOAT FLOAT: posX posY scaleX scaleY54 \li BarPS: FLOAT FLOAT FLOAT FLOAT: posX posY scaleX scaleY55 \li ElementCount: INT: how many elements will be loaded56 49 */ 57 50 void GLMenuImageScreen::loadParams(const TiXmlElement* root) … … 103 96 /** 104 97 \brief sets the background image name 105 \param file name of the backgroun-image98 \param backImageName name of the backgroun-image 106 99 */ 107 100 void GLMenuImageScreen::setBackgroundImage (const char* backImageName) … … 110 103 } 111 104 112 113 105 /** 114 106 \brief sets position of the ImageScreen 115 \param xoffset from the top left corner in percent(0-1) of the screensize116 \param yoffset from the top left corner in percent(0-1) of the screensize107 \param offsetX offset from the top left corner in percent(0-1) of the screensize 108 \param offsetY offset from the top left corner in percent(0-1) of the screensize 117 109 */ 118 110 void GLMenuImageScreen::setPosition(float offsetX, float offsetY) … … 122 114 } 123 115 124 125 /* 116 /** 126 117 \brief sets size of the ImageScreen 127 118 \param scaleX the scaleing of the image into the x-direction (in percent (0-1)) … … 134 125 } 135 126 136 /* 127 /** 137 128 \brief sets position and size of the ImageScreen 138 \param xoffset from the top left corner in percent(0-1) of the screensize139 \param yoffset from the top left corner in percent(0-1) of the screensize129 \param offsetX offset from the top left corner in percent(0-1) of the screensize 130 \param offsetY offset from the top left corner in percent(0-1) of the screensize 140 131 \param scaleX the scaleing of the image into the x-direction (in percent (0-1)) 141 132 \param scaleY the scaleing of the image into the y-direction (in percent (0-1)) … … 173 164 /** 174 165 \brief set the maximum of countable steps 175 \param max imumof steps166 \param maxValue of steps 176 167 */ 177 168 void GLMenuImageScreen::setMaximum(int maxValue) … … 180 171 } 181 172 182 183 /**184 \brief gets the maximum of countable steps185 */186 int GLMenuImageScreen::getMaximum()187 {188 return this->maxValue;189 }190 191 192 173 /** 193 174 \brief set current value 194 \param current value175 \param currentValue value to set 195 176 */ 196 177 void GLMenuImageScreen::setValue(int currentValue) -
orxonox/trunk/src/glmenu/glmenu_imagescreen.h
r4451 r4453 1 1 /*! 2 \file glmenu_imagescreen 3 \brief class to display a image2 \file glmenu_imagescreen.h 3 \brief class to display a LoadScreen 4 4 */ 5 6 5 7 6 #ifndef _GLMENU_IMAGESCREEN_H … … 13 12 class TiXmlElement; 14 13 14 //! A class to display a loadScreen 15 15 class GLMenuImageScreen : public BaseObject { 16 16 … … 34 34 35 35 void setMaximum (int maxValue); 36 int getMaximum (); 36 /** \returns the maximum of countable steps*/ 37 inline int GLMenuImageScreen::getMaximum(void) const { return this->maxValue; }; 38 37 39 void setValue (int currentValue); 38 40 int getValue (); … … 41 43 42 44 private: 43 char* backImageName; //!< the name of the file of the background image 44 float scaleX, scaleY; //!< hight and width of the image 45 float offsetX, offsetY; //!< offset of the image from left and up 46 Material* backMat; //!< Background Material. 47 float barX, barY, barW, barH; //!< Position and Scale of the bar. 48 Material* barMat; //!< A Material for the Loading-Bar 45 // background image 46 char* backImageName; //!< the name of the file of the background image 47 float offsetX; //!< X-offset of the the image from the left 48 float offsetY; //!< Y-offset of the image from the top 49 float scaleX; //!< width of the image 50 float scaleY; //!< height of the image 51 Material* backMat; //!< Background Material. 52 53 // Load-Bar 54 float barX; //!< X-position of the Bar 55 float barY; //!< Y-position of the Bar 56 float barW; //!< Width of the Bat 57 float barH; //!< Height of the Bar. 58 Material* barMat; //!< A Material for the Loading-Bar 49 59 50 60 /* progress bar values */ 51 int currentValue;//!< the current count of step() calls fired yet52 int maxValue;//!< total count of steps61 int currentValue; //!< the current count of step() calls fired yet 62 int maxValue; //!< total count of steps 53 63 54 64 };
Note: See TracChangeset
for help on using the changeset viewer.