VR-Link API Documentation for HLA 1.3
List of all members | 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:

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)
protectedvirtual
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 *   
)
staticprotected
virtual DtTime DtVehicleSim::timeDestroyed ( )
virtual
virtual void DtVehicleSim::toggleEmissions ( )
virtual

Emissions (radar)

Member Data Documentation

DtVector DtVehicleSim::myAccel
protected

in topographic (N, E, down) coordinates

DtEmitterBeamRepository* DtVehicleSim::myBeam
protected
double DtVehicleSim::myBeamTime
protected
DtTime DtVehicleSim::myDetonateTime
protected
bool DtVehicleSim::myEmissionsEnabled
protected
DtEntityPublisher* DtVehicleSim::myEntityPub
protected
DtEntityStateRepository* DtVehicleSim::myESR
protected
DtTaitBryan DtVehicleSim::myEuler
protected
DtExerciseConn* DtVehicleSim::myExConn
protected
DtFireInteraction* DtVehicleSim::myFire
protected
float DtVehicleSim::myGunElev
protected
float DtVehicleSim::myGunElevRate
protected
bool DtVehicleSim::myHaveArtParts
protected
bool DtVehicleSim::myIsDestroyed
protected
DtVector DtVehicleSim::myPos
protected

topographic Euler angles

DtReflectedEntityList* DtVehicleSim::myRel
protected
DtVector DtVehicleSim::myRotRate
protected

in topographic (N, E, down) coordinates

double DtVehicleSim::myScalarAccel
protected
double DtVehicleSim::mySpeed
protected
DtEmitterSystemPublisher* DtVehicleSim::mySysPub
protected
DtTime DtVehicleSim::myTimeDestroyed
protected
DtTopoView* DtVehicleSim::myTopoView
protected
double DtVehicleSim::myTurnRadius
protected
double DtVehicleSim::myTurnRate
protected
float DtVehicleSim::myTurretAz
protected

in body coordinates

float DtVehicleSim::myTurretAzRate
protected
DtVector DtVehicleSim::myVel
protected

in topographic (N, E, down) coordinates

double DtVehicleSim::theLethalDetonationRange
staticprotected
DtTime DtVehicleSim::theMunitionFlightTime
staticprotected

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

Document ID: Generated on Wed Oct 23 22:25:48 EDT 2013 from SVN revision 132765
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)