Changeset 1295 for code/branches/hud3/src/orxonox/hud/RadarOverlayElement.h
- Timestamp:
- May 15, 2008, 7:59:37 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hud3/src/orxonox/hud/RadarOverlayElement.h
r1292 r1295 32 32 #include <OgreOverlayElement.h> 33 33 #include <OgrePanelOverlayElement.h> 34 34 #include <math.h> 35 #include <util/Math.h> 36 #include <string.h> 37 #include "core/Tickable.h" 35 38 #include <OgrePrerequisites.h> 36 39 #include "../OrxonoxPrereqs.h" … … 39 42 { 40 43 41 class _OrxonoxExport RadarOverlayElement : public Ogre::PanelOverlayElement 44 class _OrxonoxExport RadarOverlayElement : public Ogre::PanelOverlayElement, public Tickable 42 45 { 43 46 private: … … 45 48 PanelOverlayElement* point[100]; 46 49 47 int dirX_, dirY_, dirZ_; //flying direction 48 int ortX_, ortY_, ortZ_; //orthogonal direction 49 int dX_, dY_, dZ_; //distance between main ship and the object 50 int vecX_, vecY_, vecZ_; //vector product dir X ort 50 Vector3 initialDir; //initial direction 51 int dirX_, dirY_, dirZ_; //flying direction 52 int ortX_, ortY_, ortZ_; //orthogonal direction 53 int dX_, dY_, dZ_; //distance between main ship and the object 54 int vecX_, vecY_, vecZ_; //vector product dir X ort 51 55 double alpha_; //defines the radius in the radar 52 56 double beta_; //defines the angle in the radar 53 57 bool right_; //checks whether the object is on the right side (since cos is not bijective) 54 58 55 //static int ID = 0;59 // static int ID = 0; 56 60 57 61 public: … … 63 67 void initRadarOverlayElement(Real left, Real top, int dim, Ogre::OverlayContainer* container); 64 68 void setMainShipPosition(int dirX, int dirY, int dirZ, int ortX, int ortY, int ortZ); 65 69 void tick(float dt); 66 70 int newShip(int X, int Y, int Z); 67 71
Note: See TracChangeset
for help on using the changeset viewer.