Changeset 1564 for code/trunk/src/orxonox/hud/Navigation.h
- Timestamp:
- Jun 8, 2008, 5:46:52 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/hud/Navigation.h
r1505 r1564 35 35 #include <OgreTextAreaOverlayElement.h> 36 36 #include <OgrePanelOverlayElement.h> 37 #include "util/Math.h"38 37 39 38 namespace orxonox 40 39 { 41 42 40 class _OrxonoxExport Navigation 43 41 { 44 private:45 Ogre::OverlayManager* om; // our one and only overlay manager46 Ogre::OverlayContainer* container_;47 Ogre::PanelOverlayElement* navMarker_; // the panel used to show the arrow48 Ogre::TextAreaOverlayElement* navText_; // displaying distance49 Ogre::Camera* navCam_;50 Vector3 navCamPos_; // position of ship51 Vector3 currentDir_;52 Vector3 currentOrth_;53 std::set<RadarObject*>::iterator it_;54 int windowW_, windowH_;55 void init();56 void updateMarker();57 58 42 public: 59 43 Navigation(Ogre::OverlayContainer* container); 60 44 Navigation(Ogre::OverlayContainer* container, RadarObject* focus); 61 45 ~Navigation(); 62 RadarObject* focus_; // next pointer of linked list63 46 64 47 void update(); 65 48 void cycleFocus(); 66 float getDist2Focus(); 49 float getDist2Focus() const; 50 51 inline RadarObject* getFocus() const 52 { return this->focus_; } 53 inline void setFocus(RadarObject* object) 54 { this->focus_ = object; this->updateFocus(); } 55 56 private: 57 void init(); 58 void updateMarker(); 59 void updateFocus(); 60 61 Ogre::OverlayContainer* container_; 62 Ogre::PanelOverlayElement* navMarker_; // the panel used to show the arrow 63 Ogre::PanelOverlayElement* aimMarker_; 64 Ogre::TextAreaOverlayElement* navText_; // displaying distance 65 std::list<RadarObject*>::iterator it_; 66 RadarObject* focus_; // next pointer of linked list 67 67 }; 68 68 }
Note: See TracChangeset
for help on using the changeset viewer.