VR-Link API Documentation for HLA 1516
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes
DtVehicleSim Class Reference

Part of the F18 example. More...

+ Collaboration diagram for DtVehicleSim:

List of all members.

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.
virtual ~DtVehicleSim ()
 Destructor.
virtual void init (DtConstVector initPos, double initSpeed, double initHeading, double initTRadius, double initPitch, bool autoRoll, double initRoll)
 Set initial values for simulation parameters.
virtual void simTick (DtTime dt)
 Call once per frame to simulate, and make necessary VR-Link calls.
virtual void fireMunition (const DtGlobalObjectDesignator &tg)
 Fire and detonate functions.
virtual void fireMunition ()
virtual void detonateMunition ()
virtual void munitionTick ()
virtual void processDetonation (DtDetonationInteraction *inter)
 Reaction to detonations.
virtual int checkDetonation (DtDetonationInteraction *inter)
virtual void reactToDamage ()
virtual bool isDestroyed ()
virtual DtTime timeDestroyed ()
virtual void toggleEmissions ()
 Emissions (radar)
virtual void enableEmissions ()
virtual void disableEmissions ()
virtual void emissionsTick (double dt)

Static Public Member Functions

static void setLethalDetonationRange (double range)
static void setMunitionFlightTime (DtTime time)

Protected Member Functions

virtual void moveArtParts (DtTime dt)

Static Protected Member Functions

static void theDetonationCb (DtDetonationInteraction *, void *)

Protected Attributes

DtExerciseConnmyExConn
DtEntityPublishermyEntityPub
DtEmitterSystemPublishermySysPub
DtEntityStateRepositorymyESR
DtTopoViewmyTopoView
DtReflectedEntityListmyRel
DtEmitterBeamRepositorymyBeam
double mySpeed
double myTurnRadius
double myTurnRate
double myScalarAccel
double myBeamTime
DtTaitBryan myEuler
DtVector myPos
 topographic Euler angles
DtVector myVel
 in topographic (N, E, down) coordinates
DtVector myAccel
 in topographic (N, E, down) coordinates
DtVector myRotRate
 in topographic (N, E, down) coordinates
float myTurretAz
 in body coordinates
float myTurretAzRate
float myGunElev
float myGunElevRate
DtFireInteractionmyFire
DtTime myDetonateTime
DtTime myTimeDestroyed
bool myIsDestroyed
bool myHaveArtParts
bool myEmissionsEnabled

Static Protected Attributes

static double theLethalDetonationRange
static DtTime theMunitionFlightTime

Detailed Description

Part of the F18 example.

This class simulates a vehicle.


Constructor & Destructor Documentation

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 DtVehicleSim::~DtVehicleSim ( ) [virtual]

Destructor.


Member Function Documentation

virtual int DtVehicleSim::checkDetonation ( DtDetonationInteraction inter) [virtual]
virtual void DtVehicleSim::detonateMunition ( ) [virtual]
virtual void DtVehicleSim::disableEmissions ( ) [virtual]
virtual void DtVehicleSim::emissionsTick ( double  dt) [virtual]
virtual void DtVehicleSim::enableEmissions ( ) [virtual]
virtual void DtVehicleSim::fireMunition ( const DtGlobalObjectDesignator tg) [virtual]

Fire and detonate functions.

virtual void DtVehicleSim::fireMunition ( ) [virtual]
virtual void DtVehicleSim::init ( DtConstVector  initPos,
double  initSpeed,
double  initHeading,
double  initTRadius,
double  initPitch,
bool  autoRoll,
double  initRoll 
) [virtual]

Set initial values for simulation parameters.

virtual bool DtVehicleSim::isDestroyed ( ) [virtual]
virtual void DtVehicleSim::moveArtParts ( DtTime  dt) [protected, virtual]
virtual void DtVehicleSim::munitionTick ( ) [virtual]
virtual void DtVehicleSim::processDetonation ( DtDetonationInteraction inter) [virtual]

Reaction to detonations.

virtual void DtVehicleSim::reactToDamage ( ) [virtual]
static void DtVehicleSim::setLethalDetonationRange ( double  range) [static]
static void DtVehicleSim::setMunitionFlightTime ( DtTime  time) [static]
virtual void DtVehicleSim::simTick ( DtTime  dt) [virtual]

Call once per frame to simulate, and make necessary VR-Link calls.

static void DtVehicleSim::theDetonationCb ( DtDetonationInteraction ,
void *   
) [static, protected]
virtual DtTime DtVehicleSim::timeDestroyed ( ) [virtual]
virtual void DtVehicleSim::toggleEmissions ( ) [virtual]

Emissions (radar)


Member Data Documentation

in topographic (N, E, down) coordinates

double DtVehicleSim::myBeamTime [protected]
float DtVehicleSim::myGunElev [protected]
float DtVehicleSim::myGunElevRate [protected]
bool DtVehicleSim::myHaveArtParts [protected]
bool DtVehicleSim::myIsDestroyed [protected]

topographic Euler angles

in topographic (N, E, down) coordinates

double DtVehicleSim::myScalarAccel [protected]
double DtVehicleSim::mySpeed [protected]
double DtVehicleSim::myTurnRadius [protected]
double DtVehicleSim::myTurnRate [protected]
float DtVehicleSim::myTurretAz [protected]

in body coordinates

float DtVehicleSim::myTurretAzRate [protected]

in topographic (N, E, down) coordinates

double DtVehicleSim::theLethalDetonationRange [static, protected]

The documentation for this class was generated from the following file:

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)