![]() |
VR-Forces Development_Version Class Documentation
|
Public Types | |
| typedef void(* | DtClearTemplateUUIDFunction )(void *userData) |
| typedef void(* | DtRefreshSpawnDataFunction )(void *userData) |
Public Member Functions | |
| DtSpawnSinkManager (DtSimManager *simManager) | |
| constructor | |
| virtual | ~DtSpawnSinkManager () |
| destructor | |
| virtual bool | init () |
| virtual bool | loadTemplates (const DtFilename &filename) |
| Load spawn templates from scenario file. | |
| virtual const DtRwSpawnDataList * | spawnTemplates () const |
| Accessor for spawn template list. | |
| virtual DtRwSpawnData * | findSpawnDataByUUID (const DtUUID &uuid) |
| virtual void | updateSpawnSinkTemplates (const DtRwSpawnDataList &spawnDataList) |
| virtual void | preScenarioImport (DtScenario &scenario) |
| virtual void | postScenarioImport (const DtScenario &scenario) |
| virtual DtUUID | uuidForTemplateName (const DtString &templateName) const |
| virtual void | addSpawnPoint (const DtUUID &templateUuid, const DtUUID &spawnPointUuid) |
| virtual void | removeSpawnPoint (const DtUUID &templateUuid, const DtUUID &spawnPointUuid) |
| virtual void | resetManagerTemplates (const DtRwSpawnDataList &templates) |
| This function is called by both the postScenarioLoad and postScenarioRewind callbacks to reset the templates in the manager. | |
| virtual void | clearTemplates () |
| bool | templatesModified () const |
| virtual void | clearTemplatesModified () |
| virtual void | sendSpawnListMessage (const DtSimulationAddress &recipient, bool initialSend=false) |
| Sends a spawn list message (i.e., the names and descriptions of all the templates in the myTempate list) to the indicated address. | |
| virtual void | renameSpawnPoint (DtVrfObject *spawnEntity, const DtString &oldTemplateName, const DtString &newTemplateName) |
| virtual void | renameSinkPoint (DtVrfObject *spawnEntity, const DtString &oldTemplateName, const DtString &newTemplateName) |
| virtual void | removeSpawnTemplateAsParentOfSinkPoint (const DtUUID &templateUUID, const DtUUID &sinkPoint) |
| virtual void | addSpawnTemplateAsParentOfSinkPoint (const DtUUID &templateUUID, const DtUUID &sinkPoint) |
| virtual void | upgradeTemplates (const DtRwSpawnDataList &templates) |
| virtual void | removeNameMappings (const DtRwSpawnDataList &templates) |
| virtual void | resolveUnmatchedSpawnPoints () |
| virtual const DtRwSpawnDataList & | templates () |
| virtual void | addClearTemplateUUIDEntry (DtClearTemplateUUIDFunction fcn, void *userData) |
| virtual void | removeClearTemplateUUIDEntry (DtClearTemplateUUIDFunction fcn, void *userData) |
| virtual void | addRefreshSpawnDataEntry (DtRefreshSpawnDataFunction fcn, void *userData) |
| virtual void | removeRefreshSpawnDataEntry (DtRefreshSpawnDataFunction fcn, void *userData) |
Static Public Member Functions | |
| static void | preScenarioLoadCallback (DtScenario &scenario, void *usrData) |
| Functions to load and save data to scenario files. | |
| static void | preScenarioRewindCallback (void *usrData) |
| As above, but called after a rewind operation to reset the templates in this manager. | |
| static void | preScenarioImportCallback (DtScenario &scenario, void *usrData) |
| When imported, read the extras file to get the scenario templates and rework ids for mappings. | |
| static void | postScenarioImportCallback (const DtScenario &scenario, void *usrData) |
| Add in new templates to the current list. | |
Protected Types | |
| typedef boost::unordered_map < DtUUID, DtUUID > | PointByTemplate |
Protected Attributes | |
| DtSimManager * | mySimManager |
| DtRwSpawnDataList | myTemplates |
| pointer to the sim manager | |
| DtRwSpawnDataList | myCurrentTemplates |
| DtNoArgumentCallbackList | myClearTemplatesCallbackList |
| DtNoArgumentCallbackList | myRefreshSpawnDataCallbackList |
| boost::unordered_map < DtRwSpawnData *, DtString > | myCurrentUUIDsOnImport |
| bool | myTemplatesModified |
| PointByTemplate | mySpawnPoints |
| PointByTemplate | mySinkPoints |
| virtual void | processRequestSpawnList (DtSimMessage *msg) |
| Message handlers. | |
| static void | requestSpawnListCallback (DtSimMessage *msg, void *usr) |
| Message handlers. | |
| virtual void | processAddSinkPoint (DtSimMessage *msg) |
| Respond to a request to add a sink point (by name) to a spawn template. | |
| static void | addSinkPointCallback (DtSimMessage *msg, void *usr) |
| Respond to a request to add a sink point (by name) to a spawn template. | |
| virtual void | processRequestSpawnData (DtSimMessage *msg) |
| Respond to a request to send the spawn data for a given template. | |
| static void | requestSpawnDataCallback (DtSimMessage *msg, void *usr) |
| Respond to a request to send the spawn data for a given template. | |
| virtual void | processUpdateSpawnTemplate (DtSimMessage *msg) |
| Respond to a request to update the data in a template. | |
| static void | updateSpawnTemplateCallback (DtSimMessage *msg, void *usr) |
| Respond to a request to update the data in a template. | |
| virtual void | processCreateTemplate (DtSimMessage *msg) |
| Respond to a request to create a template. | |
| static void | createTemplateCallback (DtSimMessage *msg, void *usr) |
| Respond to a request to create a template. | |
| virtual void | processDeleteSpawnTemplate (DtSimMessage *msg) |
| Respond to a request to delete a template. | |
| static void | deleteSpawnTemplateCallback (DtSimMessage *msg, void *usr) |
| Respond to a request to delete a template. | |
| virtual void | processObjectRemoved (DtVrfObject *object) |
| Respond to a notification that an object has been removed. | |
| static void | objectRemovedCallback (DtVrfObject *object, void *usr) |
| Respond to a notification that an object has been removed. | |
| typedef void(* DtSpawnSinkManager::DtClearTemplateUUIDFunction)(void *userData) |
| typedef void(* DtSpawnSinkManager::DtRefreshSpawnDataFunction)(void *userData) |
|
protected |
| DtSpawnSinkManager::DtSpawnSinkManager | ( | DtSimManager * | simManager | ) |
constructor
|
virtual |
destructor
|
virtual |
|
virtual |
Load spawn templates from scenario file.
|
virtual |
Accessor for spawn template list.
|
virtual |
|
virtual |
|
static |
Functions to load and save data to scenario files.
Callback function to initialize spawn templates in the manager from the scenario extras manager, which read them in. This copy is performed after scenario load, when the scenarios extras manager has finished.
|
static |
As above, but called after a rewind operation to reset the templates in this manager.
|
static |
When imported, read the extras file to get the scenario templates and rework ids for mappings.
|
virtual |
|
static |
Add in new templates to the current list.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
This function is called by both the postScenarioLoad and postScenarioRewind callbacks to reset the templates in the manager.
Existing templates are deleted, and then templates are copied from the scenario extras manager. If there are none, then the default templates are read from the settings file.
|
virtual |
|
inline |
|
inlinevirtual |
|
static |
Message handlers.
Respond to a request for the names and descriptions of the templates in this manager's list.
|
virtual |
Message handlers.
Respond to a request for the names and descriptions of the templates in this manager's list.
|
virtual |
Sends a spawn list message (i.e., the names and descriptions of all the templates in the myTempate list) to the indicated address.
Used in Request Spawn List processing.
|
static |
Respond to a request to add a sink point (by name) to a spawn template.
|
virtual |
Respond to a request to add a sink point (by name) to a spawn template.
|
static |
Respond to a request to send the spawn data for a given template.
|
virtual |
Respond to a request to send the spawn data for a given template.
|
static |
Respond to a request to update the data in a template.
|
virtual |
Respond to a request to update the data in a template.
|
static |
Respond to a request to create a template.
|
virtual |
Respond to a request to create a template.
|
static |
Respond to a request to delete a template.
|
virtual |
Respond to a request to delete a template.
|
static |
Respond to a notification that an object has been removed.
The callback function is registered along with an object type code for sink points. If the sink point is on one of the template lists, it is removed from that list.
|
virtual |
Respond to a notification that an object has been removed.
The callback function is registered along with an object type code for sink points. If the sink point is on one of the template lists, it is removed from that list.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protected |
|
protected |
pointer to the sim manager
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |