Changeset 6057
- Timestamp:
- Nov 13, 2009, 11:31:30 AM (15 years ago)
- Location:
- code/trunk/src/orxonox/overlays
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/overlays/OrxonoxOverlay.cc
r5980 r6057 359 359 (*it).second->rotate(angle); 360 360 } 361 362 void OrxonoxOverlay::setOverlayGroup(OverlayGroup* group) 363 { 364 if (group != this->group_) 365 { 366 if (this->group_) 367 this->group_->removeElement(this); 368 this->group_ = group; 369 this->changedOverlayGroup(); 370 } 371 } 361 372 } -
code/trunk/src/orxonox/overlays/OrxonoxOverlay.h
r6056 r6057 43 43 #include "core/BaseObject.h" 44 44 #include "core/WindowEventListener.h" 45 #include "OverlayGroup.h"46 45 47 46 namespace orxonox … … 170 169 virtual void changedOwner() {} 171 170 172 inline void setOverlayGroup(OverlayGroup* group) 173 { 174 if (group != this->group_) 175 { 176 if(this->group_) 177 this->group_->removeElement(this); 178 this->group_ = group; 179 this->changedOverlayGroup(); 180 } 181 } 171 void setOverlayGroup(OverlayGroup* group); 182 172 inline OverlayGroup* getOverlayGroup() const 183 173 { return this->group_; }
Note: See TracChangeset
for help on using the changeset viewer.