Changeset 1613 for code/branches/hud/src/orxonox/overlays/hud/HUDRadar.h
- Timestamp:
- Jun 20, 2008, 12:05:12 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hud/src/orxonox/overlays/hud/HUDRadar.h
r1609 r1613 92 92 93 93 94 class _OrxonoxExport HUDRadar : public OrxonoxOverlay, public Tickable, public RadarListener94 class _OrxonoxExport HUDRadar : public OrxonoxOverlay, public RadarListener//, public Tickable 95 95 { 96 96 public: … … 100 100 void XMLPort(Element& xmlElement, XMLPort::Mode mode); 101 101 102 void addShape(RadarShape* shape);103 RadarShape* getShape(unsigned int index) const; 102 /*void addShape(RadarShape* shape); 103 RadarShape* getShape(unsigned int index) const;*/ 104 104 105 void tick(float dt); 105 float getRadarSensitivity() const { return this->sensitivity_; } 106 void setRadarSensitivity(float sensitivity) { this->sensitivity_ = sensitivity; } 106 107 107 void listObjects(); 108 float getHalfDotSizeDistance() const { return this->halfDotSizeDistance_; } 109 void setHalfDotSizeDistance(float distance) { this->halfDotSizeDistance_ = distance; } 110 111 float getMaximumDotSize() const { return this->maximumDotSize_; } 112 void setMaximumDotSize(float size) { this->maximumDotSize_ = size; } 113 114 //void tick(float dt); 115 116 //void listObjects(); 108 117 109 118 private: 110 void addColour(RadarColour* colour); 111 RadarColour* getColour(unsigned int index) const; 119 void displayObject(RadarViewable* viewable, bool bIsMarked); 120 void hideMarker() { this->marker_->hide(); } 121 float getRadarSensitivity() { return 1.0f; } 122 void radarTick(float dt); 112 123 113 std::map<unsigned int, std::string> materialNames_; 114 std::map<unsigned int, RadarColour*> colours_; 115 std::map<unsigned int, RadarShape*> shapes_; 124 std::map<RadarViewable::Shape, std::string> shapeMaterials_; 116 125 117 126 Ogre::PanelOverlayElement* background_; 118 127 std::map<RadarViewable*, Ogre::PanelOverlayElement*> radarDots_; 128 Ogre::PanelOverlayElement* marker_; 129 130 float halfDotSizeDistance_; 131 float maximumDotSize_; 132 133 float sensitivity_; 119 134 }; 120 135 }
Note: See TracChangeset
for help on using the changeset viewer.