Changeset 1410 for code/branches/network/src/orxonox/hud/RadarObject.cc
- Timestamp:
- May 24, 2008, 3:38:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/hud/RadarObject.cc
r1408 r1410 29 29 #include "RadarObject.h" 30 30 31 #include <string.h>32 31 #include <OgreOverlayManager.h> 33 32 #include <OgreStringConverter.h> … … 37 36 using namespace Ogre; 38 37 39 38 int RadarObject::count = 0; // initialize static variable 40 39 41 42 43 44 45 40 RadarObject::RadarObject(OverlayContainer* container){ 41 container_ = container; 42 pos_ = Vector3(0.0, 0.0, 0.0); 43 init(); 44 } 46 45 47 48 49 50 51 46 RadarObject::RadarObject(OverlayContainer* container, Vector3 pos){ 47 container_ = container; 48 pos_ = pos; 49 init(); 50 } 52 51 53 52 RadarObject::~RadarObject(){} 54 53 55 56 57 58 59 60 61 54 void RadarObject::init(){ 55 next = NULL; 56 om = &OverlayManager::getSingleton(); 57 panel_ = static_cast<PanelOverlayElement*>(om->createOverlayElement("Panel", 58 "Object"+StringConverter::toString(count))); 59 panel_->setMaterialName("Orxonox/RedDot"); 60 panel_->setDimensions(3,3); 62 61 panel_->setMetricsMode(Ogre::GMM_PIXELS); 63 62 panel_->show(); … … 65 64 count++; 66 65 container_->addChild(panel_); 67 66 } 68 67 }
Note: See TracChangeset
for help on using the changeset viewer.