Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9835 for code/branches


Ignore:
Timestamp:
Dec 2, 2013, 1:12:06 PM (11 years ago)
Author:
wroennin
Message:

added XML port and variable mapAngle_

Location:
code/branches/radarDreiD
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/radarDreiD/data/overlays/HUDTemplates3.oxo

    r9824 r9835  
    126126 
    127127    <HUDRadar
    128      name          = "Radar"
    129      background    = "Orxonox/Radar3D"
    130      material2D    = "Orxonox/Radar"
    131      material3Dmiddle    = "Orxonox/Radar3D"
    132      correctaspect = true
    133      size          = "0.17, 0.17"
    134      position      = "1.0, 1.0"
    135      pickpoint     = "1.0, 1.0"
    136      rotation      = 0
    137      sensitivity   = 1.0
    138      halfDotSizeDistance = 3000
    139      maximumDotSize = 0.1
    140      maximumDotSize3D      = 0.07
     128     name                               = "Radar"
     129     background                         = "Orxonox/Radar3D"
     130     material2D                         = "Orxonox/Radar"
     131     material3Dmiddle           = "Orxonox/Radar3D"
     132     correctaspect                      = true
     133     size                               = "0.17, 0.17"
     134     position                           = "1.0, 1.0"
     135     pickpoint                          = "1.0, 1.0"
     136     rotation                           = 0
     137     sensitivity                        = 1.0
     138     halfDotSizeDistance        = 3000
     139     maximumDotSize             = 0.1
     140     maximumDotSize3D           = 0.07
     141     mapAngle3D                         = 0.6435011
    141142    />
    142143   
  • code/branches/radarDreiD/src/modules/overlays/hud/HUDRadar.cc

    r9824 r9835  
    102102        XMLPortParam(HUDRadar, "Material2D", set2DMaterial, get2DMaterial, xmlelement, mode);
    103103        XMLPortParam(HUDRadar, "Material3Dmiddle", set3DMaterial, get3DMaterial, xmlelement, mode);
     104        XMLPortParam(HUDRadar, "mapAngle3D", setMapAngle, getMapAngle, xmlelement, mode);
    104105
    105106
     
    211212
    212213                // set zOrder on screen
    213                 bool overXZPlain = isObjectHigherThanShipOnMap(this->owner_->getPosition(), this->owner_->getOrientation() * WorldEntity::FRONT, this->owner_->getOrientation() * WorldEntity::UP, wePointer->getWorldPosition(), 0.6435011);
     214                bool overXZPlain = isObjectHigherThanShipOnMap(this->owner_->getPosition(), this->owner_->getOrientation() * WorldEntity::FRONT, this->owner_->getOrientation() * WorldEntity::UP, wePointer->getWorldPosition(), this->mapAngle_);
    214215
    215216                if(overXZPlain == false && (it->second->getZOrder() >  100 * this->overlay_->getZOrder())) // it appears that zOrder of attached Overlayelements is 100 times the zOrder of the Overlay
  • code/branches/radarDreiD/src/modules/overlays/hud/HUDRadar.h

    r9818 r9835  
    8080        void setRadarSensitivity(float sensitivity) { this->sensitivity_ = sensitivity; }
    8181
     82        // Determines angle between line of sight and x/z-plain on the 3D minimap
     83        float getMapAngle() const { return this->mapAngle_; }
     84        void setMapAngle(float mapAngle) { this->mapAngle_ = mapAngle; }
     85
    8286        // RadarListener interface
    8387        virtual void addObject(RadarViewable* viewable);
     
    101105        float maximumDotSize_;
    102106        float maximumDotSize3D_;
     107        float mapAngle_;
    103108
    104109        std::string material2D_;
Note: See TracChangeset for help on using the changeset viewer.