Changeset 1590 for code/branches/hud/src/orxonox/hud/Navigation.h
- Timestamp:
- Jun 12, 2008, 12:57:45 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hud/src/orxonox/hud/Navigation.h
r1580 r1590 23 23 * Felix Schulthess 24 24 * Co-authors: 25 * ...25 * Reto Grieder 26 26 * 27 27 */ … … 35 35 #include <OgreTextAreaOverlayElement.h> 36 36 #include <OgrePanelOverlayElement.h> 37 #include "HUDOverlay.h" 38 #include "util/Math.h" 37 39 38 40 namespace orxonox 39 41 { 40 class _OrxonoxExport Navigation 42 class _OrxonoxExport Navigation : public HUDOverlay, public Tickable 41 43 { 42 44 public: 43 Navigation( Ogre::OverlayContainer* container);44 ~Navigation();45 Navigation(); 46 virtual ~Navigation(); 45 47 46 void update(); 48 virtual void XMLPort(Element& xmlElement, XMLPort::Mode mode); 49 50 virtual void tick(float dt); 51 47 52 void cycleFocus(); 48 53 float getDist2Focus() const; … … 52 57 void releaseFocus(); 53 58 59 protected: 60 virtual void windowResized(int newWidth, int newHeight); 61 54 62 private: 55 63 void init(); … … 57 65 void updateFocus(); 58 66 59 Ogre::OverlayContainer* container_; 67 void setNavMarkerSize(Vector2 size); 68 Vector2 getNavMarkerSize() const; 69 void setAimMarkerSize(Vector2 size); 70 Vector2 getAimMarkerSize() const; 71 void setTextSize(float size); 72 float getTextSize() const; 73 void setFont(const std::string& font); 74 std::string getFont() const; 75 76 Ogre::OverlayContainer* container_; //!< Container that holds the navigation elements 60 77 Ogre::PanelOverlayElement* navMarker_; // the panel used to show the arrow 61 78 Ogre::PanelOverlayElement* aimMarker_; … … 63 80 std::list<RadarObject*>::iterator it_; 64 81 RadarObject* focus_; // next pointer of linked list 82 bool wasOutOfView_; 65 83 }; 66 84 }
Note: See TracChangeset
for help on using the changeset viewer.