|
| | DtExampleSimulationConnection (makVrv::DtAgentManagerInterface &sceneInterface, const makVrv::DtCoordinateSystem &coordSystem, makVrv::DtSharedSettingsManager &settingsManager) |
| virtual | ~DtExampleSimulationConnection () |
| | DTOR.
|
| virtual bool | connect () |
| virtual bool | connected () const |
| virtual bool | disconnect () |
| virtual void | tick () |
| | Function to be called repeatedly by a thread.
|
| const makVrv::DtCoordinateSystem & | coordinateSystem () const |
| double | simTime () const |
| void | setSimTime (double simTime) |
| | DtBaseConnection (DtSharedSettingsManager &settingsManager, DtAgentManagerInterface &aSceneInterface, const DtCoordinateSystem &coordSystem) |
| | CTOR.
|
| | DtBaseConnection (DtSharedSettingsManager &settingsManager, DtAgentManagerInterface &aSceneInterface) |
| | CTOR without a coordsystem. Create a new one.
|
| virtual | ~DtBaseConnection () |
| | DTOR MUST call clearInstances first.
|
| virtual void | clearInstances () |
| | Clear and delete all instances rooted in the connection MUST be called before the connection is destroyed.
|
| virtual void | coordinateSystemChanged (const std::string &coordinateName, const std::string &coordinateOrigin) |
| | process a coordintate system change by passing the new coordinate system to the DtCoordinateSystem object
|
| const DtCoordinateSystem & | coordinateSystem () const |
| | get the coordinate system object for this connection
|
| DtSharedSettingsManager & | settingsManager () |
| | Get the settings manager.
|
| virtual DtAgentManagerInterface & | sceneInterface () |
| | Get the scene manager interface for creating drivers.
|
| const DtSharedSettingsManager & | settingsManager () const |
| | Get the settings manager.
|
| DtVisualizerCreationSettings & | visualizerCreationSettings () |
| | Get myVisualTypeVisualizerSettings.
|
| void | reportElementCreated (DtElementID id, DtElementID parentId, unsigned int type) |
| | Report an element created.
|
| void | reportElementAttribute (DtElementID id, DtElementAttribute *attribute) |
| void | reportElementDestroyed (DtElementID id) |
| | Report an element destroyed.
|
| const DtElementChanges & | currentElementChanges () const |
| | Look at the current element changes.
|
| DtElementChanges * | takeElementChanges () |
| | Take the current changes and internally start a new set of changes.
|
| DtTemporaryAgentManager & | temporaryEffects () |
| | Get the temporary effects manager.
|
| DtBlinkingObjectManager & | blinkManager () |
| | Get the blinking manager.
|
| DtRandomNumberGenerator & | randomNumberGenerator () |
| | Get the simulation's random number generator.
|
| virtual const std::string & | tag () |
| | Get the tag identifying which type of connection this is.
|
| const DtUnicode & | emptyString () const |
| | Allocated empty string.
|
| virtual DtVirtualBaseClass * | findInstance (const std::string &instanceName) |
| | Find an instance with the given name. If no instance is found than a null pointer is returned.
|
| bool | destroyingInstances () const |
| | Check to see if the simulation is destroying instances. This function is used in the destructor of objects which access instances via reference which may throw an exception.
|
| virtual void | registerInstance (const std::string &instanceName, DtVirtualBaseClass *instance) |
| | Register an object as an instance of instanceName, and transfer memory ownership of the instance to the DtVrlinkBaseConnection.
|
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.