Inherited by Eaagles::Simulation::AirVehicle, Eaagles::Simulation::Building, Eaagles::Simulation::GroundVehicle, Eaagles::Simulation::LifeForm, and Eaagles::Simulation::Weapon.
Inheritance diagram for Eaagles::Simulation::Player:


Public Types | |
| enum | Mode { display, input, INACTIVE, ACTIVE, KILLED, CRASHED, DETONATED, LAUNCHED, PRERELEASE, DELETE_REQUEST } |
| enum | MajorType { GENERIC = 0x01, AIR_VEHICLE = 0x02, GROUND_VEHICLE = 0x04, WEAPON = 0x08, SHIP = 0x10, BUILDING = 0x20, LIFE_FORM = 0x40 } |
| enum | Side { BLUE = 0x01, RED = 0x02, YELLOW = 0x04, CYAN = 0x08, GRAY = 0x10, WHITE = 0x20 } |
| enum | DeadReckoning { OTHER_DRM, STATIC_DRM, FPW_DRM, RPW_DRM, RVW_DRM, FVW_DRM, FPB_DRM, RPB_DRM, RVB_DRM, FVB_DRM } |
| enum | { IROLL, IPITCH, IYAW } |
| enum | { INORTH, IEAST, IDOWN } |
Public Member Functions | |
| Player () | |
| bool | isName (const Basic::LcString *const tst) const |
| bool | isName (const char *const tst) const |
| const Basic::LcString * | getName () const |
| virtual void | setName (const Basic::LcString &newName) |
| virtual void | setName (const char *const newName) |
| bool | isID (const unsigned short tst) const |
| unsigned short | getID () const |
| virtual void | setID (const unsigned short newId) |
| bool | isSide (const unsigned int tst) const |
| bool | isNotSide (const unsigned int tst) const |
| Side | getSide () const |
| virtual void | setSide (const Side newSide) |
| bool | isMajorType (const unsigned int tst) const |
| virtual MajorType | getMajorType () const |
| const Basic::LcString * | getType () const |
| virtual bool | setType (Basic::LcString *const newTypeString) |
| bool | isNetworkedPlayer () const |
| bool | isLocalPlayer () const |
| int | getNetworkID () const |
| Nib * | getNib () |
| const Nib * | getNib () const |
| virtual bool | setNib (Nib *const n) |
| bool | isJustKilled () const |
| void | resetJustKilled () |
| int | killedByPlayerID () const |
| Mode | getMode () const |
| bool | isActive () const |
| bool | isKilled () const |
| bool | isCrashed () const |
| bool | isDetonated () const |
| bool | isInactive () const |
| bool | isMode (const Mode tst) const |
| bool | isNotMode (const Mode tst) const |
| bool | isDead () const |
| virtual void | setMode (const Mode newMode) |
| virtual void | setInitMode (const Mode newMode) |
| LCreal | getRoll () const |
| LCreal | getRollR () const |
| LCreal | getRollD () const |
| LCreal | getSinRoll () const |
| LCreal | getCosRoll () const |
| LCreal | getPitch () const |
| LCreal | getPitchR () const |
| LCreal | getPitchD () const |
| LCreal | getSinPitch () const |
| LCreal | getCosPitch () const |
| LCreal | getHeading () const |
| LCreal | getHeadingR () const |
| LCreal | getHeadingD () const |
| LCreal | getSinHeading () const |
| LCreal | getCosHeading () const |
| const osg::Vec3 & | getEulerAngles () const |
| const osg::Vec3 & | getEulerRates () const |
| const osg::Vec3 & | getAngularVelocities () const |
| const osg::Quat & | getQuaternions () const |
| const osg::Matrix & | getRotationalMatrix () const |
| const osg::Vec3 & | getInitPosition () const |
| const osg::Vec3 & | getPosition () const |
| LCreal | getXPosition () const |
| LCreal | getYPosition () const |
| double | getLatitude () const |
| double | getLongitude () const |
| bool | getPositionLL (double *const lat, double *const lon) const |
| bool | getPositionLLA (double *const lat, double *const lon, LCreal *const alt) const |
| LCreal | getAltitude () const |
| LCreal | getAltitudeM () const |
| LCreal | getAltitudeFt () const |
| LCreal | getAltitudeAgl () const |
| LCreal | getAltitudeAglM () const |
| LCreal | getAltitudeAglFt () const |
| LCreal | getTerrainElevation () const |
| LCreal | getTerrainElevationM () const |
| LCreal | getTerrainElevationFt () const |
| LCreal | getTotalVelocity () const |
| LCreal | getTotalVelocityFPS () const |
| LCreal | getTotalVelocityKts () const |
| LCreal | getGroundSpeed () const |
| LCreal | getGroundSpeedFPS () const |
| LCreal | getGroundSpeedKts () const |
| LCreal | getGroundTrack () const |
| LCreal | getGroundTrackR () const |
| LCreal | getGroundTrackD () const |
| const osg::Vec3 & | getVelocity () const |
| const osg::Vec3 & | getAcceleration () const |
| const osg::Vec3 & | getVelocityBody () const |
| virtual LCreal | getGrossWeight () const |
| virtual LCreal | getMach () const |
| virtual LCreal | getCG () const |
| LCreal | getDamage () const |
| virtual bool | isDestroyed () const |
| virtual bool | setDamage (const LCreal v) |
| LCreal | getSmoke () const |
| virtual bool | setSmoke (const LCreal v) |
| LCreal | getFlames () const |
| virtual bool | setFlames (const LCreal v) |
| unsigned int | getCamouflageType () const |
| virtual bool | setCamouflageType (const unsigned int v) |
| bool | isPositionFrozen () const |
| virtual bool | setPositionFreeze (const bool f) |
| bool | isAltitudeFrozen () const |
| virtual bool | setAltitudeFreeze (const bool f) |
| bool | isAttitudeFrozen () const |
| virtual bool | setAttitudeFreeze (const bool f) |
| bool | isFuelFrozen () const |
| virtual bool | setFuelFreeze (const bool f) |
| bool | isCrashOverride () const |
| virtual bool | setCrashOverride (const bool f) |
| bool | isKillOverride () const |
| virtual bool | setKillOverride (const bool f) |
| Simulation * | getSimulation () |
| const Simulation * | getSimulation () const |
| DynamicsModel * | getDynamicsModel () |
| const DynamicsModel * | getDynamicsModel () const |
| const Basic::LcIdent * | getDynamicsModelName () const |
| Pilot * | getPilot () |
| const Pilot * | getPilot () const |
| const Basic::LcIdent * | getPilotName () const |
| StoresMgr * | getStoresManagement () |
| const StoresMgr * | getStoresManagement () const |
| const Basic::LcIdent * | getStoresManagementName () const |
| Datalink * | getDatalink () |
| const Datalink * | getDatalink () const |
| const Basic::LcIdent * | getDatalinkName () const |
| Datalink * | getDatalinkByName (const char *const name) |
| Basic::LcPair * | getDatalinkByType (const std::type_info &type) |
| Gimbal * | getGimbal () |
| const Gimbal * | getGimbal () const |
| const Basic::LcIdent * | getGimbalName () const |
| Gimbal * | getGimbalByName (const char *const name) |
| Basic::LcPair * | getGimbalByType (const std::type_info &type) |
| Navigation * | getNavigation () |
| const Navigation * | getNavigation () const |
| const Basic::LcIdent * | getNavigationName () const |
| Navigation * | getNavigationByName (const char *const name) |
| Basic::LcPair * | getNavigationByType (const std::type_info &type) |
| OnboardComputer * | getOnboardComputer () |
| const OnboardComputer * | getOnboardComputer () const |
| const Basic::LcIdent * | getOnboardComputerName () const |
| OnboardComputer * | getOnboardComputerByName (const char *const name) |
| Basic::LcPair * | getOnboardComputerByType (const std::type_info &type) |
| Radio * | getRadio () |
| const Radio * | getRadio () const |
| const Basic::LcIdent * | getRadioName () const |
| Radio * | getRadioByName (const char *const name) |
| Basic::LcPair * | getRadioByType (const std::type_info &type) |
| RfSensor * | getSensor () |
| const RfSensor * | getSensor () const |
| const Basic::LcIdent * | getSensorName () const |
| RfSensor * | getSensorByName (const char *const name) |
| Basic::LcPair * | getSensorByType (const std::type_info &type) |
| virtual bool | isHeadingHoldOn () const |
| virtual bool | setHeadingHoldOn (const bool b) |
| virtual LCreal | getCommandedHeading () const |
| virtual LCreal | getCommandedHeadingD () const |
| virtual LCreal | getCommandedHeadingR () const |
| virtual bool | setCommandedHeading (const LCreal h) |
| virtual bool | setCommandedHeadingD (const LCreal h) |
| virtual bool | setCommandedHeadingR (const LCreal h) |
| virtual bool | isVelocityHoldOn () const |
| virtual bool | setVelocityHoldOn (const bool b) |
| virtual LCreal | getCommandedVelocityKts () const |
| virtual LCreal | getCommandedVelocityFps () const |
| virtual LCreal | getCommandedVelocityMps () const |
| virtual bool | setCommandedVelocityKts (const LCreal a) |
| virtual bool | isAltitudeHoldOn () const |
| virtual bool | setAltitudeHoldOn (const bool b) |
| virtual LCreal | getCommandedAltitude () const |
| virtual LCreal | getCommandedAltitudeM () const |
| virtual LCreal | getCommandedAltitudeFt () const |
| virtual bool | setCommandedAltitude (const LCreal a) |
| virtual bool | setCommandedAltitudeM (const LCreal a) |
| virtual bool | setCommandedAltitudeFt (const LCreal a) |
| bool | isDeadReckoning (const DeadReckoning dr) const |
| DeadReckoning | getDeadReckoning () const |
| virtual void | setDeadReckoning (const DeadReckoning dr) |
| bool | isAltitudeSlaved () const |
| virtual void | setSlavedAltitude (const LCreal alt) |
| bool | isPositionSlaved () const |
| virtual void | setSlavedPositionXY (const LCreal x, const LCreal y) |
| virtual void | setSlavedPositionLL (const LCreal lat, const LCreal lon) |
| bool | isTerrainElevationRequired () const |
| virtual void | setTerrainElevation (const LCreal v) |
| virtual void | setControlStickRollInput (const LCreal roll) |
| void | setInitLat (const double x) |
| void | setInitLon (const double x) |
| virtual void | setControlStickPitchInput (const LCreal pitch) |
| virtual int | setThrottles (const LCreal *const positions, const int num) |
| virtual bool | setPosition (const LCreal north, const LCreal east, const LCreal down) |
| virtual bool | setPosition (const osg::Vec3 &newPos) |
| virtual bool | setPositionLL (const double lat, const double lon) |
| virtual bool | setPositionLLA (const double lat, const double lon, const LCreal alt) |
| virtual bool | setVelocity (const LCreal ue, const LCreal ve, const LCreal we) |
| virtual bool | setVelocity (const osg::Vec3 &newVel) |
| virtual bool | setAcceleration (const LCreal due, const LCreal dve, const LCreal dwe) |
| virtual bool | setAcceleration (const osg::Vec3 &newAccel) |
| virtual bool | setVelocityBody (const LCreal ua, const LCreal va, const LCreal wa) |
| virtual bool | setVelocityBody (const osg::Vec3 &newVelBody) |
| virtual bool | setEulerAngles (const LCreal r, const LCreal p, const LCreal y) |
| virtual bool | setEulerAngles (const osg::Vec3 &newAngles) |
| virtual bool | setRotationalMatrix (const osg::Matrix &) |
| virtual bool | setQuaternions (const osg::Quat &) |
| virtual bool | setAngularVelocities (const LCreal pa, const LCreal qa, const LCreal ra) |
| virtual bool | setAngularVelocities (const osg::Vec3 &newAngVel) |
| virtual bool | setInitPosition (const LCreal north, const LCreal east, const LCreal down) |
| virtual bool | setInitPosition (const osg::Vec3 &newPos) |
| int | aer2xyz (osg::Vec4 *const pos, const LCreal az, const LCreal el, const LCreal rng) const |
| int | aer2xyzArray (osg::Vec4 *const pos, const LCreal *const az, const LCreal *const el, const LCreal *const rng, const int n) const |
| virtual void | updateSystemPointers () |
| bool | isSmoothing () const |
| const osg::Vec3 & | getSmoothingRate () const |
| virtual void | updateSmoothingTime (const LCreal dt) |
| virtual void | setSmoothing (const osg::Vec3 &vel, const LCreal tim) |
| virtual bool | setSlotSignature (RfSignature *const s) |
| virtual bool | setSlotSide (Basic::LcString *const msg) |
| virtual bool | setSlotPosition (Basic::LcList *const msg) |
| virtual bool | setSlotInitXPos (const Basic::LcNumber *const msg) |
| virtual bool | setSlotInitYPos (const Basic::LcNumber *const msg) |
| virtual bool | setSlotInitAlt (const Basic::LcNumber *const msg) |
| virtual bool | setSlotInitLat (const Basic::LcLatLon *const msg) |
| virtual bool | setSlotInitLat (const Basic::LcAngle *const msg) |
| virtual bool | setSlotInitLat (const Basic::LcNumber *const msg) |
| virtual bool | setSlotInitLon (const Basic::LcLatLon *const msg) |
| virtual bool | setSlotInitLon (const Basic::LcAngle *const msg) |
| virtual bool | setSlotInitLon (const Basic::LcNumber *const msg) |
| virtual bool | setSlotEulerAngles (Basic::LcList *const msg) |
| virtual bool | setSlotInitRoll (const Basic::LcNumber *const msg) |
| virtual bool | setSlotInitPitch (const Basic::LcNumber *const msg) |
| virtual bool | setSlotInitHeading (const Basic::LcNumber *const msg) |
| virtual bool | setSlotInitVelocity (const Basic::LcNumber *const msg) |
| virtual bool | setSlotInitMode (Basic::LcString *const msg) |
| virtual bool | setSlotID (const Basic::LcNumber *const msg) |
| virtual bool | setSlotTerrainElevReq (const Basic::LcNumber *const msg) |
| virtual bool | setSlotPositionFreeze (const Basic::LcNumber *const msg) |
| virtual bool | setSlotAltitudeFreeze (const Basic::LcNumber *const msg) |
| virtual bool | setSlotAttitudeFreeze (const Basic::LcNumber *const msg) |
| virtual bool | setSlotFuelFreeze (const Basic::LcNumber *const msg) |
| virtual bool | setSlotCrashOverride (const Basic::LcNumber *const msg) |
| virtual bool | setSlotKillOverride (const Basic::LcNumber *const msg) |
| virtual bool | setSlotDataLogTime (const Basic::LcNumber *const msg) |
| virtual bool | setSlotCamouflageType (const Basic::LcNumber *const msg) |
| virtual bool | killedNotification (Player *const killedBy=0) |
| virtual bool | detonationNotification (Weapon *const msg) |
| virtual bool | collisionNotification (Player *const msg) |
| virtual bool | crashNotification () |
| virtual bool | onRfEmissionEventPlayer (Emission *const msg) |
| virtual bool | onWpnRelEvent (const Basic::LcBoolean *const msg=0) |
| virtual bool | onTriggerSwEvent (const Basic::LcBoolean *const msg=0) |
| virtual bool | onTgtStepEvent () |
| virtual bool | onDatalinkMessageEventPlayer (Basic::LcObject *const msg) |
| virtual bool | onReflectionsRequest (Basic::LcComponent *const msg) |
| virtual bool | onReflectionsCancel (const Basic::LcComponent *const msg) |
| virtual void | processDetonation (const LCreal detRange, Weapon *const wpn=0) |
| double | getInitLatitude () |
| double | getInitLongitude () |
| virtual void | dynamics (const LCreal dt=0.0) |
| virtual void | updateTC (const LCreal dt=0.0) |
| virtual void | updateData (const LCreal dt=0.0) |
| virtual bool | event (const int event, Basic::LcObject *const obj=0) |
| virtual void | reset () |
Protected Member Functions | |
| virtual bool | setTerrainElevReq (const bool b) |
| virtual bool | setSimulation (Simulation *const s) |
| virtual bool | computeEulerRates () |
| virtual void | printTimingStats () |
Private Member Functions | |
| bool | setDynamicsModel (Basic::LcPair *const sys) |
| bool | setDatalink (Basic::LcPair *const n) |
| bool | setGimbal (Basic::LcPair *const n) |
| bool | setNavigation (Basic::LcPair *const n) |
| bool | setOnboardComputer (Basic::LcPair *const s) |
| bool | setPilot (Basic::LcPair *const p) |
| bool | setRadio (Basic::LcPair *const n) |
| bool | setSensor (Basic::LcPair *const n) |
| bool | setStoresMgr (Basic::LcPair *const s) |
Private Attributes | |
| double | latitude |
| double | longitude |
| osg::Vec3 | posVec |
| osg::Vec3 | velVec |
| osg::Vec3 | accelVec |
| osg::Vec3 | velVecBody |
| LCreal | vp |
| LCreal | gndSpd |
| LCreal | gndTrk |
| Mode | mode |
| osg::Vec3 | angles |
| osg::Vec3 | angularVel |
| osg::Vec3 | eulerRates |
| osg::Quat | q |
| osg::Matrix | rm |
| LCreal | sphi |
| LCreal | cphi |
| LCreal | stheta |
| LCreal | ctheta |
| LCreal | spsi |
| LCreal | cpsi |
| LCreal | tElev |
| LCreal | tElevAge |
| bool | tElevReq |
| LCreal | dataLogTimer |
| LCreal | dataLogTime |
| DeadReckoning | deadReckoning |
| LCreal | damage |
| LCreal | smoking |
| LCreal | flames |
| unsigned int | camouflage |
| osg::Vec3 | initAngles |
| osg::Vec3 | initPosVec |
| double | initLat |
| double | initLon |
| LCreal | initVp |
| Mode | initMode |
| bool | posFrz |
| bool | altFrz |
| bool | attFrz |
| bool | fuelFrz |
| bool | crashOverride |
| bool | killOverride |
| bool | altSlaved |
| bool | posSlaved |
| Basic::LcString | name |
| Side | side |
| SPtr< Basic::LcString > | type |
| SPtr< RfSignature > | signature |
| bool | justKilled |
| unsigned short | killedBy |
| unsigned short | id |
| osg::Vec3 | smoothVel |
| LCreal | smoothTim |
| Nib * | nib |
| int | netID |
| Basic::LcPair * | dyn |
| Basic::LcPair * | datalink |
| Basic::LcPair * | gimbal |
| Basic::LcPair * | nav |
| Basic::LcPair * | obc |
| Basic::LcPair * | pilot |
| Basic::LcPair * | radio |
| Basic::LcPair * | sensor |
| Basic::LcPair * | sms |
| Simulation * | sim |
| Basic::LcComponent * | rfReflect [MAX_RF_REFLECTIONS] |
| LCreal | rfReflectTimer [MAX_RF_REFLECTIONS] |
Static Private Attributes | |
| static const int | MAX_RF_REFLECTIONS = 4 |
Common base class for all players (e.g., aircraft, ground vehicles, etc.)
Provides interfaces for player IDs, types, status, state vectors,
control flags, subcomponent lists, event handling, etc.
| display | |
| input | |
| INACTIVE | Player is not being updated or sent to the networks. |
| ACTIVE | Player is being updated and sent to the networks. |
| KILLED | Player was killed (One of the dead conditions, which are still sent to the networks). |
| CRASHED | Player crashed (One of the dead conditions, which are still sent to the networks). |
| DETONATED | Flyout weapon player has detonated (Weapons only) (One of the dead conditions, which are still sent to the networks). |
| LAUNCHED | Template weapon has been launched (Weapons only) (not updated or sent to the networks). |
| PRERELEASE | Flyout weapon is being released (Weapons only) (not updated or sent to the networks). |
| DELETE_REQUEST | Request player removal from active list. |
| Eaagles::Simulation::Player::Player | ( | ) |
| bool Eaagles::Simulation::Player::isName | ( | const Basic::LcString *const | tst | ) | const [inline] |
True if the player's name matches.
| bool Eaagles::Simulation::Player::isName | ( | const char *const | tst | ) | const [inline] |
True if the player's name matches.
| const Basic::LcString* Eaagles::Simulation::Player::getName | ( | ) | const [inline] |
The player's name.
| void Eaagles::Simulation::Player::setName | ( | const Basic::LcString & | newName | ) | [virtual] |
Sets the player's name (Basic::LcString version).
| void Eaagles::Simulation::Player::setName | ( | const char *const | newName | ) | [virtual] |
Sets the player's name (char* version).
| bool Eaagles::Simulation::Player::isID | ( | const unsigned short | tst | ) | const [inline] |
True if player's ID matches.
| unsigned short Eaagles::Simulation::Player::getID | ( | ) | const [inline] |
The player's ID.
| void Eaagles::Simulation::Player::setID | ( | const unsigned short | newId | ) | [virtual] |
Sets the player's ID.
| bool Eaagles::Simulation::Player::isSide | ( | const unsigned int | tst | ) | const [inline] |
True if player is with one of these (bit-wise or'd) sides.
| bool Eaagles::Simulation::Player::isNotSide | ( | const unsigned int | tst | ) | const [inline] |
True if player is not with one one of these (bit-wise or'd) sides.
| Side Eaagles::Simulation::Player::getSide | ( | ) | const [inline] |
The 'side' that the player is on.
| void Eaagles::Simulation::Player::setSide | ( | const Side | newSide | ) | [virtual] |
Sets the player's side enum.
| bool Eaagles::Simulation::Player::isMajorType | ( | const unsigned int | tst | ) | const [inline] |
True if player is of these (bit-wise or'd) major types.
| Player::MajorType Eaagles::Simulation::Player::getMajorType | ( | ) | const [virtual] |
The player's 'major type' enum.
Reimplemented in Eaagles::Simulation::AirVehicle, Eaagles::Simulation::Building, Eaagles::Simulation::GroundVehicle, Eaagles::Simulation::LifeForm, and Eaagles::Simulation::Weapon.
| const Basic::LcString* Eaagles::Simulation::Player::getType | ( | ) | const [inline] |
The player's type string (.e.g, "F-16C").
| bool Eaagles::Simulation::Player::setType | ( | Basic::LcString *const | newTypeString | ) | [virtual] |
Sets the player's type string.
| bool Eaagles::Simulation::Player::isNetworkedPlayer | ( | ) | const [inline] |
True if this is a networked player (IPlayer).
| bool Eaagles::Simulation::Player::isLocalPlayer | ( | ) | const [inline] |
True if this is a local player.
| int Eaagles::Simulation::Player::getNetworkID | ( | ) | const [inline] |
ID of a networked player's controlling network model.
| const Nib* Eaagles::Simulation::Player::getNib | ( | ) | const [inline] |
Networked player's Nib object (const version).
| bool Eaagles::Simulation::Player::setNib | ( | Nib *const | n | ) | [virtual] |
Sets the networked player's Nib object.
| bool Eaagles::Simulation::Player::isJustKilled | ( | ) | const [inline] |
True if the player was just killed.
| void Eaagles::Simulation::Player::resetJustKilled | ( | ) | [inline] |
Resets the just killed flag.
| int Eaagles::Simulation::Player::killedByPlayerID | ( | ) | const [inline] |
ID of the attacking player that killed us.
| Mode Eaagles::Simulation::Player::getMode | ( | ) | const [inline] |
Current mode ( INACTIVE, ACTIVE, DETONATED ... }.
| bool Eaagles::Simulation::Player::isActive | ( | ) | const [inline] |
True if player's mode is active.
| bool Eaagles::Simulation::Player::isKilled | ( | ) | const [inline] |
True if player's mode is killed.
| bool Eaagles::Simulation::Player::isCrashed | ( | ) | const [inline] |
True if player's mode is crashed.
| bool Eaagles::Simulation::Player::isDetonated | ( | ) | const [inline] |
True if player has detonated (weapons).
| bool Eaagles::Simulation::Player::isInactive | ( | ) | const [inline] |
True if player's mode is inactive.
| bool Eaagles::Simulation::Player::isMode | ( | const Mode | tst | ) | const [inline] |
True if player is currently this mode.
| bool Eaagles::Simulation::Player::isNotMode | ( | const Mode | tst | ) | const [inline] |
True if player is not currently this mode.
| bool Eaagles::Simulation::Player::isDead | ( | ) | const [inline] |
True if player's mode is dead.
| void Eaagles::Simulation::Player::setMode | ( | const Mode | newMode | ) | [virtual] |
Sets the player's current mode.
| void Eaagles::Simulation::Player::setInitMode | ( | const Mode | newMode | ) | [virtual] |
Sets the player's initial mode (after reset).
| LCreal Eaagles::Simulation::Player::getRoll | ( | ) | const [inline] |
Roll euler angle (Rad).
| LCreal Eaagles::Simulation::Player::getRollR | ( | ) | const [inline] |
Roll euler angle (Rad).
| LCreal Eaagles::Simulation::Player::getRollD | ( | ) | const |
Roll euler angle (degs).
| LCreal Eaagles::Simulation::Player::getSinRoll | ( | ) | const [inline] |
Sin of the euler roll angle.
| LCreal Eaagles::Simulation::Player::getCosRoll | ( | ) | const [inline] |
Cos of the euler roll angle.
| LCreal Eaagles::Simulation::Player::getPitch | ( | ) | const [inline] |
Pitch euler angle (Rad).
| LCreal Eaagles::Simulation::Player::getPitchR | ( | ) | const [inline] |
Pitch euler angle (Rad).
| LCreal Eaagles::Simulation::Player::getPitchD | ( | ) | const |
Pitch euler angle (degs).
| LCreal Eaagles::Simulation::Player::getSinPitch | ( | ) | const [inline] |
Sin of the pitch euler angle.
| LCreal Eaagles::Simulation::Player::getCosPitch | ( | ) | const [inline] |
Cos of the pitch euler angle.
| LCreal Eaagles::Simulation::Player::getHeading | ( | ) | const [inline] |
Yaw euler angle (Rad).
| LCreal Eaagles::Simulation::Player::getHeadingR | ( | ) | const [inline] |
Yaw euler angle (Rad).
| LCreal Eaagles::Simulation::Player::getHeadingD | ( | ) | const |
Yaw euler angle (degs).
| LCreal Eaagles::Simulation::Player::getSinHeading | ( | ) | const [inline] |
Sin of the yaw euler angle.
| LCreal Eaagles::Simulation::Player::getCosHeading | ( | ) | const [inline] |
Cos of the yaw euler angle.
| const osg::Vec3& Eaagles::Simulation::Player::getEulerAngles | ( | ) | const [inline] |
Euler angles (rad).
| const osg::Vec3& Eaagles::Simulation::Player::getEulerRates | ( | ) | const [inline] |
Euler angular rates (r/s).
| const osg::Vec3& Eaagles::Simulation::Player::getAngularVelocities | ( | ) | const [inline] |
Body angular rates (r/s).
| const osg::Quat& Eaagles::Simulation::Player::getQuaternions | ( | ) | const [inline] |
Rotational Quaternions.
| const osg::Matrix& Eaagles::Simulation::Player::getRotationalMatrix | ( | ) | const [inline] |
Rotational Matrix earth = getRotationalMatrix() * body; body = earth * getRotationalMatrix()
| const osg::Vec3& Eaagles::Simulation::Player::getInitPosition | ( | ) | const [inline] |
| const osg::Vec3& Eaagles::Simulation::Player::getPosition | ( | ) | const [inline] |
Position vector; NED from simulation ref point (m).
| LCreal Eaagles::Simulation::Player::getXPosition | ( | ) | const [inline] |
North(+) or south(-) of the simulation ref point (m).
| LCreal Eaagles::Simulation::Player::getYPosition | ( | ) | const [inline] |
East(+) or west(-) of the simulation ref point (m).
| double Eaagles::Simulation::Player::getLatitude | ( | ) | const [inline] |
Player's WGS84 latitude (degs).
| double Eaagles::Simulation::Player::getLongitude | ( | ) | const [inline] |
Player's WGS84 longitude (degs).
| bool Eaagles::Simulation::Player::getPositionLL | ( | double *const | lat, | |
| double *const | lon | |||
| ) | const |
Player's WGS84 Lat/lon (degs).
| bool Eaagles::Simulation::Player::getPositionLLA | ( | double *const | lat, | |
| double *const | lon, | |||
| LCreal *const | alt | |||
| ) | const |
Players WGS84 Lat/Lon (degs) and altitude (meters).
| LCreal Eaagles::Simulation::Player::getAltitude | ( | ) | const [inline] |
Altitude MSL (meters).
| LCreal Eaagles::Simulation::Player::getAltitudeM | ( | ) | const [inline] |
Altitude MSL (meters).
| LCreal Eaagles::Simulation::Player::getAltitudeFt | ( | ) | const |
Altitude MSL (ft).
| LCreal Eaagles::Simulation::Player::getAltitudeAgl | ( | ) | const [inline] |
Altitude AGL (meters).
| LCreal Eaagles::Simulation::Player::getAltitudeAglM | ( | ) | const [inline] |
Altitude AGL (meters).
| LCreal Eaagles::Simulation::Player::getAltitudeAglFt | ( | ) | const |
Altitude AGL (ft).
| LCreal Eaagles::Simulation::Player::getTerrainElevation | ( | ) | const [inline] |
Terrain elevation at player (meters).
| LCreal Eaagles::Simulation::Player::getTerrainElevationM | ( | ) | const [inline] |
Terrain elevation at player (meters).
| LCreal Eaagles::Simulation::Player::getTerrainElevationFt | ( | ) | const |
Terrain elevation at player (ft).
| LCreal Eaagles::Simulation::Player::getTotalVelocity | ( | ) | const [inline] |
Player's total velocity (m/s).
| LCreal Eaagles::Simulation::Player::getTotalVelocityFPS | ( | ) | const |
Player's total velocity (ft/s).
| LCreal Eaagles::Simulation::Player::getTotalVelocityKts | ( | ) | const |
Player's total velocity (kts).
| LCreal Eaagles::Simulation::Player::getGroundSpeed | ( | ) | const [inline] |
Player's ground speed (m/s).
| LCreal Eaagles::Simulation::Player::getGroundSpeedFPS | ( | ) | const |
Player's ground speed (ft/s).
| LCreal Eaagles::Simulation::Player::getGroundSpeedKts | ( | ) | const |
Player's ground speed (kts).
| LCreal Eaagles::Simulation::Player::getGroundTrack | ( | ) | const [inline] |
Player's ground track (rad).
| LCreal Eaagles::Simulation::Player::getGroundTrackR | ( | ) | const [inline] |
Player's ground track (rad).
| LCreal Eaagles::Simulation::Player::getGroundTrackD | ( | ) | const |
Player's ground track (degs).
| const osg::Vec3& Eaagles::Simulation::Player::getVelocity | ( | ) | const [inline] |
Velocity vector; NED (m/s).
| const osg::Vec3& Eaagles::Simulation::Player::getAcceleration | ( | ) | const [inline] |
Acceleration vector; NED ((m/s)/s).
| const osg::Vec3& Eaagles::Simulation::Player::getVelocityBody | ( | ) | const [inline] |
Body velocity vector: Nose/right/down (m/s).
| LCreal Eaagles::Simulation::Player::getGrossWeight | ( | ) | const [virtual] |
Player's gross weight (lbs).
Reimplemented in Eaagles::Simulation::AirVehicle, and Eaagles::Simulation::GroundVehicle.
| LCreal Eaagles::Simulation::Player::getMach | ( | ) | const [virtual] |
| LCreal Eaagles::Simulation::Player::getCG | ( | ) | const [virtual] |
Player's Center-of-Gravity (%).
| LCreal Eaagles::Simulation::Player::getDamage | ( | ) | const [inline] |
Returns the player's damage state.
| virtual bool Eaagles::Simulation::Player::isDestroyed | ( | ) | const [inline, virtual] |
True if player is destroyed.
| bool Eaagles::Simulation::Player::setDamage | ( | const LCreal | v | ) | [virtual] |
Sets the player's damage state.
| LCreal Eaagles::Simulation::Player::getSmoke | ( | ) | const [inline] |
Returns the player's smoke state.
| bool Eaagles::Simulation::Player::setSmoke | ( | const LCreal | v | ) | [virtual] |
Sets the player's smoke state.
| LCreal Eaagles::Simulation::Player::getFlames | ( | ) | const [inline] |
Returns the player's flames state.
| bool Eaagles::Simulation::Player::setFlames | ( | const LCreal | v | ) | [virtual] |
Sets the player's flames state.
| unsigned int Eaagles::Simulation::Player::getCamouflageType | ( | ) | const [inline] |
Returns the user defined camouflage type (or zero for none).
| bool Eaagles::Simulation::Player::setCamouflageType | ( | const unsigned int | v | ) | [virtual] |
Sets the user defined camouflage type (or zero for none).
| bool Eaagles::Simulation::Player::isPositionFrozen | ( | ) | const [inline] |
True if the player is frozen (paused).
| bool Eaagles::Simulation::Player::setPositionFreeze | ( | const bool | f | ) | [virtual] |
Sets the player's freeze flag.
| bool Eaagles::Simulation::Player::isAltitudeFrozen | ( | ) | const [inline] |
True if the player's altitude is frozen.
| bool Eaagles::Simulation::Player::setAltitudeFreeze | ( | const bool | f | ) | [virtual] |
Sets the player's altitude freeze flag.
| bool Eaagles::Simulation::Player::isAttitudeFrozen | ( | ) | const [inline] |
True if the player's attitude is frozen.
| bool Eaagles::Simulation::Player::setAttitudeFreeze | ( | const bool | f | ) | [virtual] |
Sets the player's attitude freeze flag.
| bool Eaagles::Simulation::Player::isFuelFrozen | ( | ) | const [inline] |
True if the player's fuel is frozen.
| bool Eaagles::Simulation::Player::setFuelFreeze | ( | const bool | f | ) | [virtual] |
Sets the player's fuel freeze flag.
| bool Eaagles::Simulation::Player::isCrashOverride | ( | ) | const [inline] |
True if the player is in crash override mode.
| bool Eaagles::Simulation::Player::setCrashOverride | ( | const bool | f | ) | [virtual] |
Sets the player's crash override flag.
| bool Eaagles::Simulation::Player::isKillOverride | ( | ) | const [inline] |
True if the player is in kill override mode.
| bool Eaagles::Simulation::Player::setKillOverride | ( | const bool | f | ) | [virtual] |
Sets the player's kill override flag.
| Simulation* Eaagles::Simulation::Player::getSimulation | ( | ) | [inline] |
Controlling simulation model.
| const Simulation* Eaagles::Simulation::Player::getSimulation | ( | ) | const [inline] |
Controlling simulation model (const version).
| DynamicsModel * Eaagles::Simulation::Player::getDynamicsModel | ( | ) |
Player's dynamics model.
| const DynamicsModel * Eaagles::Simulation::Player::getDynamicsModel | ( | ) | const |
Player's dynamics model (const version).
| const Basic::LcIdent * Eaagles::Simulation::Player::getDynamicsModelName | ( | ) | const |
Name of the player's dynamics model.
| Pilot * Eaagles::Simulation::Player::getPilot | ( | ) |
Player's pilot model.
| const Pilot * Eaagles::Simulation::Player::getPilot | ( | ) | const |
Player's pilot model (const version).
| const Basic::LcIdent * Eaagles::Simulation::Player::getPilotName | ( | ) | const |
Name of the player's pilot model.
| StoresMgr * Eaagles::Simulation::Player::getStoresManagement | ( | ) |
Player's stores (weapons, fuel) manager model.
| const StoresMgr * Eaagles::Simulation::Player::getStoresManagement | ( | ) | const |
Player's stores (weapons, fuel) manager model (const version).
| const Basic::LcIdent * Eaagles::Simulation::Player::getStoresManagementName | ( | ) | const |
Name of the player's stores (weapons, fuel) manager model.
| const Datalink * Eaagles::Simulation::Player::getDatalink | ( | ) | const |
Player's top level Datalink (const version).
| const Basic::LcIdent * Eaagles::Simulation::Player::getDatalinkName | ( | ) | const |
Name of the player's top level Datalink model.
| Datalink * Eaagles::Simulation::Player::getDatalinkByName | ( | const char *const | name | ) |
Returns a Datalink model by its name.
| Basic::LcPair * Eaagles::Simulation::Player::getDatalinkByType | ( | const std::type_info & | type | ) |
Returns a Datalink model by its type.
| const Gimbal * Eaagles::Simulation::Player::getGimbal | ( | ) | const |
Player's top level Gimbal (const version).
| const Basic::LcIdent * Eaagles::Simulation::Player::getGimbalName | ( | ) | const |
Name of the player's top level Gimbal model.
| Gimbal * Eaagles::Simulation::Player::getGimbalByName | ( | const char *const | name | ) |
Returns a Gimbal model by its name.
| Basic::LcPair * Eaagles::Simulation::Player::getGimbalByType | ( | const std::type_info & | type | ) |
Returns a Gimbal model by its type.
| Navigation * Eaagles::Simulation::Player::getNavigation | ( | ) |
Player's top level Navigation model.
| const Navigation * Eaagles::Simulation::Player::getNavigation | ( | ) | const |
Player's top level Navigation (const version).
| const Basic::LcIdent * Eaagles::Simulation::Player::getNavigationName | ( | ) | const |
Name of the player's top level Navigation model.
| Navigation * Eaagles::Simulation::Player::getNavigationByName | ( | const char *const | name | ) |
Returns a Navigation model by its name.
| Basic::LcPair * Eaagles::Simulation::Player::getNavigationByType | ( | const std::type_info & | type | ) |
Returns a Navigation model by its type.
| OnboardComputer * Eaagles::Simulation::Player::getOnboardComputer | ( | ) |
Name of the player's top level OnboardComputer model.
| const OnboardComputer * Eaagles::Simulation::Player::getOnboardComputer | ( | ) | const |
Player's top level OnboardComputer (const version).
| const Basic::LcIdent * Eaagles::Simulation::Player::getOnboardComputerName | ( | ) | const |
Name of the player's top level OnboardComputer model.
| OnboardComputer * Eaagles::Simulation::Player::getOnboardComputerByName | ( | const char *const | name | ) |
Returns an OnboardComputer model by its name.
| Basic::LcPair * Eaagles::Simulation::Player::getOnboardComputerByType | ( | const std::type_info & | type | ) |
Returns an OnboardComputer model by its type.
| const Radio * Eaagles::Simulation::Player::getRadio | ( | ) | const |
Player's top level Radio (const version).
| const Basic::LcIdent * Eaagles::Simulation::Player::getRadioName | ( | ) | const |
Name of the player's top level Radio model.
| Radio * Eaagles::Simulation::Player::getRadioByName | ( | const char *const | name | ) |
Returns a Radio model by its name.
| Basic::LcPair * Eaagles::Simulation::Player::getRadioByType | ( | const std::type_info & | type | ) |
Returns a Radio model by its type.
| RfSensor * Eaagles::Simulation::Player::getSensor | ( | ) |
Player's top level R/F sensor model.
| const RfSensor * Eaagles::Simulation::Player::getSensor | ( | ) | const |
Name of the player's top level R/F sensor model.
| const Basic::LcIdent * Eaagles::Simulation::Player::getSensorName | ( | ) | const |
Name of the player's top level R/F sensor model.
| RfSensor * Eaagles::Simulation::Player::getSensorByName | ( | const char *const | name | ) |
Returns a R/F sensor model by its name.
| Basic::LcPair * Eaagles::Simulation::Player::getSensorByType | ( | const std::type_info & | type | ) |
Returns a R/F sensor model by its type.
| bool Eaagles::Simulation::Player::isHeadingHoldOn | ( | ) | const [virtual] |
True if heading-hold mode is on?
| bool Eaagles::Simulation::Player::setHeadingHoldOn | ( | const bool | b | ) | [virtual] |
Turns heading-hold mode on/off.
| LCreal Eaagles::Simulation::Player::getCommandedHeading | ( | ) | const [virtual] |
Commanded (true) heading, default (radians).
| LCreal Eaagles::Simulation::Player::getCommandedHeadingD | ( | ) | const [virtual] |
Commanded (true) heading (degs).
| LCreal Eaagles::Simulation::Player::getCommandedHeadingR | ( | ) | const [virtual] |
Commanded (true) heading (radians).
| bool Eaagles::Simulation::Player::setCommandedHeading | ( | const LCreal | h | ) | [virtual] |
Sets the commanded (true) heading (radians).
| bool Eaagles::Simulation::Player::setCommandedHeadingD | ( | const LCreal | h | ) | [virtual] |
Sets the commanded (true) heading (degs).
| bool Eaagles::Simulation::Player::setCommandedHeadingR | ( | const LCreal | h | ) | [virtual] |
Sets the commanded (true) heading (radians).
| bool Eaagles::Simulation::Player::isVelocityHoldOn | ( | ) | const [virtual] |
True if velocity-hold mode is on?
| bool Eaagles::Simulation::Player::setVelocityHoldOn | ( | const bool | b | ) | [virtual] |
Turns velocity-hold mode on/off.
| LCreal Eaagles::Simulation::Player::getCommandedVelocityKts | ( | ) | const [virtual] |
Commanded (true) velocity (knots).
| LCreal Eaagles::Simulation::Player::getCommandedVelocityFps | ( | ) | const [virtual] |
Commanded (true) velocity (Feet/Sec).
| LCreal Eaagles::Simulation::Player::getCommandedVelocityMps | ( | ) | const [virtual] |
Commanded (true) velocity (Meters/Sec).
| bool Eaagles::Simulation::Player::setCommandedVelocityKts | ( | const LCreal | a | ) | [virtual] |
Sets the commanded (true) velocity (knots).
| bool Eaagles::Simulation::Player::isAltitudeHoldOn | ( | ) | const [virtual] |
True if altitude-hold mode is on?
| bool Eaagles::Simulation::Player::setAltitudeHoldOn | ( | const bool | b | ) | [virtual] |
Turns altitude-hold mode on/off.
| LCreal Eaagles::Simulation::Player::getCommandedAltitude | ( | ) | const [virtual] |
Get cmmanded (MSL) altitude, default (meters).
| LCreal Eaagles::Simulation::Player::getCommandedAltitudeM | ( | ) | const [virtual] |
Get cmmanded (MSL) altitude (meters).
| LCreal Eaagles::Simulation::Player::getCommandedAltitudeFt | ( | ) | const [virtual] |
Get cmmanded (MSL) altitude (Feet).
| bool Eaagles::Simulation::Player::setCommandedAltitude | ( | const LCreal | a | ) | [virtual] |
Sets cmmanded (MSL) altitude, default (meters).
| bool Eaagles::Simulation::Player::setCommandedAltitudeM | ( | const LCreal | a | ) | [virtual] |
Sets cmmanded (MSL) altitude (meters).
| bool Eaagles::Simulation::Player::setCommandedAltitudeFt | ( | const LCreal | a | ) | [virtual] |
Sets cmmanded (MSL) altitude (Feet).
| bool Eaagles::Simulation::Player::isDeadReckoning | ( | const DeadReckoning | dr | ) | const [inline] |
True if player is using this dead reckoning.
| DeadReckoning Eaagles::Simulation::Player::getDeadReckoning | ( | ) | const [inline] |
Returns the player's dead reckoning.
| void Eaagles::Simulation::Player::setDeadReckoning | ( | const DeadReckoning | dr | ) | [virtual] |
Sets the player's dead reckoning.
| bool Eaagles::Simulation::Player::isAltitudeSlaved | ( | ) | const [inline] |
True if altitude is slaved to an external model.
| void Eaagles::Simulation::Player::setSlavedAltitude | ( | const LCreal | alt | ) | [virtual] |
Sets the 'slaved' altitude (m).
| bool Eaagles::Simulation::Player::isPositionSlaved | ( | ) | const [inline] |
True if position is slaved to an external model.
Sets the 'slaved' position; (meters) North(x), east(y) of ref.
| void Eaagles::Simulation::Player::setSlavedPositionLL | ( | const LCreal | lat, | |
| const LCreal | lon | |||
| ) | [virtual] |
Sets the 'slaved' position; (degs).
| bool Eaagles::Simulation::Player::isTerrainElevationRequired | ( | ) | const [inline] |
True if terrain elevation is required for this player.
| void Eaagles::Simulation::Player::setTerrainElevation | ( | const LCreal | v | ) | [virtual] |
Sets the terrain elevation required flag.
| void Eaagles::Simulation::Player::setControlStickRollInput | ( | const LCreal | roll | ) | [virtual] |
Roll Control Input Normalized inputs roll: -1.0 -> max left; 0.0 -> center; 1.0 -> max right
| void Eaagles::Simulation::Player::setInitLat | ( | const double | x | ) | [inline] |
SLS - init lat and lons!
| void Eaagles::Simulation::Player::setInitLon | ( | const double | x | ) | [inline] |
| void Eaagles::Simulation::Player::setControlStickPitchInput | ( | const LCreal | pitch | ) | [virtual] |
Pitch Control Input Normalized inputs pitch: -1.0 -> max forward (nose down); 0.0 -> center; 1.0 -> max back (nose up)
| int Eaagles::Simulation::Player::setThrottles | ( | const LCreal *const | positions, | |
| const int | num | |||
| ) | [virtual] |
Throttle(s) Control Input Normalized inputs Throttle inputs: where ... 'positions' is an array of throttle positions (for each throttle) < 0.0 -> Cutoff 0.0 -> Idle 1.0 -> MIL 2.0 -> A/B 'num' is the number of throttle positions returns the actual number of throttle positions
| bool Eaagles::Simulation::Player::setPosition | ( | const LCreal | north, | |
| const LCreal | east, | |||
| const LCreal | down | |||
| ) | [virtual] |
Position relative to the simulation ref point (meters).
| bool Eaagles::Simulation::Player::setPosition | ( | const osg::Vec3 & | newPos | ) | [virtual] |
Position vector; NED from simulation ref point (meters).
| bool Eaagles::Simulation::Player::setPositionLL | ( | const double | lat, | |
| const double | lon | |||
| ) | [virtual] |
Sets lat/long position; WGS84 (degs).
| bool Eaagles::Simulation::Player::setPositionLLA | ( | const double | lat, | |
| const double | lon, | |||
| const LCreal | alt | |||
| ) | [virtual] |
Sets lat/long position; WGS84 (degs) and altitude (m).
| bool Eaagles::Simulation::Player::setVelocity | ( | const LCreal | ue, | |
| const LCreal | ve, | |||
| const LCreal | we | |||
| ) | [virtual] |
Sets earth velocities; (m/s) [ ue -> north(+), ve -> east(+), we -> down(+) ].
| bool Eaagles::Simulation::Player::setVelocity | ( | const osg::Vec3 & | newVel | ) | [virtual] |
Sets earth velocity vector; (meters/sec) NED.
| bool Eaagles::Simulation::Player::setAcceleration | ( | const LCreal | due, | |
| const LCreal | dve, | |||
| const LCreal | dwe | |||
| ) | [virtual] |
Sets earth accelerations.
| bool Eaagles::Simulation::Player::setAcceleration | ( | const osg::Vec3 & | newAccel | ) | [virtual] |
Sets earth acceleration vector; (m/s/s) NED.
| bool Eaagles::Simulation::Player::setVelocityBody | ( | const LCreal | ua, | |
| const LCreal | va, | |||
| const LCreal | wa | |||
| ) | [virtual] |
Sets body velocities: (m/s) [ ua -> fwd(+), va -> right(+), wa -> down(+) ].
| bool Eaagles::Simulation::Player::setVelocityBody | ( | const osg::Vec3 & | newVelBody | ) | [virtual] |
Sets body velocity vector: (m/s).
| bool Eaagles::Simulation::Player::setEulerAngles | ( | const LCreal | r, | |
| const LCreal | p, | |||
| const LCreal | y | |||
| ) | [virtual] |
Sets euler angles: (rad) [ roll pitch yaw ] (computes rotational matrix & quaternons).
| bool Eaagles::Simulation::Player::setEulerAngles | ( | const osg::Vec3 & | newAngles | ) | [virtual] |
Sets euler angle vector: (rad) [ roll pitch yaw ] (computes rotational matrix & quaternons).
| bool Eaagles::Simulation::Player::setRotationalMatrix | ( | const osg::Matrix & | ) | [virtual] |
Sets the rotational matrix (computes euler angles & quaternons).
| bool Eaagles::Simulation::Player::setQuaternions | ( | const osg::Quat & | ) | [virtual] |
Sets the quaternons (computes euler angles & rotational matrix).
| bool Eaagles::Simulation::Player::setAngularVelocities | ( | const LCreal | pa, | |
| const LCreal | qa, | |||
| const LCreal | ra | |||
| ) | [virtual] |
Sets the body angular velocities (r/s).
| bool Eaagles::Simulation::Player::setAngularVelocities | ( | const osg::Vec3 & | newAngVel | ) | [virtual] |
Sets the body angular velocity vector (r/s).
| bool Eaagles::Simulation::Player::setInitPosition | ( | const LCreal | north, | |
| const LCreal | east, | |||
| const LCreal | down | |||
| ) | [virtual] |
Initial position (after reset) relative to the simulation ref point (meters).
| bool Eaagles::Simulation::Player::setInitPosition | ( | const osg::Vec3 & | newPos | ) | [virtual] |
Initial position vector (after reset); NED from simulation ref point (meters).
| int Eaagles::Simulation::Player::aer2xyz | ( | osg::Vec4 *const | pos, | |
| const LCreal | az, | |||
| const LCreal | el, | |||
| const LCreal | rng | |||
| ) | const |
Converts a single set of azimuth, elevation and range values to x, y, z positions pos -> output: position vector array (NED, player centered) (m) az -> input: azimuth array (rad) el -> input: elevation array (positive up) (rad) rng -> input: range array (m) Returns one(1) of value was converted, zero(0) if not.
| int Eaagles::Simulation::Player::aer2xyzArray | ( | osg::Vec4 *const | pos, | |
| const LCreal *const | az, | |||
| const LCreal *const | el, | |||
| const LCreal *const | rng, | |||
| const int | n | |||
| ) | const |
Convert 'n' sets of azimuth, elevation and range values to x, y, z positions pos -> output: position vector array (NED, player centered) (m) az -> input: azimuth array (rad) el -> input: elevation array (positive up) (rad) rng -> input: range array (m) n -> input: number of sets to convert Returns actual number of sets converted.
| void Eaagles::Simulation::Player::updateSystemPointers | ( | ) | [virtual] |
Update the player's internal systems pointers (e.g., after new system components have been added).
| bool Eaagles::Simulation::Player::isSmoothing | ( | ) | const [inline] |
Position Smoothing (network players only).
| const osg::Vec3& Eaagles::Simulation::Player::getSmoothingRate | ( | ) | const [inline] |
| virtual void Eaagles::Simulation::Player::updateSmoothingTime | ( | const LCreal | dt | ) | [inline, virtual] |
| void Eaagles::Simulation::Player::setSmoothing | ( | const osg::Vec3 & | vel, | |
| const LCreal | tim | |||
| ) | [virtual] |
| bool Eaagles::Simulation::Player::setSlotSignature | ( | RfSignature *const | s | ) | [virtual] |
Sets our RCS signature.
| bool Eaagles::Simulation::Player::setSlotSide | ( | Basic::LcString *const | msg | ) | [virtual] |
Sets side.
| bool Eaagles::Simulation::Player::setSlotPosition | ( | Basic::LcList *const | msg | ) | [virtual] |
Sets initial position.
| bool Eaagles::Simulation::Player::setSlotInitXPos | ( | const Basic::LcNumber *const | msg | ) | [virtual] |
Sets initial X position.
| bool Eaagles::Simulation::Player::setSlotInitYPos | ( | const Basic::LcNumber *const | msg | ) | [virtual] |
Sets initial Y position.
| bool Eaagles::Simulation::Player::setSlotInitAlt | ( | const Basic::LcNumber *const | msg | ) | [virtual] |
Sets initial altitude.
| bool Eaagles::Simulation::Player::setSlotInitLat | ( | const Basic::LcLatLon *const | msg | ) | [virtual] |
Sets initial latitude using Basic::LcLatLon.
| bool Eaagles::Simulation::Player::setSlotInitLat | ( | const Basic::LcAngle *const | msg | ) | [virtual] |
Sets initial latitude using Basic::LcAngle.
| bool Eaagles::Simulation::Player::setSlotInitLat | ( | const Basic::LcNumber *const | msg | ) | [virtual] |
| bool Eaagles::Simulation::Player::setSlotInitLon | ( | const Basic::LcLatLon *const | msg | ) | [virtual] |
Sets initial longitude using Basic::LcLatLon.
| bool Eaagles::Simulation::Player::setSlotInitLon | ( | const Basic::LcAngle *const | msg | ) | [virtual] |
Sets initial longitude using Basic::LcAngle.
| bool Eaagles::Simulation::Player::setSlotInitLon | ( | const Basic::LcNumber *const | msg | ) | [virtual] |
| bool Eaagles::Simulation::Player::setSlotEulerAngles | ( | Basic::LcList *const | msg | ) | [virtual] |
Sets initial euler angles (roll, pitch, heading).
| bool Eaagles::Simulation::Player::setSlotInitRoll | ( | const Basic::LcNumber *const | msg | ) | [virtual] |
Sets initial roll angle.
| bool Eaagles::Simulation::Player::setSlotInitPitch | ( | const Basic::LcNumber *const | msg | ) | [virtual] |
Sets initial pitch angle.
| bool Eaagles::Simulation::Player::setSlotInitHeading | ( | const Basic::LcNumber *const | msg | ) | [virtual] |
Sets initial heading angle.
| bool Eaagles::Simulation::Player::setSlotInitVelocity | ( | const Basic::LcNumber *const | msg | ) | [virtual] |
Sets initial velocity.
| bool Eaagles::Simulation::Player::setSlotInitMode | ( | Basic::LcString *const | msg | ) | [virtual] |
Sets initial player mode.
| bool Eaagles::Simulation::Player::setSlotID | ( | const Basic::LcNumber *const | msg | ) | [virtual] |
Sets player ID.
| bool Eaagles::Simulation::Player::setSlotTerrainElevReq | ( | const Basic::LcNumber *const | msg | ) | [virtual] |
Sets terrain elevation request flag.
| bool Eaagles::Simulation::Player::setSlotPositionFreeze | ( | const Basic::LcNumber *const | msg | ) | [virtual] |
Sets position freeze flag.
| bool Eaagles::Simulation::Player::setSlotAltitudeFreeze | ( | const Basic::LcNumber *const | msg | ) | [virtual] |
Sets altitude freeze flag.
| bool Eaagles::Simulation::Player::setSlotAttitudeFreeze | ( | const Basic::LcNumber *const | msg | ) | [virtual] |
Sets attitude freeze flag.
| bool Eaagles::Simulation::Player::setSlotFuelFreeze | ( | const Basic::LcNumber *const | msg | ) | [virtual] |
Sets fuel freeze flag.
| bool Eaagles::Simulation::Player::setSlotCrashOverride | ( | const Basic::LcNumber *const | msg | ) | [virtual] |
Sets crash override flag.
| bool Eaagles::Simulation::Player::setSlotKillOverride | ( | const Basic::LcNumber *const | msg | ) | [virtual] |
Sets kill override flag.
| bool Eaagles::Simulation::Player::setSlotDataLogTime | ( | const Basic::LcNumber *const | msg | ) | [virtual] |
Sets data log time.
| bool Eaagles::Simulation::Player::setSlotCamouflageType | ( | const Basic::LcNumber *const | msg | ) | [virtual] |
Sets user defined camouflage type.
| bool Eaagles::Simulation::Player::killedNotification | ( | Player *const | killedBy = 0 |
) | [virtual] |
| bool Eaagles::Simulation::Player::detonationNotification | ( | Weapon *const | msg | ) | [virtual] |
Handles the DETONATION_EVENT event (targeted at us).
| bool Eaagles::Simulation::Player::collisionNotification | ( | Player *const | msg | ) | [virtual] |
Handles the CRASH_EVENT event with another player.
Reimplemented in Eaagles::Simulation::Bomb, Eaagles::Simulation::Effects, and Eaagles::Simulation::Weapon.
| bool Eaagles::Simulation::Player::crashNotification | ( | ) | [virtual] |
Handles the CRASH_EVENT event.
Reimplemented in Eaagles::Simulation::Bomb, Eaagles::Simulation::Effects, and Eaagles::Simulation::Weapon.
| bool Eaagles::Simulation::Player::onRfEmissionEventPlayer | ( | Emission *const | msg | ) | [virtual] |
Handles the RF_EMISSION event.
| bool Eaagles::Simulation::Player::onWpnRelEvent | ( | const Basic::LcBoolean *const | msg = 0 |
) | [virtual] |
Handles the WPN_REL_EVENT event.
| bool Eaagles::Simulation::Player::onTriggerSwEvent | ( | const Basic::LcBoolean *const | msg = 0 |
) | [virtual] |
Handles the TRIGGER_SW_EVENT event.
| bool Eaagles::Simulation::Player::onTgtStepEvent | ( | ) | [virtual] |
Handles the TGT_STEP_EVENT event.
| bool Eaagles::Simulation::Player::onDatalinkMessageEventPlayer | ( | Basic::LcObject *const | msg | ) | [virtual] |
Handles the DATALINK_MESSAGE event.
| bool Eaagles::Simulation::Player::onReflectionsRequest | ( | Basic::LcComponent *const | msg | ) | [virtual] |
Handles the RF_REFLECTIONS_REQUEST event.
| bool Eaagles::Simulation::Player::onReflectionsCancel | ( | const Basic::LcComponent *const | msg | ) | [virtual] |
Handles the RF_REFLECTIONS_CANCEL event.
| void Eaagles::Simulation::Player::processDetonation | ( | const LCreal | detRange, | |
| Weapon *const | wpn = 0 | |||
| ) | [virtual] |
Process weapon detonation.
| double Eaagles::Simulation::Player::getInitLatitude | ( | ) | [inline] |
SLS - get the initial latitude and longitude.
| double Eaagles::Simulation::Player::getInitLongitude | ( | ) | [inline] |
| void Eaagles::Simulation::Player::dynamics | ( | const LCreal | dt = 0.0 |
) | [virtual] |
| void Eaagles::Simulation::Player::updateTC | ( | const LCreal | dt = 0.0 |
) | [virtual] |
Updates the time-critical (real-time) section of the component.This routine will be called by a tcFrame(). Derived classes will provided updateTC() routines, as needed.
Reimplemented from Eaagles::Basic::LcComponent.
Reimplemented in Eaagles::Simulation::Weapon.
| void Eaagles::Simulation::Player::updateData | ( | const LCreal | dt = 0.0 |
) | [virtual] |
Updates the non-time-critical (background) section of the component, where 'dt' is the delta time in seconds between calls. Derived classes will provided updateData() routines, as needed.
Reimplemented from Eaagles::Basic::LcComponent.
Reimplemented in Eaagles::Simulation::Weapon.
| virtual bool Eaagles::Simulation::Player::event | ( | const int | event, | |
| Basic::LcObject *const | obj = 0 | |||
| ) | [virtual] |
Sends the 'event' message with optional argument 'obj'. Returns true if the 'event' has been received and used. Derived classes will provided event() handlers, as needed. Event() can be called from an updateTC() routines, therefore,the event message must be processed quickly (i.e., no waits)
Reimplemented from Eaagles::Basic::LcComponent.
Reimplemented in Eaagles::Simulation::Bomb, Eaagles::Simulation::Missile, and Eaagles::Simulation::Weapon.
| void Eaagles::Simulation::Player::reset | ( | ) | [virtual] |
Reinitialize this component to its state at the beginning of the simulation.
Reimplemented from Eaagles::Basic::LcComponent.
Reimplemented in Eaagles::Simulation::AirVehicle, Eaagles::Simulation::Bomb, Eaagles::Simulation::Bullet, Eaagles::Simulation::Missile, and Eaagles::Simulation::Weapon.
| bool Eaagles::Simulation::Player::setTerrainElevReq | ( | const bool | b | ) | [protected, virtual] |
Sets terrain elevation request flag.
| bool Eaagles::Simulation::Player::setSimulation | ( | Simulation *const | s | ) | [protected, virtual] |
Sets who controls our simulation.
| bool Eaagles::Simulation::Player::computeEulerRates | ( | ) | [protected, virtual] |
Computer the euler angle rates.
| void Eaagles::Simulation::Player::printTimingStats | ( | ) | [protected, virtual] |
| bool Eaagles::Simulation::Player::setDynamicsModel | ( | Basic::LcPair *const | sys | ) | [private] |
Sets our dynamics model.
These systems, from our subcomponent list, can only be set by reset()
| bool Eaagles::Simulation::Player::setDatalink | ( | Basic::LcPair *const | n | ) | [private] |
Sets our Datalink models.
| bool Eaagles::Simulation::Player::setGimbal | ( | Basic::LcPair *const | n | ) | [private] |
Sets our gimbal/antenna/optic models.
| bool Eaagles::Simulation::Player::setNavigation | ( | Basic::LcPair *const | n | ) | [private] |
Sets our navigation model.
| bool Eaagles::Simulation::Player::setOnboardComputer | ( | Basic::LcPair *const | s | ) | [private] |
Sets our onboard computer model.
| bool Eaagles::Simulation::Player::setPilot | ( | Basic::LcPair *const | p | ) | [private] |
Sets our pilot model.
| bool Eaagles::Simulation::Player::setRadio | ( | Basic::LcPair *const | n | ) | [private] |
Sets our radio models.
| bool Eaagles::Simulation::Player::setSensor | ( | Basic::LcPair *const | n | ) | [private] |
Sets our sensor models.
| bool Eaagles::Simulation::Player::setStoresMgr | ( | Basic::LcPair *const | s | ) | [private] |
Sets our stores management model.
double Eaagles::Simulation::Player::latitude [private] |
Position latitude (degs).
double Eaagles::Simulation::Player::longitude [private] |
Position longitude (degs).
osg::Vec3 Eaagles::Simulation::Player::posVec [private] |
Position vector (m) [ x, y, z ] NED.
osg::Vec3 Eaagles::Simulation::Player::velVec [private] |
Velocity Vector (earth) (m/sec) [ ue, ve, we ] NED.
osg::Vec3 Eaagles::Simulation::Player::accelVec [private] |
Acceleration Vector (earth) ((m/sec)/sec) [ due, dve, dwe ] NED.
osg::Vec3 Eaagles::Simulation::Player::velVecBody [private] |
Velocity Vector (body) (m/s).
LCreal Eaagles::Simulation::Player::vp [private] |
Total Velocity (m/s).
LCreal Eaagles::Simulation::Player::gndSpd [private] |
Ground Speed (m/s).
LCreal Eaagles::Simulation::Player::gndTrk [private] |
Ground Track (rad).
Mode Eaagles::Simulation::Player::mode [private] |
Player mode (see above).
osg::Vec3 Eaagles::Simulation::Player::angles [private] |
(Euler) angles (rad) [ roll pitch yaw ] AKA [ phi theta psi ]
osg::Vec3 Eaagles::Simulation::Player::angularVel [private] |
Angular velocities (body) (rad/sec) [ pa, qa, ra ].
osg::Vec3 Eaagles::Simulation::Player::eulerRates [private] |
Angular velocities (earth) (rad/sec) [ delta phi, delta theta, delta psi ].
osg::Quat Eaagles::Simulation::Player::q [private] |
Quaternions.
osg::Matrix Eaagles::Simulation::Player::rm [private] |
Rotational Matrix: fl1 = rm(0,0); fm1 = rm(0,1); fn1 = rm(0,2); fl2 = rm(1,0); fm2 = rm(1,1); fn2 = rm(1,2); fl3 = rm(2,0); fm3 = rm(2,1); fn3 = rm(2,2);
LCreal Eaagles::Simulation::Player::sphi [private] |
Sin/Cos of roll (phi).
LCreal Eaagles::Simulation::Player::cphi [private] |
LCreal Eaagles::Simulation::Player::stheta [private] |
Sin/Cos of pitch (theta).
LCreal Eaagles::Simulation::Player::ctheta [private] |
LCreal Eaagles::Simulation::Player::spsi [private] |
Sin/Cos of yaw (psi).
LCreal Eaagles::Simulation::Player::cpsi [private] |
LCreal Eaagles::Simulation::Player::tElev [private] |
Terrain Elevation (m -- up+).
LCreal Eaagles::Simulation::Player::tElevAge [private] |
Time since last elevation update (sec -- or negative if not set).
bool Eaagles::Simulation::Player::tElevReq [private] |
Height-Of-Terrain is required.
Data log timer (sec).
Data log time (sec).
Dead-Reckoning algorithm.
LCreal Eaagles::Simulation::Player::damage [private] |
Damage state from no damage(0.0) to destroyed (1.0).
LCreal Eaagles::Simulation::Player::smoking [private] |
Smoke state from no smoke (0.0) to maximum (1.0).
LCreal Eaagles::Simulation::Player::flames [private] |
Flames state from no flames (0.0) to maximum (1.0).
unsigned int Eaagles::Simulation::Player::camouflage [private] |
Camouflage type (0 is none).
osg::Vec3 Eaagles::Simulation::Player::initAngles [private] |
Initial (Euler) angles (rad).
Freeze, Reset, Initialization and Controls
osg::Vec3 Eaagles::Simulation::Player::initPosVec [private] |
Initial Position vector [x,y,z] NED (meters).
double Eaagles::Simulation::Player::initLat [private] |
Initial latitude (degs).
double Eaagles::Simulation::Player::initLon [private] |
Initial longitude (degs).
LCreal Eaagles::Simulation::Player::initVp [private] |
Initial Total Velocity.
Mode Eaagles::Simulation::Player::initMode [private] |
Initial mode.
bool Eaagles::Simulation::Player::posFrz [private] |
Player's position is frozen.
bool Eaagles::Simulation::Player::altFrz [private] |
Player's altitude is frozen.
bool Eaagles::Simulation::Player::attFrz [private] |
Player's attitude is frozen.
bool Eaagles::Simulation::Player::fuelFrz [private] |
Player's fuel quanity is frozen.
bool Eaagles::Simulation::Player::crashOverride [private] |
If true, player can NOT crash.
bool Eaagles::Simulation::Player::killOverride [private] |
If true, player can NOT be killed.
bool Eaagles::Simulation::Player::altSlaved [private] |
Player's altitude is slaved to the flights software.
bool Eaagles::Simulation::Player::posSlaved [private] |
Player'r position is slaved to the flights software.
Player's Name.
Side Eaagles::Simulation::Player::side [private] |
SPtr<Basic::LcString> Eaagles::Simulation::Player::type [private] |
Type of vehicle.
SPtr<RfSignature> Eaagles::Simulation::Player::signature [private] |
Player's RCS signature.
bool Eaagles::Simulation::Player::justKilled [private] |
Just killed flag.
unsigned short Eaagles::Simulation::Player::killedBy [private] |
Killed by player ID.
unsigned short Eaagles::Simulation::Player::id [private] |
Player ID.
osg::Vec3 Eaagles::Simulation::Player::smoothVel [private] |
Smoothing Velocity (m/s).
Smoothing (Networked players)
LCreal Eaagles::Simulation::Player::smoothTim [private] |
Smoothing Time.
Nib* Eaagles::Simulation::Player::nib [private] |
int Eaagles::Simulation::Player::netID [private] |
Network id.
Basic::LcPair* Eaagles::Simulation::Player::dyn [private] |
Dynamics Model.
Datalink model.
Basic::LcPair* Eaagles::Simulation::Player::gimbal [private] |
Gimbal/antenna/optic models.
Basic::LcPair* Eaagles::Simulation::Player::nav [private] |
Basic::LcPair* Eaagles::Simulation::Player::obc [private] |
Onboard Computer.
Basic::LcPair* Eaagles::Simulation::Player::pilot [private] |
Pilot Model (e.g., autopilot, PDL).
Basic::LcPair* Eaagles::Simulation::Player::radio [private] |
Radio models.
Basic::LcPair* Eaagles::Simulation::Player::sensor [private] |
R/F Sensor models.
Basic::LcPair* Eaagles::Simulation::Player::sms [private] |
Stores Management System.
Simulation* Eaagles::Simulation::Player::sim [private] |
The simulation system that owns us; Most likely the same as our Basic::LcComponent::container, but here for quick reference.
const int Eaagles::Simulation::Player::MAX_RF_REFLECTIONS = 4 [static, private] |
Max number of reflected emissions we'll send (let's keep it small).
Objects that are interested in the emissions hitting us.
Request for reflected emissions will timeout.
1.5.0