![]() |
VR-Vantage 3.1.1 API Documentation
|

Public Member Functions | |
| DtExampleThreadedDriver (makVrv::DtAgentManager &am) | |
| CTOR. More... | |
| virtual | ~DtExampleThreadedDriver () |
| Virtual DTOR. More... | |
| virtual const std::string & | className () const |
| Get this instance's class name. More... | |
| virtual void | queueDriverFunction (const boost::function< void()> &function) |
| Put a function in the sim function queue, for threadsafe calling. More... | |
| virtual void | queueConnectionFunction (const boost::function< void()> &function) |
| Put a function in the sim function queue, for threadsafe calling. More... | |
| bool | useThreadFlag () const |
| See if this driver is running connection methods in a separate thread. More... | |
| DtExampleSimulationConnection * | simulationConnection () |
| Get the simulation connection. More... | |
Public Member Functions inherited from makVrv::DtDriver | |
| DtDriver (DtAgentManager &agentManager, const std::string &instanceName) | |
| CTOR. More... | |
| virtual | ~DtDriver () |
| DTOR. More... | |
| virtual void | realizeConfiguration (const DtConfiguration &configuration) |
| Realize the driver using the configuration. More... | |
| virtual DtConfiguration | createConfiguration () const |
| Create a configuration for the driver. More... | |
| DtAgentManager & | agentManager () |
| Get the master scene for this host. More... | |
| virtual DtAgentManagerInterface & | sceneInterface () |
| Get the scene manager interface for creating agents. More... | |
| bool | started () const |
| Get this driver's active state. More... | |
| virtual const std::string & | instanceName () const |
| Get this driver's instance name. More... | |
| virtual bool | autoStart () const |
| Get whether this driver is set to automatically start if it is persistent. More... | |
| virtual void | setAutoStart (bool autoStart) |
| Set whether this driver automatically starts if it is persistent. More... | |
| virtual bool | isWindowDependent () const |
| Get whether this driver is set to automatically start when the first window is created and stop when the last window is destroyed. More... | |
| virtual void | setIsWindowDependent (bool dep) |
| Set whether this driver is set to automatically start when the first window is created and stop when the last window is destroyed. More... | |
| virtual void | setIsUserControllable (bool) |
| Set whether this driver can be started and stopped by the user. More... | |
| virtual bool | isUserControllable () const |
| Get whether this driver can be started and stopped by the user. More... | |
| virtual void | setIsPersistent (bool per) |
| Set if the driver is persistent and should be saved between runs. More... | |
| virtual bool | isPersistent () const |
| Get if the driver is persistent and should be saved between runs. More... | |
| virtual bool | isOnDriverSelectionList () const |
| Returns whether or not this driver is to be automatically started/stopped from the driver selection list. More... | |
| virtual void | setOnDriverSelectionList (bool) |
| Sets whether or not this item is on the driver selection list. More... | |
| bool | objectFromAgentManager (const DtUniqueID &id) const |
| check to see if the object was created using this driver's agent manager. More... | |
Public Attributes | |
| makVrv::vrvSignalsLib::signal < void(DtExampleSimulationConnection *)> | signal_connectionCreated |
| This signal is emitted when the simulation connection is created. More... | |
| makVrv::vrvSignalsLib::signal < void(DtExampleSimulationConnection *)> | signal_connectionAboutToBeDestroyed |
| This signal is emitted when the simulation connection is about to be destroyed. More... | |
Protected Types | |
| typedef makVrv::DtLockedBufferedQueue < boost::function< void()> > | FunctionCallQueue |
| typedef std::vector < boost::function< void()> > | FunctionCallList |
Protected Member Functions | |
| virtual bool | onStart () |
| Performs startup logic for the driver. More... | |
| virtual bool | onStop () |
| Performs shutdown logic for the driver. More... | |
| virtual bool | onTick () |
| Performs update logic for the driver. More... | |
| virtual void | attachObserverToEntity (const std::string &entityName) |
| Tells the current observer to attach to the named entity. More... | |
| virtual void | slot_displayEngineAdded (const makVrv::DtDeRecord &igRecord) |
| Ensures the driver is properly restarted when a de is connected. More... | |
| virtual DtExampleSimulationConnection * | createSimulationConnection () |
| Abstract create simulation function called onStart. More... | |
| virtual void | run () |
| Function that will be called when the thread is started. More... | |
| void | startThread () |
| Attempt to start the thread. More... | |
| void | stopThread () |
| Attempt to stop the thread, blocking until the thread stops. More... | |
| void | setSimulationConnectionState (bool state) |
| Set the connection state of the driver. More... | |
| virtual void | connectToDynamicSignals () |
| Connect to signals. More... | |
| virtual void | disconnectFromDynamicSignals () |
| Disconnect to any signals connected to in connectToDynamicSignals() More... | |
| virtual void | slot_togglePinnedLabel (const makVrv::DtSelectionManager::IdSet &sel, bool pinAllLabels) |
| Listens for entity labels being pinned / unpinned. More... | |
| virtual void | runFunctionQueue (FunctionCallQueue &queue) |
| Execute a function queue. More... | |
| virtual void | slot_coordinateSystemChanged () |
| slot for when the coordinate system changes More... | |
Protected Member Functions inherited from makVrv::DtDriver | |
| void | applyChangesAndDelete (DtElementChanges *changes) |
| Function for apply changes from a changes object and deleting it. More... | |
| void | reportElementCreated (DtElementID id, DtElementID parentId, DtElementEntry::ElementType type) |
| Report an element created. More... | |
| void | reportElementAttribute (DtElementID id, DtElementAttribute *attribute) |
| Report an element attribute changed. More... | |
| void | reportElementDestroyed (DtElementID id) |
| Report an element destroyed. More... | |
| void | start () |
| Start the driver. More... | |
| void | stop () |
| Stop the driver. More... | |
| bool | tick () |
| Tick the host driver. More... | |
| virtual void | setInstanceName (const std::string &name) |
| set the Instance name. More... | |
| virtual void | installAccessories () |
| Installs accessories on this driver. More... | |
| virtual void | uninstallAccessories () |
| Removes accessories from this driver. More... | |
Protected Attributes | |
| std::string | myClassName |
| DtExampleSimulationConnection * | mySimulationConnection |
| makVrv::DtAsynchronousEventQueue * | myAsynchronousEventQueue |
| bool | mySimulationConnectionState |
| makVrv::DtSignalConnectionManager | myDynamicSignals |
| bool | myUseThreadFlag |
| Cross thread variables. More... | |
| DtThreadStartSP | myStart |
| Cross thread variables. More... | |
| DtThread * | myThread |
| Cross thread variables. More... | |
| FunctionCallQueue | myConnectionThreadFunctions |
| Cross thread variables. More... | |
| FunctionCallQueue | myDriverThreadFunctions |
| Cross thread variables. More... | |
| makVrv::DtAsynchronousAgentManager * | myAsynchronousInterface |
| Cross thread variables. More... | |
Protected Attributes inherited from makVrv::DtDriver | |
| DtAgentManager & | myAgentManager |
| bool | myStartedFlag |
| std::string | myName |
| DtConfiguration | myConfiguration |
| bool | myPersistentFlag |
| bool | myUserControllableFlag |
| bool | myRequestStateDiffPendingFlag |
| DtElementChanges | myChanges |
|
protected |
|
protected |
| DtExampleThreadedDriver::DtExampleThreadedDriver | ( | makVrv::DtAgentManager & | am | ) |
CTOR.
|
virtual |
Virtual DTOR.
|
virtual |
Get this instance's class name.
Implements makVrv::DtDriver.
|
virtual |
Put a function in the sim function queue, for threadsafe calling.
|
virtual |
Put a function in the sim function queue, for threadsafe calling.
| bool DtExampleThreadedDriver::useThreadFlag | ( | ) | const |
See if this driver is running connection methods in a separate thread.
| DtExampleSimulationConnection* DtExampleThreadedDriver::simulationConnection | ( | ) |
Get the simulation connection.
|
protectedvirtual |
Performs startup logic for the driver.
Implements makVrv::DtDriver.
|
protectedvirtual |
Performs shutdown logic for the driver.
Implements makVrv::DtDriver.
|
protectedvirtual |
|
protectedvirtual |
Tells the current observer to attach to the named entity.
This method uses an observer state record, and calls DtObserver::setFromRecord. When setFromRecord is used, the observer will listen for the existence of the named entity and actually do the attachment when the entity is created
|
protectedvirtual |
Ensures the driver is properly restarted when a de is connected.
Reimplemented from makVrv::DtDriver.
|
protectedvirtual |
Abstract create simulation function called onStart.
|
protectedvirtual |
Function that will be called when the thread is started.
|
protected |
Attempt to start the thread.
| DtCorruptedState | if the thread does not start. |
|
protected |
Attempt to stop the thread, blocking until the thread stops.
|
protected |
Set the connection state of the driver.
|
protectedvirtual |
Connect to signals.
|
protectedvirtual |
Disconnect to any signals connected to in connectToDynamicSignals()
|
protectedvirtual |
Listens for entity labels being pinned / unpinned.
|
protectedvirtual |
Execute a function queue.
|
protectedvirtual |
slot for when the coordinate system changes
| makVrv::vrvSignalsLib::signal<void (DtExampleSimulationConnection*)> DtExampleThreadedDriver::signal_connectionCreated |
This signal is emitted when the simulation connection is created.
| makVrv::vrvSignalsLib::signal<void (DtExampleSimulationConnection*)> DtExampleThreadedDriver::signal_connectionAboutToBeDestroyed |
This signal is emitted when the simulation connection is about to be destroyed.
|
protected |
|
protected |
Cross thread variables.
They are used between the two threads for communication.
|
protected |
Cross thread variables.
They are used between the two threads for communication.
|
protected |
Cross thread variables.
They are used between the two threads for communication.
|
protected |
Cross thread variables.
They are used between the two threads for communication.
|
protected |
Cross thread variables.
They are used between the two threads for communication.
|
protected |
Cross thread variables.
They are used between the two threads for communication.
|
protected |
|
protected |
|
protected |
|
protected |