- Timestamp:
- Mar 15, 2011, 9:00:05 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/usability/src/modules/designtools/ScreenshotManager.cc
r8076 r8077 59 59 60 60 /** 61 * @brief Creates a screenshot with the given camera. 62 * @param camera Pointer to the camera "looking at" the scene of interest 63 * @param fileName the filename of the screenshot file. 64 */ 61 @brief 62 Creates a screenshot with the given camera. 63 @param camera 64 Pointer to the camera "looking at" the scene of interest 65 @param fileName 66 the filename of the screenshot file. 67 */ 65 68 void ScreenshotManager::makeScreenshot() const 66 69 { … … 153 156 } 154 157 158 /** 159 @brief 160 Set the size of the grid. 161 @param size 162 The size of the grid. 163 */ 164 void ScreenshotManager::setGridSize(unsigned int size) 165 { 166 if(size == this->mGridSize_) 167 return; 168 169 this->mGridSize_ = size; 170 // New PixelBox for the changed size. 171 uint8_t* data_ = new uint8_t[(this->mWindowWidth_ * this->mGridSize_) * (this->mWindowHeight_ * this->mGridSize_) * 3]; 172 this->mFinalPicturePB_ = Ogre::PixelBox(this->mWindowWidth_ * this->mGridSize_, this->mWindowHeight_ * this->mGridSize_, 1, Ogre::PF_B8G8R8, data_); 173 } 174 175 /** 176 @brief 177 Get a timestamp for the curent time instant. 178 @return 179 Returns a string with the timestamp. 180 */ 155 181 std::string ScreenshotManager::getTimestamp() 156 182 {
Note: See TracChangeset
for help on using the changeset viewer.