- Timestamp:
- May 24, 2008, 1:39:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/hud/RadarOverlayElement.h
r1362 r1406 29 29 #define _RADAR_H__ 30 30 31 #include <string.h> 32 #include <OgreOverlayManager.h> 33 #include <OgreStringConverter.h> 34 #include <OgreOverlayElement.h> 35 #include <OgrePanelOverlayElement.h> 31 #include <util/Math.h> 36 32 #include <OgrePrerequisites.h> 37 38 #include <util/Math.h>39 #include <string.h>40 #include "core/Tickable.h"41 #include "core/ConsoleCommand.h"42 #include "objects/SpaceShip.h"43 33 #include "../OrxonoxPrereqs.h" 44 34 #include "RadarObject.h" 45 #include "GraphicsEngine.h"46 35 47 36 namespace orxonox … … 52 41 Ogre::OverlayManager* om; // our one and only overlay manager 53 42 Ogre::OverlayContainer* container_; // pointer to the container we're in 54 Vector3 initialDir_; // direction of nose55 43 Vector3 currentDir_; 56 Vector3 initialOrth_; // direction of normal57 44 Vector3 currentOrth_; 58 45 Vector3 shipPos_; // position of ship 59 Ogre::Plane plane; // plane perpendicular to dir60 46 61 47 Ogre::Real leftRel_, topRel_, dimRel_; // relative position/dimension … … 69 55 void resize(); 70 56 void update(); 71 void updateNavMarker();72 void addObject(Vector3 pos);73 57 void listObjects(); 74 float getDist2Focus();75 float calcRadius(RadarObject* obj);76 float calcPhi(RadarObject* obj);77 bool calcRight(RadarObject* obj);78 58 79 Ogre::PanelOverlayElement* navMarker_; // marker to help navigating 80 RadarObject* firstRadarObject_; // start of linked list 81 RadarObject* lastRadarObject_; // end of linked list 82 RadarObject* focus_; // object that is focussed 83 84 static RadarOverlayElement* instance_s; 85 static void cycleFocus(); 59 static float calcRadius(Vector3 pos, Vector3 dir, Vector3 orth, RadarObject* obj); 60 static float calcPhi(Vector3 pos, Vector3 dir, Vector3 orth, RadarObject* obj); 61 static bool calcRight(Vector3 pos, Vector3 dir, Vector3 orth, RadarObject* obj); 86 62 }; 87 63 }
Note: See TracChangeset
for help on using the changeset viewer.