- Timestamp:
- Jun 22, 2008, 12:06:55 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hud/src/orxonox/overlays/hud/HUDNavigation.h
r1614 r1615 39 39 class _OrxonoxExport HUDNavigation : public OrxonoxOverlay, public Tickable 40 40 { 41 41 public: 42 42 HUDNavigation(); 43 43 ~HUDNavigation(); … … 45 45 void XMLPort(Element& xmlElement, XMLPort::Mode mode); 46 46 47 void tick(float dt); 48 49 float getDist2Focus() const; 50 51 protected: 47 private: 52 48 void sizeChanged(); 53 49 void angleChanged() { } 54 50 void positionChanged() { } 55 51 56 private: 57 HUDNavigation(HUDNavigation& instance); 52 void tick(float dt); 53 54 // XMLPort accessors 55 void setNavMarkerSize(float size) { this->navMarkerSize_ = size; } 56 float getNavMarkerSize() const { return this->navMarkerSize_; } 57 58 void setAimMarkerSize(float size) { this->aimMarkerSize_ = size; } 59 float getAimMarkerSize() const { return this->aimMarkerSize_; } 60 61 void setTextSize(float size); 62 float getTextSize() const; 63 64 void setFont(const std::string& font); 65 const std::string& getFont() const; 66 58 67 void updateMarker(); 59 68 void updateFocus(); 69 float getDist2Focus() const; 60 70 61 // XMLPort accessors62 void setNavMarkerSize(float size);63 float getNavMarkerSize() const;64 void setAimMarkerSize(float size);65 float getAimMarkerSize() const;66 void setTextSize(float size);67 float getTextSize() const;68 void setFont(const std::string& font);69 std::string getFont() const;70 71 Ogre::OverlayContainer* container_; //!< Container that holds the navigation elements72 71 Ogre::PanelOverlayElement* navMarker_; //!< the panel used to show the arrow and the target marker 73 72 float navMarkerSize_; //!< One paramter size of the navigation marker … … 76 75 Ogre::TextAreaOverlayElement* navText_; //!< Text overlay to display the target distance 77 76 bool wasOutOfView_; //!< Performance booster variable: setMaterial is not cheap 78 };77 }; 79 78 } 80 79
Note: See TracChangeset
for help on using the changeset viewer.