DtExampleSimulationConnection.
We use the idea of a connection to provide some basic functionality that any object (potentially) running in a separate thread might need. A reference to the connection is typically passed to all objects that will execute in the thread, much the same way a reference to DtDe is passed to all objects executing in the main thread. It provides access to the scene interface, settings manager, element data reporting, and provides a common place to register singleton instances. This derived example connection clones the current coordinate system object on creation and makes that available as well. It also provides the link that let's us provide simulation time from the driver to the sim engine.
|
| | DtExampleSimulationConnection (makVrv::DtAgentManagerInterface &sceneInterface, const makVrv::DtCoordinateSystem &coordSystem, makVrv::DtSharedSettingsManager &settingsManager) |
| |
| virtual | ~DtExampleSimulationConnection () |
| |
| virtual bool | connect () |
| |
| virtual bool | connected () const |
| |
| virtual bool | disconnect () |
| |
| virtual void | tick () |
| |
| const makVrv::DtCoordinateSystem & | coordinateSystem () const |
| |
| double | simTime () const |
| |
| void | setSimTime (double simTime) |
| |
| | DtBaseConnection (DtSharedSettingsManager &settingsManager, DtAgentManagerInterface &aSceneInterface, const DtCoordinateSystem &coordSystem) |
| |
| | DtBaseConnection (DtSharedSettingsManager &settingsManager, DtAgentManagerInterface &aSceneInterface) |
| |
| virtual | ~DtBaseConnection () |
| |
| virtual void | clearInstances () |
| |
| virtual void | coordinateSystemChanged (const std::string &coordinateName, const std::string &coordinateOrigin) |
| |
| const DtCoordinateSystem & | coordinateSystem () const |
| |
| DtSharedSettingsManager & | settingsManager () |
| |
| virtual DtAgentManagerInterface & | sceneInterface () |
| |
| const DtSharedSettingsManager & | settingsManager () const |
| |
| DtVisualizerCreationSettings & | visualizerCreationSettings () |
| |
| void | reportElementCreated (DtElementID id, DtElementID parentId, unsigned int type) |
| |
| void | reportElementAttribute (DtElementID id, DtElementAttribute *attribute) |
| |
| void | reportElementDestroyed (DtElementID id) |
| |
| const DtElementChanges & | currentElementChanges () const |
| |
| DtElementChanges * | takeElementChanges () |
| |
| DtTemporaryAgentManager & | temporaryEffects () |
| |
| DtBlinkingObjectManager & | blinkManager () |
| |
| DtRandomNumberGenerator & | randomNumberGenerator () |
| |
| virtual const std::string & | tag () |
| |
| const DtUnicode & | emptyString () const |
| |
| virtual DtVirtualBaseClass * | findInstance (const std::string &instanceName) |
| |
| bool | destroyingInstances () const |
| |
| virtual void | registerInstance (const std::string &instanceName, DtVirtualBaseClass *instance) |
| |