VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DistributedSimulationDriver5.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2011 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include <vrvCore/DtDriver.h>
12 
13 class DtDetonationPdu;
14 typedef DtDetonationPdu DtDetonationInteraction;
15 
16 namespace makVrv
17 {
18 
19 class DtSceneObjectAgent;
20 class DtModelAgent;
21 
22 namespace tutorialDistributedSimulation5
23 {
24 
25 class DistributedSimulationConnection;
26 
28 {
29 public:
31  typedef std::pair<DtSceneObjectAgent*, DtModelAgent*> SceneObjectAndModelPair;
33  typedef std::vector<SceneObjectAndModelPair> SceneObjectAndModelList;
35 
38 
41 
43  virtual const std::string& className() const;
44 
45 protected:
46 
49  virtual bool onStart();
50 
52  virtual bool onStop();
53 
55  virtual bool onTick();
56 
59  static void processDetonationCb(DtDetonationInteraction* inter, void* usr);
60 
63  virtual void processDetonation(DtDetonationInteraction* inter);
64 
65 protected:
66 
70 };
71 
72 }
73 }
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 &quot;directs&quot; things ...
Definition: DtDriver.h:31
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 const std::string & instanceName() const
Get this driver&#39;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

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)