- Timestamp:
- May 24, 2008, 3:38:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/hud/RadarOverlayElement.h
r1408 r1410 26 26 */ 27 27 28 #ifndef _R ADAR_H__29 #define _R ADAR_H__28 #ifndef _RadarOverlayElement_H__ 29 #define _RadarOverlayElement_H__ 30 30 31 #include <util/Math.h> 31 #include "OrxonoxPrereqs.h" 32 32 33 #include <OgrePrerequisites.h> 33 34 #include <OgrePanelOverlayElement.h> 34 #include "../OrxonoxPrereqs.h" 35 #include "RadarObject.h" 35 #include "util/Math.h" 36 36 37 37 namespace orxonox … … 39 39 class _OrxonoxExport RadarOverlayElement : public Ogre::PanelOverlayElement 40 40 { 41 42 43 44 45 46 41 private: 42 Ogre::OverlayManager* om; // our one and only overlay manager 43 Ogre::OverlayContainer* container_; // pointer to the container we're in 44 Vector3 currentDir_; 45 Vector3 currentOrth_; 46 Vector3 shipPos_; // position of ship 47 47 48 49 50 int windowW_, windowH_;// absolute window dimensions48 Ogre::Real leftRel_, topRel_, dimRel_; // relative position/dimension 49 int left_, top_, dim_; // absolute position/dimension 50 int windowW_, windowH_; // absolute window dimensions 51 51 52 53 54 55 56 57 58 52 public: 53 RadarOverlayElement(const Ogre::String& name); 54 ~RadarOverlayElement(); 55 void init(Real leftRel, Real topRel, Real dimRel, Ogre::OverlayContainer* container); 56 void resize(); 57 void update(); 58 void listObjects(); 59 59 60 61 62 63 60 static float calcRadius(Vector3 pos, Vector3 dir, Vector3 orth, RadarObject* obj); 61 static float calcPhi(Vector3 pos, Vector3 dir, Vector3 orth, RadarObject* obj); 62 static bool calcRight(Vector3 pos, Vector3 dir, Vector3 orth, RadarObject* obj); 63 }; 64 64 } 65 65 66 #endif 66 #endif /* _RadarOverlayElement_H__ */
Note: See TracChangeset
for help on using the changeset viewer.