Changeset 6796
- Timestamp:
- Apr 27, 2010, 5:01:43 PM (15 years ago)
- Location:
- code/branches/hudelements/src/modules/overlays/hud
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hudelements/src/modules/overlays/hud/HUDNavigation.cc
r6502 r6796 30 30 31 31 #include <string> 32 #include <vector> 33 #include <map> 32 34 #include <OgreCamera.h> 33 35 #include <OgreOverlayManager.h> … … 83 85 // hide at first 84 86 this->setVisible(false); 87 88 85 89 } 86 90 … … 135 139 void HUDNavigation::tick(float dt) 136 140 { 141 142 137 143 SUPER(HUDNavigation, tick, dt); 138 144 … … 284 290 navText_->setCharHeight(navText_->getCharHeight() * yScale); 285 291 } 292 293 // map <WorldEntity*, pair <Ogre::PanelOverlayElement*, Ogre::TextAreaOverlayElement*> > ActiveObjectList; 294 295 // void updateActiveObjectMap(){ 296 // --> iteration durch die betsehende map über alle keys (Worldentity*) 297 // --> check: 'existiert noch' 'sizeChanged' 'angleChanged' 'positionChanged' 298 // --> update des aktuellen Objects (Panel & Text) 299 // --> lücke schliessen in der map (aufrücken nach links) 300 // --> neue objekte suchen 301 // -- map.add neue objekte hinzufügen (pair <panel, text> einfügen. 302 // } 303 304 305 286 306 } -
code/branches/hudelements/src/modules/overlays/hud/HUDNavigation.h
r6417 r6796 36 36 #include "overlays/OrxonoxOverlay.h" 37 37 38 #include <pair> 39 #include <vector> 40 38 41 namespace orxonox 39 42 { 43 class WorldEntity; 40 44 class _OverlaysExport HUDNavigation : public OrxonoxOverlay, public Tickable 41 45 { … … 46 50 virtual void XMLPort(Element& xmlElement, XMLPort::Mode mode); 47 51 virtual void tick(float dt); 52 53 virtual map <WorldEntity*, pair <Ogre::PanelOverlayElement*, Ogre::TextAreaOverlayElement*> > ActiveObjectList; 54 48 55 49 56 private: 50 void sizeChanged(); 57 58 void sizeChanged(); 51 59 void angleChanged() { } 52 60 void positionChanged() { } 61 62 53 63 54 64 // XMLPort accessors … … 70 80 void updateFocus(); 71 81 float getDist2Focus() const; 72 82 void getSingleton(); 83 void getSingleton(); 84 85 void updateActiveObjectMap(); 86 73 87 Ogre::PanelOverlayElement* navMarker_; //!< the panel used to show the arrow and the target marker 74 88 float navMarkerSize_; //!< One paramter size of the navigation marker … … 79 93 Ogre::TextAreaOverlayElement* navText_; //!< Text overlay to display the target distance 80 94 bool wasOutOfView_; //!< Performance booster variable: setMaterial is not cheap 95 96 81 97 }; 82 98 }
Note: See TracChangeset
for help on using the changeset viewer.