VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DistributedSimulationDriver4C.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 
15 namespace makVrv
16 {
17 
18 class ExampleSimulationObjectAgent;
19 
20 namespace tutorialDistributedSimulation4C
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 
48 protected:
49 
50  DtExerciseConn* myConnection;
52  ExampleSimulationObjectAgent* myAgent;
54 };
55 
56 }
57 }
virtual bool onStop()
Called when the driver is stopped by the display engine.
ExampleSimulationObjectAgent * myAgent
Definition: DistributedSimulationDriver4C.h:52
Definition: DistributedSimulationDriver4C.h:23
virtual const std::string & className() const
Get the class name as a string.
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
double myRotationDegree
Definition: DistributedSimulationDriver4C.h:53
bool myConnectionState
Definition: DistributedSimulationDriver4C.h:51
The DtAgentManager manages the distributed scene object framework. This includes the objects and upda...
Definition: DtAgentManager.h:38
Contains makVrv:DtDriver class.
DtExerciseConn * myConnection
Definition: DistributedSimulationDriver4C.h:50
virtual const std::string & instanceName() const
Get this driver&#39;s instance name.
virtual bool onStart()
Called when the driver is started by the display engine Restores state that existed the last time the...
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.
virtual bool onTick()
Tick the driver. If this driver needs to perform actions per the sim clock.

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)