VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtExampleSimulationConnection.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2019 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
13 
14 namespace makVrv
15 {
16  class DtCoordinateSystem;
17  class DtAgentManagerInterface;
18  class DtSharedSettingsManager;
19 }
20 
21 class DtExampleSimEngine;
22 
36 {
37 public:
49  const makVrv::DtCoordinateSystem& coordSystem,
51 
54 
57  virtual bool connect();
58 
61  virtual bool connected() const;
62 
65  virtual bool disconnect();
66 
68  virtual void tick();
69 
75 
78  double simTime() const;
79 
83  void setSimTime( double simTime );
84 
85 protected:
88 
89  //The local coordinate system the simulation will use.
91 
93  double mySimTime;
94 };
double simTime() const
Get the simulation time.
void setSimTime(double simTime)
Set the simulation time. The driver puts this function on the connection's function queue with the cu...
makVrv::DtCoordinateSystem * myCoordinateSystem
Definition: DtExampleSimulationConnection.h:90
virtual bool disconnect()
Function that destroys the sim engine.
The shared settings manager, is the global object responsible for managing any shared settings object...
Definition: DtSharedSettingsManager.h:42
double mySimTime
Copy of the simulation time.
Definition: DtExampleSimulationConnection.h:93
virtual DtAgentManagerInterface & sceneInterface()
Get the scene manager interface for creating drivers.
The DtBaseConnection is an abstract class.
Definition: DtBaseConnection.h:38
DtSharedSettingsManager & settingsManager()
Get the settings manager.
virtual bool connect()
Function that creates the sim engine.
DtExampleSimulationConnection(makVrv::DtAgentManagerInterface &sceneInterface, const makVrv::DtCoordinateSystem &coordSystem, makVrv::DtSharedSettingsManager &settingsManager)
CTOR param[in] sceneInterface is a reference to either a DtAgentManager or a DtAsynchronousManager, depending on whether or not this connection is going to be used in a separate thread param[in] coordSystem is cloned (not strictly necessary if used in the main thread, but it does it regardless param[in] settingsManager allows the objects using the connection to check for current settings that are maintained in the main thread. This includes access to a signaler that will raise signals (in whichever thread the connection is running in) when those settings change.
virtual bool connected() const
Terminate the connection.
const makVrv::DtCoordinateSystem & coordinateSystem() const
Get the coordinate system. NOTE WELL: A more complete implementation would listen for the coordinate ...
The DtCoordinateSystem is used to manage the current coordinate system of the scene.
Definition: DtCoordinateSystem.h:40
Contains makVrv:DtBaseConnection class.
DtExampleSimEngine * myExampleSimEngine
The simulation engine.
Definition: DtExampleSimulationConnection.h:87
DtExampleSimulationConnection.
Definition: DtExampleSimulationConnection.h:35
The abstract interface necessary for agents.
Definition: DtAgentManagerInterface.h:33
virtual ~DtExampleSimulationConnection()
DTOR.
Provide a basic sim engine to use in an example showing how to embed a sim engine into a driver that ...
Definition: DtExampleSimEngine.h:47
virtual void tick()
Function to be called repeatedly by a thread.

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)