VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DistributedSimulationDriver3A.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 DtExerciseConn;
14 class DtDetonationPdu;
15 
16 typedef DtDetonationPdu DtDetonationInteraction;
17 
18 namespace makVrv
19 {
20 namespace tutorialDistributedSimulation3A
21 {
22 
24 {
25 public:
26 
29 
32 
34  virtual const std::string& className() const;
35 
36 protected:
37 
40  virtual bool onStart();
41 
43  virtual bool onStop();
44 
46  virtual bool onTick();
47 
50  static void processDetonationCb(DtDetonationInteraction* inter, void* usr);
51 
54  virtual void processDetonation(DtDetonationInteraction* inter) const;
55 
56 protected:
57 
58  DtExerciseConn* myConnection;
60 };
61 
62 }
63 }
virtual bool onStart()
Called when the driver is started by the display engine Restores state that existed the last time the...
virtual const std::string & className() const
Get the class name as a string.
virtual void processDetonation(DtDetonationInteraction *inter) const
Called from static callback function processDetonationCb. Passes interaction data to the user object ...
Definition: DistributedSimulationDriver3A.h:23
virtual bool onStop()
Called when the driver is stopped by the display engine.
virtual bool onTick()
Tick the driver. If this driver needs to perform actions per the sim clock.
bool myConnectionState
Definition: DistributedSimulationDriver3A.h:59
DistributedSimulationDriver(DtAgentManager &agentManager, const std::string &instanceName)
CTOR.
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
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.
Contains makVrv:DtDriver class.
virtual const std::string & instanceName() const
Get this driver&#39;s instance name.
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.
DtExerciseConn * myConnection
Definition: DistributedSimulationDriver3A.h:58

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)