![]() |
VR-Link API Documentation for HLA 1.3
|
Part of the F18 example. More...
Collaboration diagram for DtVehicleSim:Public Member Functions | |
| DtVehicleSim (double refLat, double refLon, DtExerciseConn *conn, DtReflectedEntityList *rel, const DtEntityIdentifier &id, const DtEntityType &type, const char *name, const char *markings, const DtDeadReckonTypes alg, bool haveArtParts) | |
| Constructor. More... | |
| virtual | ~DtVehicleSim () |
| Destructor. More... | |
| virtual void | init (DtConstVector initPos, double initSpeed, double initHeading, double initTRadius, double initPitch, bool autoRoll, double initRoll) |
| Set initial values for simulation parameters. More... | |
| virtual void | simTick (DtTime dt) |
| Call once per frame to simulate, and make necessary VR-Link calls. More... | |
| virtual void | setTurnRadius (double radius) |
| virtual double | turnRadius () const |
| virtual void | fireMunition (const DtGlobalObjectDesignator &tg) |
| Fire and detonate functions. More... | |
| virtual void | fireMunition () |
| virtual void | detonateMunition () |
| virtual void | munitionTick () |
| virtual void | processDetonation (DtDetonationInteraction *inter) |
| Reaction to detonations. More... | |
| virtual int | checkDetonation (DtDetonationInteraction *inter) |
| virtual void | reactToDamage () |
| virtual bool | isDestroyed () |
| virtual DtTime | timeDestroyed () |
| virtual void | toggleEmissions () |
| Emissions (radar) More... | |
| virtual void | enableEmissions () |
| virtual void | disableEmissions () |
| virtual void | emissionsTick (double dt) |
| DtVehicleSim (double refLat, double refLon, DtExerciseConn *conn, DtReflectedEntityList *rel, const DtEntityIdentifier &id, const DtEntityType &type, const char *name, const char *markings, const DtDeadReckonTypes alg, bool haveArtParts, DtObjectPublisherContainer &pubContainer, DtTime timeSpacing) | |
| Constructor. More... | |
| virtual | ~DtVehicleSim () |
| Destructor. More... | |
| virtual void | init (DtConstVector initPos, double initSpeed, double initHeading, double initTRadius, double initPitch, bool autoRoll, double initRoll, int num) |
| Set initial values for simulation parameters. More... | |
| virtual void | simulate () |
| Call once per frame to simulate. More... | |
| virtual void | fireMunition (const DtGlobalObjectDesignator &tg) |
| Fire and detonate functions. More... | |
| virtual void | fireMunition () |
| virtual void | detonateMunition () |
| virtual void | munitionUpdate () |
| virtual void | reactToDetonation () |
| Reaction to detonations. More... | |
| virtual int | checkDetonation () |
| virtual void | reactToDamage () |
| virtual bool | isDestroyed () |
| virtual DtTime | timeDestroyed () |
| virtual void | toggleEmissions () |
| Emissions (radar) More... | |
| virtual void | enableEmissions () |
| virtual void | disableEmissions () |
| virtual void | emissionsUpdate () |
Static Public Member Functions | |
| static void | setLethalDetonationRange (double range) |
| static void | setMunitionFlightTime (DtTime time) |
| static void | setDetonation (const DtDetonationInteraction *theDetonation) |
| static void | setLethalDetonationRange (double range) |
| static void | setMunitionFlightTime (DtTime time) |
| static void | setSimDeltaTime (DtTime theDt) |
Protected Member Functions | |
| virtual void | moveArtParts (DtTime dt) |
| virtual void | emitterSystemUpdateCallback (DtReflectedEmitterSystem *obj) |
| virtual void | emitterSystemAdditionCallback (DtReflectedEmitterSystem *obj) |
| virtual void | emitterSystemRemovalCallback (DtReflectedEmitterSystem *obj) |
| virtual bool | emitterSystemDiscoveryCondition (DtReflectedEmitterSystem *refObj) |
| virtual void | moveArtParts () |
Static Protected Member Functions | |
| static void | emitterSystemUpdateCallback (DtReflectedEmitterSystem *obj, void *usr) |
| static void | emitterSystemAdditionCallback (DtReflectedEmitterSystem *obj, void *usr) |
| static void | emitterSystemRemovalCallback (DtReflectedEmitterSystem *obj, void *usr) |
| static bool | emitterSystemDiscoveryCondition (DtReflectedObject *refObj, void *usr) |
| static void | theDetonationCb (DtDetonationInteraction *, void *) |
Protected Attributes | |
| DtExerciseConn * | myExConn |
| DtEntityPublisher * | myEntityPub |
| DtEmitterSystemPublisher * | mySysPub |
| DtEntityStateRepository * | myESR |
| DtTopoView * | myTopoView |
| DtReflectedEntityList * | myRel |
| DtEmitterBeamRepository * | myBeam |
| DtReflectedEmitterSystemList * | myRefEmitList |
| float | mySpeed |
| float | myTurnRadius |
| float | myTurnRate |
| float | myScalarAccel |
| float | myRoll |
| bool | myAutoRoll |
| DtTaitBryan | myEuler |
| DtVector | myPos |
| topographic Euler angles More... | |
| DtVector32 | myVel |
| in topographic (N, E, down) coordinates More... | |
| DtVector32 | myAccel |
| in topographic (N, E, down) coordinates More... | |
| DtVector32 | myRotRate |
| in topographic (N, E, down) coordinates More... | |
| float | myTurretAz |
| in body coordinates More... | |
| float | myTurretAzRate |
| float | myGunElev |
| float | myGunElevRate |
| DtFireInteraction * | myFire |
| DtTime | myDetonateTime |
| DtTime | myTimeDestroyed |
| bool | myIsDestroyed |
| bool | myHaveArtParts |
| bool | myEmissionsEnabled |
| DtObjectPublisherContainer & | myPublishedObjects |
| double | myBeamTime |
| DtTime | myTimeSpacing |
Static Protected Attributes | |
| static double | theLethalDetonationRange |
| static DtTime | theMunitionFlightTime |
| static DtTime | myDt |
| static const DtDetonationInteraction * | theDetonation |
Part of the F18 example.
This class simulates a vehicle.
| DtVehicleSim::DtVehicleSim | ( | double | refLat, |
| double | refLon, | ||
| DtExerciseConn * | conn, | ||
| DtReflectedEntityList * | rel, | ||
| const DtEntityIdentifier & | id, | ||
| const DtEntityType & | type, | ||
| const char * | name, | ||
| const char * | markings, | ||
| const DtDeadReckonTypes | alg, | ||
| bool | haveArtParts | ||
| ) |
Constructor.
refLat and refLon are in radians. id is a DIS-style site-app-entity triple, regardless of whether we are using HLA or DIS.
|
virtual |
Destructor.
| DtVehicleSim::DtVehicleSim | ( | double | refLat, |
| double | refLon, | ||
| DtExerciseConn * | conn, | ||
| DtReflectedEntityList * | rel, | ||
| const DtEntityIdentifier & | id, | ||
| const DtEntityType & | type, | ||
| const char * | name, | ||
| const char * | markings, | ||
| const DtDeadReckonTypes | alg, | ||
| bool | haveArtParts, | ||
| DtObjectPublisherContainer & | pubContainer, | ||
| DtTime | timeSpacing | ||
| ) |
Constructor.
refLat and refLon are in radians. id is a DIS-style site-app-entity triple, regardless of whether we are using HLA or DIS.
|
virtual |
Destructor.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
staticprotected |
|
protectedvirtual |
|
staticprotected |
|
protectedvirtual |
|
staticprotected |
|
protectedvirtual |
|
staticprotected |
|
protectedvirtual |
|
virtual |
|
virtual |
|
virtual |
Fire and detonate functions.
|
virtual |
|
virtual |
Fire and detonate functions.
|
virtual |
|
virtual |
Set initial values for simulation parameters.
|
virtual |
Set initial values for simulation parameters.
|
virtual |
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
|
virtual |
|
virtual |
Reaction to detonations.
|
virtual |
|
virtual |
|
virtual |
Reaction to detonations.
|
static |
|
static |
|
static |
|
static |
|
static |
|
virtual |
|
virtual |
Call once per frame to simulate, and make necessary VR-Link calls.
|
virtual |
Call once per frame to simulate.
|
staticprotected |
|
virtual |
|
virtual |
|
virtual |
Emissions (radar)
|
virtual |
Emissions (radar)
|
virtual |
|
protected |
in topographic (N, E, down) coordinates
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
Referenced by setSimDeltaTime().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
topographic Euler angles
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
in topographic (N, E, down) coordinates
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
in body coordinates
|
protected |
|
protected |
in topographic (N, E, down) coordinates
|
staticprotected |
|
staticprotected |
|
staticprotected |