Changeset 1339 for code/branches/hud3/src/orxonox/hud/RadarOverlayElement.h
- Timestamp:
- May 20, 2008, 11:51:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hud3/src/orxonox/hud/RadarOverlayElement.h
r1335 r1339 46 46 Ogre::OverlayManager* om; // our one and only overlay manager 47 47 void init(); 48 48 49 49 public: 50 50 RadarObject(Ogre::OverlayContainer* container); 51 51 RadarObject(Ogre::OverlayContainer* container, Vector3 pos); 52 52 ~RadarObject(); 53 53 54 bool right_; 54 55 Vector3 pos_; // position in space 55 56 Ogre::Real radius_, phi_; // position on radar 56 bool right_;57 57 Ogre::OverlayContainer* container_; 58 58 Ogre::PanelOverlayElement* panel_; // the panel used to show the dot 59 59 RadarObject* next; // next pointer of linked list 60 60 61 static int count; 61 62 }; … … 67 68 Ogre::OverlayContainer* container_; 68 69 Vector3 initialDir_; // direction of nose 69 Vector3 currentDir_; 70 Vector3 currentDir_; 70 71 Vector3 initialOrth_; // direction of normal 71 72 Vector3 currentOrth_; 72 73 Vector3 shipPos_; // position of ship 73 74 RadarObject* tomato_; 75 74 75 RadarObject* firstRadarObject_; // start of linked list 76 RadarObject* lastRadarObject_; // end of linked list 77 76 78 Ogre::Real leftRel_, topRel_, dimRel_; // relative position/dimension 77 79 int left_, top_, dim_; // absolute position/dimension … … 82 84 ~RadarOverlayElement(); 83 85 void init(Real leftRel, Real topRel, Real dimRel, Ogre::OverlayContainer* container); 84 void resize(); 86 void resize(); 85 87 void update(); 86 88 void addObject(Vector3 pos); 89 void listObjects(); 90 float calcRadius(RadarObject* obj); 91 float calcPhi(RadarObject* obj); 92 bool calcRight(RadarObject* obj); 87 93 }; 88 94 }
Note: See TracChangeset
for help on using the changeset viewer.