Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 9, 2011, 7:45:14 PM (13 years ago)
Author:
landauf
Message:

added "scale" for radar viewables. scale is relative, 1.0 means "normal".
rocket and simple rocket are now visible on the radar as small triangles.
greatly reduced lifetime of simple rocket.
fixed another possible cause for flashing hud radar.

Location:
code/trunk/src/orxonox/interfaces
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/interfaces/RadarViewable.cc

    r7163 r8738  
    5050        , radarObjectShape_(Dot)
    5151        , radarObjectDescription_("staticObject")
     52        , scale_(1.0f)
    5253    {
    5354        RegisterRootObject(RadarViewable);
  • code/trunk/src/orxonox/interfaces/RadarViewable.h

    r7163 r8738  
    113113        inline Shape getRadarObjectShape() const
    114114            { return this->radarObjectShape_; }
     115
     116        inline void setRadarObjectScale(float scale)
     117            {
     118                if(this->scale_ != scale)
     119                {
     120                    this->scale_ = scale;
     121                    this->settingsChanged();
     122                }
     123            }
     124        inline float getRadarObjectScale() const
     125            { return this->scale_; }
     126
    115127        void settingsChanged();
    116128
     
    139151        std::string radarObjectDescription_;
    140152        ColourValue radarObjectColour_;
    141 
     153        float scale_;
    142154    };
    143155}
Note: See TracChangeset for help on using the changeset viewer.