VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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. 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 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

DtExerciseConnmyExConn
 
DtEntityPublishermyEntityPub
 
DtEmitterSystemPublishermySysPub
 
DtEntityStateRepositorymyESR
 
DtTopoViewmyTopoView
 
DtReflectedEntityListmyRel
 
DtEmitterBeamRepositorymyBeam
 
DtReflectedEmitterSystemListmyRefEmitList
 
float mySpeed
 
float myTurnRadius
 
float myTurnRate
 
float myScalarAccel
 
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
 
DtFireInteractionmyFire
 
DtTime myDetonateTime
 
DtTime myTimeDestroyed
 
bool myIsDestroyed
 
bool myHaveArtParts
 
bool myEmissionsEnabled
 
DtObjectPublisherContainermyPublishedObjects
 
double myBeamTime
 
DtTime myTimeSpacing
 

Static Protected Attributes

static double theLethalDetonationRange
 
static DtTime theMunitionFlightTime
 
static DtTime myDt
 
static const
DtDetonationInteraction
theDetonation
 

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.

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

Destructor.

Member Function Documentation

virtual int DtVehicleSim::checkDetonation ( DtDetonationInteraction inter)
virtual
virtual int DtVehicleSim::checkDetonation ( )
virtual
virtual void DtVehicleSim::detonateMunition ( )
virtual
virtual void DtVehicleSim::detonateMunition ( )
virtual
virtual void DtVehicleSim::disableEmissions ( )
virtual
virtual void DtVehicleSim::disableEmissions ( )
virtual
virtual void DtVehicleSim::emissionsTick ( double  dt)
virtual
virtual void DtVehicleSim::emissionsUpdate ( )
virtual
static void DtVehicleSim::emitterSystemAdditionCallback ( DtReflectedEmitterSystem obj,
void *  usr 
)
staticprotected
virtual void DtVehicleSim::emitterSystemAdditionCallback ( DtReflectedEmitterSystem obj)
protectedvirtual
static bool DtVehicleSim::emitterSystemDiscoveryCondition ( DtReflectedObject refObj,
void *  usr 
)
staticprotected
virtual bool DtVehicleSim::emitterSystemDiscoveryCondition ( DtReflectedEmitterSystem refObj)
protectedvirtual
static void DtVehicleSim::emitterSystemRemovalCallback ( DtReflectedEmitterSystem obj,
void *  usr 
)
staticprotected
virtual void DtVehicleSim::emitterSystemRemovalCallback ( DtReflectedEmitterSystem obj)
protectedvirtual
static void DtVehicleSim::emitterSystemUpdateCallback ( DtReflectedEmitterSystem obj,
void *  usr 
)
staticprotected
virtual void DtVehicleSim::emitterSystemUpdateCallback ( DtReflectedEmitterSystem obj)
protectedvirtual
virtual void DtVehicleSim::enableEmissions ( )
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::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 void DtVehicleSim::init ( DtConstVector  initPos,
double  initSpeed,
double  initHeading,
double  initTRadius,
double  initPitch,
bool  autoRoll,
double  initRoll,
int  num 
)
virtual

Set initial values for simulation parameters.

virtual bool DtVehicleSim::isDestroyed ( )
virtual
virtual bool DtVehicleSim::isDestroyed ( )
virtual
virtual void DtVehicleSim::moveArtParts ( DtTime  dt)
protectedvirtual
virtual void DtVehicleSim::moveArtParts ( )
protectedvirtual
virtual void DtVehicleSim::munitionTick ( )
virtual
virtual void DtVehicleSim::munitionUpdate ( )
virtual
virtual void DtVehicleSim::processDetonation ( DtDetonationInteraction inter)
virtual

Reaction to detonations.

virtual void DtVehicleSim::reactToDamage ( )
virtual
virtual void DtVehicleSim::reactToDamage ( )
virtual
virtual void DtVehicleSim::reactToDetonation ( )
virtual

Reaction to detonations.

static void DtVehicleSim::setDetonation ( const DtDetonationInteraction theDetonation)
static
static void DtVehicleSim::setLethalDetonationRange ( double  range)
static
static void DtVehicleSim::setLethalDetonationRange ( double  range)
static
static void DtVehicleSim::setMunitionFlightTime ( DtTime  time)
static
static void DtVehicleSim::setMunitionFlightTime ( DtTime  time)
static
static void DtVehicleSim::setSimDeltaTime ( DtTime  theDt)
inlinestatic

References myDt.

virtual void DtVehicleSim::simTick ( DtTime  dt)
virtual

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

virtual void DtVehicleSim::simulate ( )
virtual

Call once per frame to simulate.

static void DtVehicleSim::theDetonationCb ( DtDetonationInteraction ,
void *   
)
staticprotected
virtual DtTime DtVehicleSim::timeDestroyed ( )
virtual
virtual DtTime DtVehicleSim::timeDestroyed ( )
virtual
virtual void DtVehicleSim::toggleEmissions ( )
virtual

Emissions (radar)

virtual void DtVehicleSim::toggleEmissions ( )
virtual

Emissions (radar)

Member Data Documentation

DtVector32 DtVehicleSim::myAccel
protected

in topographic (N, E, down) coordinates

DtEmitterBeamRepository * DtVehicleSim::myBeam
protected
double DtVehicleSim::myBeamTime
protected
DtTime DtVehicleSim::myDetonateTime
protected
DtTime DtVehicleSim::myDt
staticprotected

Referenced by setSimDeltaTime().

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

DtObjectPublisherContainer& DtVehicleSim::myPublishedObjects
protected
DtReflectedEmitterSystemList* DtVehicleSim::myRefEmitList
protected
DtReflectedEntityList * DtVehicleSim::myRel
protected
DtVector32 DtVehicleSim::myRotRate
protected

in topographic (N, E, down) coordinates

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

in body coordinates

float DtVehicleSim::myTurretAzRate
protected
DtVector32 DtVehicleSim::myVel
protected

in topographic (N, E, down) coordinates

const DtDetonationInteraction* DtVehicleSim::theDetonation
staticprotected
static double DtVehicleSim::theLethalDetonationRange
staticprotected
static DtTime DtVehicleSim::theMunitionFlightTime
staticprotected

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

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)