Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 12, 2008, 12:57:45 AM (16 years ago)
Author:
rgrieder
Message:

svn save, just in case our house burns down over night…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hud/src/orxonox/hud/Navigation.h

    r1580 r1590  
    2323 *      Felix Schulthess
    2424 *   Co-authors:
    25  *      ...
     25 *      Reto Grieder
    2626 *
    2727 */
     
    3535#include <OgreTextAreaOverlayElement.h>
    3636#include <OgrePanelOverlayElement.h>
     37#include "HUDOverlay.h"
     38#include "util/Math.h"
    3739
    3840namespace orxonox
    3941{
    40     class _OrxonoxExport Navigation
     42    class _OrxonoxExport Navigation : public HUDOverlay, public Tickable
    4143    {
    4244      public:
    43         Navigation(Ogre::OverlayContainer* container);
    44         ~Navigation();
     45        Navigation();
     46        virtual ~Navigation();
    4547
    46         void update();
     48        virtual void XMLPort(Element& xmlElement, XMLPort::Mode mode);
     49
     50        virtual void tick(float dt);
     51
    4752        void cycleFocus();
    4853        float getDist2Focus() const;
     
    5257        void releaseFocus();
    5358
     59    protected:
     60      virtual void windowResized(int newWidth, int newHeight);
     61
    5462      private:
    5563        void init();
     
    5765        void updateFocus();
    5866
    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
    6077        Ogre::PanelOverlayElement* navMarker_;      // the panel used to show the arrow
    6178        Ogre::PanelOverlayElement* aimMarker_;
     
    6380        std::list<RadarObject*>::iterator it_;
    6481        RadarObject* focus_;                        // next pointer of linked list
     82        bool wasOutOfView_;
    6583  };
    6684}
Note: See TracChangeset for help on using the changeset viewer.