VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DistributedSimulationDriver4B.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 DtSceneObjectAgent;
19 class DtModelAgent;
20 
21 namespace tutorialDistributedSimulation4B
22 {
23 
25 {
26 public:
27 
30 
33 
35  virtual const std::string& className() const;
36 
37 protected:
38 
41  virtual bool onStart();
42 
44  virtual bool onStop();
45 
47  virtual bool onTick();
48 
49 protected:
50 
51  DtExerciseConn* myConnection;
53  DtSceneObjectAgent* mySceneObjectAgent;
54  DtModelAgent* mySimpleModel;
56 };
57 
58 }
59 }
DtModelAgent * mySimpleModel
Definition: DistributedSimulationDriver4B.h:54
DtExerciseConn * myConnection
Definition: DistributedSimulationDriver4B.h:51
double myRotationDegree
Definition: DistributedSimulationDriver4B.h:55
virtual bool onTick()
Tick the driver. If this driver needs to perform actions per the sim clock.
virtual bool onStop()
Called when the driver is stopped by the display engine.
virtual const std::string & className() const
Get the class name as a string.
bool myConnectionState
Definition: DistributedSimulationDriver4B.h:52
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
The DtAgentManager manages the distributed scene object framework. This includes the objects and upda...
Definition: DtAgentManager.h:38
Contains makVrv:DtDriver class.
Definition: DistributedSimulationDriver4B.h:24
DtSceneObjectAgent * mySceneObjectAgent
Definition: DistributedSimulationDriver4B.h:53
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.

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)