13 class DtDetonationPdu;
19 class DtSceneObjectAgent;
22 namespace tutorialDistributedSimulation5
25 class DistributedSimulationConnection;
43 virtual const std::string&
className()
const;
Definition: DistributedSimulationDriver5.h:27
virtual const std::string & className() const
Get the class name as a string.
virtual bool onStop()
Called when the driver is stopped by the display engine.
virtual bool onStart()
Called when the driver is started by the display engine Restores state that existed the last time the...
static void processDetonationCb(DtDetonationInteraction *inter, void *usr)
Static callback function takes detonation interaction and user object as parameters. Used to pass the interaction data on to the user object by calling processDetonation.
DistributedSimulationDriver(DtAgentManager &agentManager, const std::string &instanceName)
CTOR.
DistributedSimulationConnection * mySimulation
Definition: DistributedSimulationDriver5.h:67
The DtDriver is an abstract class. Developers derive from this to create logic that "directs" things ...
Definition: DtDriver.h:30
DtDetonationPdu DtDetonationInteraction
Definition: DistributedSimulationDriver3A.h:14
The DtAgentManager manages the distributed scene object framework. This includes the objects and upda...
Definition: DtAgentManager.h:38
Contains makVrv:DtDriver class.
virtual ~DistributedSimulationDriver()
DTOR.
virtual const std::string & instanceName() const
Get this driver's instance name.
double myRotationDegree
Definition: DistributedSimulationDriver5.h:69
SceneObjectAndModelList mySceneObjectAgentsList
Definition: DistributedSimulationDriver5.h:68
Definition: DistributedSimulationConnection5.h:22
virtual void processDetonation(DtDetonationInteraction *inter)
Called from static callback function processDetonationCb. Passes interaction data to the user object ...
DtAgentManager & agentManager()
Get the master scene for this host. Do not create drivers using this agentManager, use the sceneInterface as it may replaced the implementation of the sceneInterface.
std::pair< DtSceneObjectAgent *, DtModelAgent * > SceneObjectAndModelPair
Typedefs describing a SceneObject/Model pair and a list of such pairs.
Definition: DistributedSimulationDriver5.h:32
virtual bool onTick()
Tick the driver. If this driver needs to perform actions per the sim clock.
std::vector< SceneObjectAndModelPair > SceneObjectAndModelList
Typedefs describing a SceneObject/Model pair and a list of such pairs.
Definition: DistributedSimulationDriver5.h:33