14 #include <boost/unordered_map.hpp>
18 class DtRwSpawnTemplateList;
35 virtual bool loadTemplates(
const DtFilename&
filename,
bool sendUpdate =
true);
42 virtual void updateSpawnSinkTemplates(
52 static void preScenarioLoadCallback(
DtScenario& scenario,
57 static void preScenarioRewindCallback(
void* usrData);
60 static void preScenarioImportCallback(
DtScenario& scenario,
62 virtual void preScenarioImport(
DtScenario& scenario);
65 static void postScenarioImportCallback(
const DtScenario& scenario,
67 virtual void postScenarioImport(
const DtScenario& scenario);
69 virtual DtUUID uuidForTemplateName(
const DtString& templateName)
const;
72 virtual bool addSpawnPoint(
const DtUUID& templateUuid,
const DtUUID& spawnPointUuid);
74 virtual void removeSpawnPoint(
const DtUUID& templateUuid,
const DtUUID& spawnPointUuid);
81 virtual void resetManagerTemplates(
const DtRwSpawnDataList& templates,
const DtFilename& templateFilename,
bool sendUpdates =
true);
83 virtual void clearTemplates();
91 static void requestSpawnListCallback(
DtSimMessage* msg,
void* usr);
99 static void spawnTemplateListCallback(
DtSimMessage* msg,
void* usr);
100 virtual void preocesSpawnTemplateList(
DtSimMessage* msg);
106 virtual void sendSpawnListMessage(
const DtSimulationAddress& recipient,
107 bool initialSend =
false);
112 static void addSinkPointCallback(
DtSimMessage* msg,
void* usr);
118 static void requestSpawnDataCallback(
DtSimMessage* msg,
void* usr);
119 virtual void processRequestSpawnData(
DtSimMessage* msg);
124 static void updateSpawnTemplateCallback(
DtSimMessage* msg,
void* usr);
125 virtual void processUpdateSpawnTemplate(
DtSimMessage* msg);
130 static void createTemplateCallback(
DtSimMessage* msg,
void* usr);
136 static void deleteSpawnTemplateCallback(
DtSimMessage* msg,
void* usr);
137 virtual void processDeleteSpawnTemplate(
DtSimMessage* msg);
151 virtual void processAddSpawnPoint(
const DtSimObject *
object);
165 virtual void removeSpawnTemplateAsParentOfSinkPoint(
const DtUUID& templateUUID,
const DtUUID& sinkPoint);
166 virtual void addSpawnTemplateAsParentOfSinkPoint(
const DtUUID& templateUUID,
const DtUUID& sinkPoint);
168 virtual void upgradeTemplates(
const DtRwSpawnDataList& templates,
bool andRename =
false);
170 virtual void resolveUnmatchedSpawnPoints();
174 typedef void (*DtClearTemplateUUIDFunction)(
void* userData);
175 typedef void (*DtRefreshSpawnDataFunction)(
void* userData);
177 virtual void addClearTemplateUUIDEntry(
178 DtClearTemplateUUIDFunction fcn,
void* userData);
179 virtual void removeClearTemplateUUIDEntry(
180 DtClearTemplateUUIDFunction fcn,
void* userData);
182 virtual void addRefreshSpawnDataEntry(
183 DtRefreshSpawnDataFunction fcn,
void* userData);
184 virtual void removeRefreshSpawnDataEntry(
185 DtRefreshSpawnDataFunction fcn,
void* userData);
188 virtual DtUUID uuidBasedOnName(
const DtList& templateList,
const DtString&)
const;
UUID is a unique ID wrapper class.
Definition: rwUUID.h:229
std::map< DtString, DtString > myNewSpawnNameToOldSpawnNameMap
Definition: spawnSinkManager.h:210
class DtLocalObjectManager:
Definition: localObjectManager.h:151
DtNoArgumentCallbackList myRefreshSpawnDataCallbackList
Definition: spawnSinkManager.h:198
Definition: rwSpawnDataList.h:25
Definition: scenario.h:52
Manages all of the spawn points, sink points, and spawn templates in the current scenario.
Definition: spawnSinkManager.h:23
WaitingForSinkPoints myWaitingForSinkPoints
Definition: spawnSinkManager.h:208
boost::signals2::scoped_connection mySimObjectAddedConnection
Definition: spawnSinkManager.h:212
DtRwSpawnDataList myTemplates
Definition: spawnSinkManager.h:194
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
bool myTemplatesModified
Definition: spawnSinkManager.h:201
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
Base library for data that is used to control how spawn points generate entities. This data structure...
Definition: rwSpawnData.h:37
File: simMsg.h.
Definition: simMessage.h:35
boost::unordered_map< DtRwSpawnData *, DtString > myCurrentUUIDsOnImport
Definition: spawnSinkManager.h:200
This class works just as DtCalllbackTable, but manages callbacks that have no arguments, and therefore don't fit in the template defined by DtCallbackList.
Definition: noArgumentCallbackList.h:152
std::map< DtString, DtUUID > WaitingForSinkPoints
Definition: spawnSinkManager.h:207
PointByTemplate mySpawnPoints
Definition: spawnSinkManager.h:204
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:90
boost::unordered_map< DtUUID, DtUUID > PointByTemplate
Definition: spawnSinkManager.h:203
Represents a single simulation object in the exercise. Object may be VRF simulation, or non-VRF simulated, and may be simulated by the local sim engine, or by a remote sim engine. Only public (external) state of the object is available. All data is read-only. All access to data of the object is thread safe within the simulation frame.
Definition: simObject.h:79
DtSimulationServices * mySimulationServices
Definition: spawnSinkManager.h:191
PointByTemplate mySinkPoints
Definition: spawnSinkManager.h:205
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
DtNoArgumentCallbackList myClearTemplatesCallbackList
Definition: spawnSinkManager.h:197
Contains the DtSimObjectReference class declaration.
boost::signals2::scoped_connection mySimObjectDeletedConnection
Definition: spawnSinkManager.h:213
DtLocalObjectManager * myObjectManager
Definition: spawnSinkManager.h:192
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86
DtRwSpawnDataList myCurrentTemplates
Definition: spawnSinkManager.h:195