- Timestamp:
- Dec 10, 2008, 3:37:48 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy2/src/orxonox/overlays/OrxonoxOverlay.cc
r2256 r2369 62 62 63 63 this->owner_ = 0; 64 this->group_ = 0; 64 65 65 66 if (!Core::showsGraphics()) 66 67 ThrowException(NoGraphics, "Can't create OrxonoxOverlay, graphics engine not initialized"); 67 68 // add this overlay to the static map of OrxonoxOverlays69 if (overlays_s.find(this->getName()) != overlays_s.end())70 {71 COUT(1) << "Overlay names should be unique or you cannnot access them via console. Name: \"" << this->getName() << "\"" << std::endl;72 }73 overlays_s[this->getName()] = this;74 68 75 69 // create the Ogre::Overlay … … 132 126 133 127 XMLPortParam(OrxonoxOverlay, "size", setSize, getSize, xmlElement, mode); 134 XMLPortParam(OrxonoxOverlay, "pick Point", setPickPoint, getPickPoint, xmlElement, mode);128 XMLPortParam(OrxonoxOverlay, "pickpoint", setPickPoint, getPickPoint, xmlElement, mode); 135 129 XMLPortParam(OrxonoxOverlay, "position", setPosition, getPosition, xmlElement, mode); 136 130 XMLPortParam(OrxonoxOverlay, "rotation", setRotation, getRotation, xmlElement, mode); 137 XMLPortParam(OrxonoxOverlay, "correct Aspect", setAspectCorrection, getAspectCorrection, xmlElement, mode);131 XMLPortParam(OrxonoxOverlay, "correctaspect", setAspectCorrection, getAspectCorrection, xmlElement, mode); 138 132 XMLPortParam(OrxonoxOverlay, "background", setBackgroundMaterial, getBackgroundMaterial, xmlElement, mode); 139 133 } … … 141 135 void OrxonoxOverlay::changedName() 142 136 { 137 SUPER(OrxonoxOverlay, changedName); 138 143 139 OrxonoxOverlay::overlays_s.erase(this->getOldName()); 144 140
Note: See TracChangeset
for help on using the changeset viewer.