VR-Link API Documentation for HLA Evolved
 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 | 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 simTime)
 Call once per frame to simulate, and make necessary VR-Link calls. More...
 
virtual void setTurnRadius (double radius)
 
virtual double turnRadius () const
 
const DtVector & position () const
 
virtual void sendMode5Interrogation ()
 
virtual DtString generateEmbeddedSystemName (const char *baseName)
 Given a base embedded system type name (e.g., Emitter, IFF), generate a unique embedded system object name (unique to this host, using incrementing counter, and unique to federation using the host entity's name) More...
 
 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 ()
 
virtual void fireMunition (const DtGlobalObjectDesignator &tg)
 Fire and detonate functions. More...
 
virtual void fireMunition ()
 Fire and detonate functions. More...
 
virtual void warfareTick ()
 Fire and detonate functions. More...
 
virtual void reactToDamage ()
 Reaction to detonations. More...
 
virtual bool isDestroyed ()
 Reaction to detonations. More...
 
virtual DtTime timeDestroyed ()
 Reaction to detonations. More...
 
virtual void toggleEmissions ()
 Emissions (radar) - delegated to DtEmitterComponent More...
 
virtual void enableEmissions ()
 Emissions (radar) - delegated to DtEmitterComponent More...
 
virtual void disableEmissions ()
 Emissions (radar) - delegated to DtEmitterComponent More...
 
virtual void emissionsTick (double dt)
 Emissions (radar) - delegated to DtEmitterComponent More...
 
virtual void switchScanData ()
 Emissions (radar) - delegated to DtEmitterComponent More...
 
virtual void toggleIffSystem ()
 IFF Embedded System - delegated to DtIffComponent More...
 
virtual void enableIffSystem ()
 IFF Embedded System - delegated to DtIffComponent More...
 
virtual void disableIffSystem ()
 IFF Embedded System - delegated to DtIffComponent More...
 
virtual void iffSystemTick (double dt)
 IFF Embedded System - delegated to DtIffComponent More...
 
virtual void toggleLethalIffInterrogation ()
 IFF Lethal Interrogation (IFFEmission.Interrogation) More...
 
virtual void enableLethalIffInterrogation ()
 IFF Lethal Interrogation (IFFEmission.Interrogation) More...
 
virtual void disableLethalIffInterrogation ()
 IFF Lethal Interrogation (IFFEmission.Interrogation) More...
 
virtual void sendLethalInterrogation ()
 IFF Lethal Interrogation (IFFEmission.Interrogation) More...
 

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 moveArtParts ()
 

Protected Attributes

DtExerciseConn * myExConn
 
DtEntityPublisher * myEntityPub
 
DtEntityStateRepository * myESR
 
DtTopoView * myTopoView
 
DtReflectedEntityList * myRel
 
DtEmitterComponent * myEmitterComponent
 
DtIffComponent * myIffComponent
 
DtWarfareComponent * myWarfareComponent
 
DtTime myLastTickTime
 
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
 
bool myHaveArtParts
 
DtTime myTimeDestroyed
 
bool myIsDestroyed
 
int myNextEmbeddedSystemId
 
DtEmitterSystemPublisher * mySysPub
 
DtEmitterBeamRepository * myBeam
 
DtObjectPublisherContainer & myPublishedObjects
 
double myBeamTime
 
DtFireInteraction * myFire
 
DtTime myDetonateTime
 
bool myEmissionsEnabled
 
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 ( )
virtual
virtual void DtVehicleSim::detonateMunition ( )
virtual
virtual void DtVehicleSim::disableEmissions ( )
virtual
virtual void DtVehicleSim::disableEmissions ( )
virtual

Emissions (radar) - delegated to DtEmitterComponent

virtual void DtVehicleSim::disableIffSystem ( )
virtual

IFF Embedded System - delegated to DtIffComponent

virtual void DtVehicleSim::disableLethalIffInterrogation ( )
virtual

IFF Lethal Interrogation (IFFEmission.Interrogation)

virtual void DtVehicleSim::emissionsTick ( double  dt)
virtual

Emissions (radar) - delegated to DtEmitterComponent

virtual void DtVehicleSim::emissionsUpdate ( )
virtual
virtual void DtVehicleSim::enableEmissions ( )
virtual
virtual void DtVehicleSim::enableEmissions ( )
virtual

Emissions (radar) - delegated to DtEmitterComponent

virtual void DtVehicleSim::enableIffSystem ( )
virtual

IFF Embedded System - delegated to DtIffComponent

virtual void DtVehicleSim::enableLethalIffInterrogation ( )
virtual

IFF Lethal Interrogation (IFFEmission.Interrogation)

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

Fire and detonate functions.

virtual DtString DtVehicleSim::generateEmbeddedSystemName ( const char *  baseName)
virtual

Given a base embedded system type name (e.g., Emitter, IFF), generate a unique embedded system object name (unique to this host, using incrementing counter, and unique to federation using the host entity's name)

virtual void DtVehicleSim::iffSystemTick ( double  dt)
virtual

IFF Embedded System - delegated to DtIffComponent

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

Reaction to detonations.

virtual void DtVehicleSim::moveArtParts ( )
protectedvirtual
virtual void DtVehicleSim::moveArtParts ( DtTime  dt)
protectedvirtual
virtual void DtVehicleSim::munitionUpdate ( )
virtual
const DtVector& DtVehicleSim::position ( ) const
inline

References myPos.

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

Reaction to detonations.

virtual void DtVehicleSim::reactToDetonation ( )
virtual

Reaction to detonations.

virtual void DtVehicleSim::sendLethalInterrogation ( )
virtual

IFF Lethal Interrogation (IFFEmission.Interrogation)

virtual void DtVehicleSim::sendMode5Interrogation ( )
virtual
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::setTurnRadius ( double  radius)
virtual
virtual void DtVehicleSim::simTick ( DtTime  simTime)
virtual

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

virtual void DtVehicleSim::simulate ( )
virtual

Call once per frame to simulate.

virtual void DtVehicleSim::switchScanData ( )
virtual

Emissions (radar) - delegated to DtEmitterComponent

virtual DtTime DtVehicleSim::timeDestroyed ( )
virtual
virtual DtTime DtVehicleSim::timeDestroyed ( )
virtual

Reaction to detonations.

virtual void DtVehicleSim::toggleEmissions ( )
virtual

Emissions (radar)

virtual void DtVehicleSim::toggleEmissions ( )
virtual

Emissions (radar) - delegated to DtEmitterComponent

virtual void DtVehicleSim::toggleIffSystem ( )
virtual

IFF Embedded System - delegated to DtIffComponent

virtual void DtVehicleSim::toggleLethalIffInterrogation ( )
virtual

IFF Lethal Interrogation (IFFEmission.Interrogation)

virtual double DtVehicleSim::turnRadius ( ) const
virtual
virtual void DtVehicleSim::warfareTick ( )
virtual

Fire and detonate functions.

Member Data Documentation

DtVector32 DtVehicleSim::myAccel
protected

in topographic (N, E, down) coordinates

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

Referenced by setSimDeltaTime().

bool DtVehicleSim::myEmissionsEnabled
protected
DtEmitterComponent* DtVehicleSim::myEmitterComponent
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
DtIffComponent* DtVehicleSim::myIffComponent
protected
bool DtVehicleSim::myIsDestroyed
protected
DtTime DtVehicleSim::myLastTickTime
protected
int DtVehicleSim::myNextEmbeddedSystemId
protected
DtVector DtVehicleSim::myPos
protected

topographic Euler angles

Referenced by position().

DtObjectPublisherContainer& DtVehicleSim::myPublishedObjects
protected
DtReflectedEntityList * DtVehicleSim::myRel
protected
float DtVehicleSim::myRoll
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

DtWarfareComponent* DtVehicleSim::myWarfareComponent
protected
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 Mon Sep 28 00:09:32 EDT 2026 from SVN revision 295353
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)