Protected Types |
typedef
makVrv::DtLockedBufferedQueue
< boost::function< void()> > | FunctionCallQueue |
typedef std::vector
< boost::function< void()> > | FunctionCallList |
Member Typedef Documentation
Constructor & Destructor Documentation
| DtExampleThreadedDriver::DtExampleThreadedDriver |
( |
makVrv::DtAgentManager & |
am | ) |
|
| virtual DtExampleThreadedDriver::~DtExampleThreadedDriver |
( |
| ) |
|
|
virtual |
Member Function Documentation
| virtual const std::string& DtExampleThreadedDriver::className |
( |
| ) |
const |
|
virtual |
Get this instance's class name.
| virtual void DtExampleThreadedDriver::queueDriverFunction |
( |
const boost::function< void()> & |
function | ) |
|
|
virtual |
Put a function in the sim function queue, for threadsafe calling.
| virtual void DtExampleThreadedDriver::queueConnectionFunction |
( |
const boost::function< void()> & |
function | ) |
|
|
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.
- Returns
- true if using a separate thread, false otherwise
Get the simulation connection.
- Returns
- the simulation connection, if it exists. May return 0.
| virtual bool DtExampleThreadedDriver::onStart |
( |
| ) |
|
|
protectedvirtual |
Performs startup logic for the driver.
- See Also
- makVrv::DtDriver::start()
| virtual bool DtExampleThreadedDriver::onStop |
( |
| ) |
|
|
protectedvirtual |
Performs shutdown logic for the driver.
- See Also
- makVrv::DtDriver::stop()
| virtual bool DtExampleThreadedDriver::onTick |
( |
| ) |
|
|
protectedvirtual |
Performs update logic for the driver.
- See Also
- makVrv::DtDriver::tick()
| virtual void DtExampleThreadedDriver::attachObserverToEntity |
( |
const std::string & |
entityName | ) |
|
|
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
| virtual void DtExampleThreadedDriver::slot_displayEngineAdded |
( |
const makVrv::DtDeRecord & |
igRecord | ) |
|
|
protectedvirtual |
Ensures the driver is properly restarted when a de is connected.
- See Also
- makVrv::DtDriver::slot_displayEngineAdded( const makVrv::DtDeRecord& )
Abstract create simulation function called onStart.
| virtual void DtExampleThreadedDriver::run |
( |
| ) |
|
|
protectedvirtual |
Function that will be called when the thread is started.
| void DtExampleThreadedDriver::startThread |
( |
| ) |
|
|
protected |
Attempt to start the thread.
- Exceptions
-
| DtCorruptedState | if the thread does not start. |
| void DtExampleThreadedDriver::stopThread |
( |
| ) |
|
|
protected |
Attempt to stop the thread, blocking until the thread stops.
| void DtExampleThreadedDriver::setSimulationConnectionState |
( |
bool |
state | ) |
|
|
protected |
Set the connection state of the driver.
| virtual void DtExampleThreadedDriver::connectToDynamicSignals |
( |
| ) |
|
|
protectedvirtual |
| virtual void DtExampleThreadedDriver::disconnectFromDynamicSignals |
( |
| ) |
|
|
protectedvirtual |
| virtual void DtExampleThreadedDriver::slot_togglePinnedLabel |
( |
const makVrv::DtSelectionManager::IdSet & |
sel | ) |
|
|
protectedvirtual |
Listens for entity labels being pinned / unpinned.
Execute a function queue.
Member Data Documentation
This signal is emitted when the simulation connection is created.
This signal is emitted when the simulation connection is about to be destroyed.
| std::string DtExampleThreadedDriver::myClassName |
|
protected |
| bool DtExampleThreadedDriver::myUseThreadFlag |
|
protected |
Cross thread variables.
They are used between the two threads for communication.
| DtThreadStart* DtExampleThreadedDriver::myStart |
|
protected |
Cross thread variables.
They are used between the two threads for communication.
| DtThread* DtExampleThreadedDriver::myThread |
|
protected |
Cross thread variables.
They are used between the two threads for communication.
Cross thread variables.
They are used between the two threads for communication.
Cross thread variables.
They are used between the two threads for communication.
| makVrv::DtAsynchronousAgentManager* DtExampleThreadedDriver::myAsynchronousInterface |
|
protected |
Cross thread variables.
They are used between the two threads for communication.
| makVrv::DtAsynchronousEventQueue* DtExampleThreadedDriver::myAsynchronousEventQueue |
|
protected |
| bool DtExampleThreadedDriver::mySimulationConnectionState |
|
protected |
| makVrv::DtSignalConnectionManager DtExampleThreadedDriver::myDynamicSignals |
|
protected |
The documentation for this class was generated from the following file: