![]() |
VR-Forces 5.0.2 Developer's Guide
|
The abstract interface necessary for agents.

Classes | |
| struct | IndexedMessage |
Public Member Functions | |
| DtAgentManagerInterface (const DtAgentFactory *factory, unsigned char myNamespaceId) | |
| virtual | ~DtAgentManagerInterface () |
| DtUniqueID | createNewUniqueId () |
| unsigned char | namespaceId () const |
| bool | uniqueIdFromAgentManagerInterface (const DtUniqueID &id) const |
| unsigned int | createNewCallID () |
| virtual DtAgent * | createNewObject (const std::string &objectClass, bool bDistribute) |
| virtual void | recreateObject (DtAgent *proxy) |
| bool | encodeUpdate (DtMessage &masterMsg, DtMessage &distributedMsg, double simulationTime) |
| virtual void | tick ()=0 |
Static Public Member Functions | |
| static unsigned char | namespaceFromUniqueId (DtUniqueID id) |
Static Public Attributes | |
| static const double | IgnoreSimulationTime |
Protected Types | |
| typedef std::list < IndexedMessage, tbb::tbb_allocator < IndexedMessage > > | OrderedCallList |
| typedef std::list< DtAgent * > | AgentList |
Protected Member Functions | |
| void | deleteObject (DtAgent *) |
| void | queueObjectForUpdate (DtAgent *object) |
Friends | |
| class | DtAgentManager |
| class | DtAgent |
|
protected |
|
protected |
Type of drivers.
| makVrv::DtAgentManagerInterface::DtAgentManagerInterface | ( | const DtAgentFactory * | factory, |
| unsigned char | myNamespaceId | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
inline |
Generate a new id.
|
inlinestatic |
Get the namespace id from a unique id.
Referenced by uniqueIdFromAgentManagerInterface().
|
inline |
Check to.
References namespaceFromUniqueId().
Create a new call id. Call ids are internal ids for function calls made onto objects.
|
virtual |
Create a new object, and return a driver to that object. Deleting the driver will automatically destroy the actual object.
|
virtual |
Add the existing proxy to the map of new objects so it gets "recreated" on slaves. Use this if you have late joining slaves and you want them to know about objects were created before the slave came into existence.
| bool makVrv::DtAgentManagerInterface::encodeUpdate | ( | DtMessage & | masterMsg, |
| DtMessage & | distributedMsg, | ||
| double | simulationTime | ||
| ) |
Encode an scene update int a message.
|
pure virtual |
Tick the scene manager. This will generate a message and deliver that message to the slaves (if the IG is the master) and handle the message.
Implemented in makVrv::DtAgentManager, and makVrv::DtAsynchronousAgentManager.
|
protected |
Internal call to queue an object to be deleted next tick. This is called automatically when a driver for an object is deleted.
|
protected |
Internal call to queue an object to generate an update in the next tick.
|
friend |
otheer scene manager interfaces).
|
friend |
|
static |
Special time value used to encode messages where the sim time provided is ignored.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |