Changeset 1564 for code/trunk/src/orxonox/hud/RadarOverlayElement.h
- Timestamp:
- Jun 8, 2008, 5:46:52 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/hud/RadarOverlayElement.h
r1505 r1564 40 40 class _OrxonoxExport RadarOverlayElement : public Ogre::PanelOverlayElement 41 41 { 42 private:43 Ogre::OverlayManager* om; // our one and only overlay manager44 Ogre::OverlayContainer* container_; // pointer to the container we're in45 Vector3 currentDir_;46 Vector3 currentOrth_;47 Vector3 shipPos_; // position of ship48 49 Ogre::Real leftRel_, topRel_, dimRel_; // relative position/dimension50 int left_, top_, dim_; // absolute position/dimension51 int windowW_, windowH_; // absolute window dimensions52 53 42 public: 54 43 RadarOverlayElement(const Ogre::String& name); … … 57 46 void resize(); 58 47 void update(); 59 void listObjects() ;48 void listObjects() const; 60 49 61 static float calcRadius(Vector3 pos, Vector3 dir, Vector3 orth, RadarObject* obj);62 static float calcPhi(Vector3 pos, Vector3 dir, Vector3 orth, RadarObject* obj);63 static bool calcRight(Vector3 pos, Vector3 dir, Vector3 orth, RadarObject* obj);50 private: 51 Ogre::Real leftRel_, topRel_, dimRel_; // relative position/dimension 52 int left_, top_, dim_; // absolute position/dimension 64 53 }; 65 54 }
Note: See TracChangeset
for help on using the changeset viewer.