![]() |
VR-Forces 4.0.4 Class Documentation
|
An asynchronous interface to the scene manager. More...

Public Types | |
| typedef boost::function< void(DtAgentManagerInterface *) > | SceneManagerInterfaceFunction |
| typedef DtLockedBufferedQueue < SceneManagerInterfaceFunction > | AsyncAgentManagerInterfaceFunctionQueue |
Public Member Functions | |
| DtAsynchronousAgentManager (DtAgentManager &agentManager, const std::string &ownerName) | |
| CTOR. | |
| virtual | ~DtAsynchronousAgentManager () |
| DTOR. | |
| virtual void | tick () |
| Tick the scene manager. | |
| AsyncAgentManagerInterfaceFunctionQueue * | asyncFunctionQueue () |
| Get a pointer to the asynchronous function queue. | |
| virtual void | addModelDefinition (const DtModelDefinition &) |
| Add a new model definition. | |
| virtual DtModelDefinition * | lookupModelDefinition (const std::string &str) |
| Lookup a model definition. | |
Protected Attributes | |
| DtAgentManager & | myAgentManager |
| AsyncAgentManagerInterfaceFunctionQueue | myAsyncFunctionQueue |
An asynchronous interface to the scene manager.
| typedef boost::function< void (DtAgentManagerInterface*) > makVrv::DtAsynchronousAgentManager::SceneManagerInterfaceFunction |
| typedef DtLockedBufferedQueue<SceneManagerInterfaceFunction> makVrv::DtAsynchronousAgentManager::AsyncAgentManagerInterfaceFunctionQueue |
| makVrv::DtAsynchronousAgentManager::DtAsynchronousAgentManager | ( | DtAgentManager & | agentManager, |
| const std::string & | ownerName | ||
| ) |
CTOR.
| virtual makVrv::DtAsynchronousAgentManager::~DtAsynchronousAgentManager | ( | ) | [virtual] |
DTOR.
| virtual void makVrv::DtAsynchronousAgentManager::tick | ( | ) | [virtual] |
Tick the scene manager.
This must be called by the DtDriver implementation to propagate the driver calls to the scene manager. Typically this would be called in thread loop.
while(!askedToStop())
{
doSimulation_and_makeDriverCalls();
myAsyncInterface->tick();
}
Implements makVrv::DtAgentManagerInterface.
| virtual void makVrv::DtAsynchronousAgentManager::addModelDefinition | ( | const DtModelDefinition & | ) | [virtual] |
Add a new model definition.
| virtual DtModelDefinition* makVrv::DtAsynchronousAgentManager::lookupModelDefinition | ( | const std::string & | str | ) | [virtual] |
Lookup a model definition.
This will return a new copy of the original model definition (without any local cache) which must be deleted.
Get a pointer to the asynchronous function queue.
AsyncAgentManagerInterfaceFunctionQueue makVrv::DtAsynchronousAgentManager::myAsyncFunctionQueue [protected] |