![]() |
VR-Forces 4.3.1 Class Documentation
|
The class that will contain information about the currently loaded scenario. More...

Public Types | |
| enum | DtJoinSessionTerrainAction { DtTerrainActionUseSessionTerrain, DtTerrainActionChooseAlternateTerrain, DtTerrainActionKeepCurrentTerrain, DtShowSessionStartupDialog, DtLoadScenarioSpecifiedInApplication, DtTerrainActionUseSessionTerrainWithoutJoining } |
| enum | SessionStatusDialogs { Loading = 0x00000001, Saving = 0x00000002, Closing = 0x00000004, AllStatusDialogs = Loading | Saving | Closing } |
Public Member Functions | |
| DtVrfScenarioManager (makVrv::DtDe &) | |
| virtual | ~DtVrfScenarioManager () |
| const DtScenarioExplorer * | scenarioExplorer () const |
| const std::vector < DtEntityMapperKey > & | controlObjects () const |
| virtual void | addControlObject (const DtEntityMapperKey &key) |
| virtual void | removeControlObject (const DtEntityMapperKey &key) |
| virtual void | clearControlObjects () |
| virtual bool | isControlObject (const DtEntityMapperKey &key) const |
| virtual void | closeScenario (bool resetScenario=true, const DtFilename &databaseToOpen="") |
| virtual bool | loadScenario (const std::string &s, DtVrfScenarioRemapFunction *remapping=0) |
| virtual bool | loadScenario (const DtScenarioLoadInformation &s) |
| virtual void | runScenario () |
| virtual void | pauseScenario () |
| virtual void | rewindScenario () |
| virtual void | setCreateMenuBuilderFlags (DtCreateMenuBuilder::Flags) |
| Sets the flags to use when creating the menu for the create menu. | |
| virtual DtCreateMenuBuilder::Flags | createMenuBuilderFlags () const |
| virtual void | tickedLoadScenario () |
| Schedules to call the load scenario method (with current main window) on the next de tick. | |
| virtual void | tickedNewScenario () |
| Schedules to call the new scenario method (with current main window) on the next de tick. | |
| virtual void | loadScenarioFromDialog (QWidget *p) |
| Creates and shows load scenario dialog. | |
| virtual DtLoadScenarioDialog * | createLoadScenarioDialog (QWidget *) |
| virtual void | setHelpFile (const std::string &, bool save=false) |
| Sets the help file to use when pressing the F1 key. | |
| virtual std::string | helpFile () const |
| virtual void | setDefaultScenarioFile (const std::string &f, bool save=false) |
| Sets the scenario file used as the default when creating a new scenario. | |
| virtual std::string | defaultScenarioFile () const |
| virtual void | setDefaultSimulationModelSetFile (const std::string &f, bool save=false) |
| Sets the default .sms file to use when loading a scenario if none is found in the scenario to be loaded. | |
| virtual std::string | defaultSimulationModelSetFile () const |
| virtual void | rebuildCreateMenu (bool recreate=true) |
| Call to regenerate the menu from the model set structure and then recreate the menu. | |
| virtual void | recreateCreateMenu () |
| Call to start the process of recreating the create menu from the current menu structure. | |
| virtual void | loadTaskMenu (const DtScenarioExplorer &explorer) |
| Call to recreate the set menu from initialTaskMenuConfiguration. | |
| virtual void | loadSetMenu (const DtScenarioExplorer &explorer) |
| Call to recreate the task menu from initialSetMenuConfiguration. | |
| virtual DtScenarioSettingsDialog * | createNewScenarioDialog (QWidget *p) |
| Creates and shows new scenario dialog. | |
| virtual void | newScenarioFromDialog (QWidget *p) |
| virtual void | newScenario (const std::string &) |
| Creates a new scenario on specified terrain using default.scn as the scenario base. | |
| virtual void | loadBatchScenario (QWidget *) |
| Calls to batch scenario manager to load batch scenario. | |
| virtual bool | joinSession (DtJoinSessionTerrainAction terrainAction=DtTerrainActionUseSessionTerrain) |
| Does the actual joining to the session. | |
| virtual void | resignSession (bool closeTerrain=true) |
| virtual bool | saveScenarioAs () |
| virtual bool | saveScenario () |
| virtual bool | canRewind () const |
| void | setValidateForVrfObjects (bool b) |
| Default is true. | |
| bool | validateForVrfObjects () const |
| void | setScenarioDirty (bool b) |
| bool | scenarioDirty () const |
| const DtScenario * | scenario () const |
| void | setAskSaveIfScenarioModified (bool b) |
| bool | askSaveIfScenarioModified () const |
| bool | joinedToSession () const |
| void | setDisplayExistingGdbWarningMessages (bool b) |
| bool | displatExistingGdbWarningMessages () const |
| virtual void | setCorrelated (bool) |
| bool | correlated () const |
| DtMenu * | createMenu () |
| bool | initialized () const |
| const DtDeadReckoningSettings & | deadReckoningSettings () const |
| void | setAllowEditingOnScenarioJoin (bool b) |
| bool | allowEditingOnScenarioJoint () const |
| virtual std::string | currentlyLoadedTerrain () const |
| virtual void | processJoinSession (bool startupMessage=false) |
| virtual void | setFromRecord (const DtVrfScriptedTaskSettingsRecord &rec) |
| virtual void | loadDefaultScriptedTaskSettings (bool loadOnlyFactorySettings=false) |
| virtual void | saveScriptedTaskSettingsAsDefaults () |
| virtual void | getRecord (DtVrfScriptedTaskSettingsRecord &rec) const |
| virtual bool | autoJoinSession () const |
| Access to session record information. | |
| virtual bool | automaticallyOpenSessionDatabaseWithoutJoiningSession () const |
| virtual bool | askToJoin () const |
| virtual bool | alwaysJoinWithSessionDatabase () const |
| virtual bool | zoomToScenarioExtentsOnLoad () const |
| virtual bool | alwaysJoinWithOpenDatabase () const |
| virtual bool | displaySessionDialogs () const |
| virtual bool | displayCorrelationWarningMessages () const |
| virtual void | requestSpotReports () |
| Requests spot reports for reports currently being show in the GUI. | |
| virtual void | requestStealthCommands () |
| Requests stealth commands supported by the back-end. | |
| const DtStealthCommands & | stealthCommands () const |
| virtual void | zoomToExtentsFromScenario (const DtScenario &) const |
| Zooms to the extents from the supplied scenario, if extent information exists. | |
| virtual void | setFavorite (const DtEntityMapperKey &, bool f) |
| Sets the item to be a favorite then signals to recreate create menu. | |
| makVrv::DtRecordSettingsBackupInterface * | scriptedTaskSettingsBackup () |
| void | exportSessionSettings (const std::string &fileName) |
| Exports the current cache settings to a file. | |
| void | importSessionSettings (const std::string &fileName) |
| Import the current cache settings from a file. | |
| void | exportScriptedTaskSettings (const std::string &fileName) |
| Exports the current cache settings to a file. | |
| void | importScriptedTaskSettings (const std::string &fileName) |
| Import the current cache settings from a file. | |
| virtual void | setDoNotShowSessionStartupDialog (bool) |
| Sets whether or not to show the startup session dialog. | |
| bool | showSessionStartupDialog () const |
| virtual void | setStartupPreference (int) |
| Preference on startup (new scenario on VR-TheWorldServer, new scenario, or load scenario) | |
| int | startupPreference () const |
| virtual void | setAggregateOnCreate (bool) |
| Sets to whether or not create aggregates as true aggregates (true) or psuedo aggregates (false) when initially created. | |
| bool | aggregateOnCreate () const |
| virtual void | setUserDefinedSmoothing (bool) |
| Sets whether or not the user or system is defining smoothing in performance options. | |
| bool | userDefinedSmoothing () const |
| virtual void | setWindowTitle (const QString &) |
| Sets the title of the main window to the given name. | |
| virtual void | setShowSessionStatusDialogs (SessionStatusDialogs) |
| Sets to show which type of session status dialogs. | |
| SessionStatusDialogs | showSessionStatusDialogs () const |
| virtual void | setDenySystemScriptEditing (bool) |
| Sets whether or not system script editing is allowed. By default it is. | |
| virtual bool | denySystemScriptEditing () const |
| virtual void | setIndent (int) |
| Returns the indent level (in pixels) to apply to scripted task dialog indents. | |
| virtual int | indent () const |
| virtual void | setWarnOnSystemScriptChange (bool) |
| Returns true if should give warning on system script change with meta data or script. | |
| virtual bool | warnOnSystemScriptChange () const |
| virtual void | setMonitorScriptedTaskFrameRates (bool) |
| Returns true if should show frame rates for scripts. | |
| virtual bool | monitorScriptedTaskFrameRates () const |
| virtual void | setAutoSave (bool) |
| Set to false to not save on settings change. Default is true. | |
| virtual bool | autoSave () const |
| virtual void | setShowScenarioDescriptionMessageBox (bool b) |
| Sets whether or not to show scenario description message box. | |
| virtual bool | showScenarioDescriptionMessageBox () const |
| virtual const DtSubMenuConfiguration & | initialCreateMenuConfiguration () const |
| Valid after scenario is loaded. | |
| virtual DtSubMenuConfiguration & | initialCreateMenuConfiguration () |
| virtual const DtSubMenuConfiguration & | initialTaskMenuConfiguration () const |
| Valid after scenario is loaded. | |
| virtual DtSubMenuConfiguration & | initialTaskMenuConfiguration () |
| virtual const makVrv::DtToolbarConfiguration & | initialToolbarConfiguration () const |
| Valid when the application is initilly run. Stored from masterModeToolbarConfiguration. | |
| virtual makVrv::DtToolbarConfiguration & | initialToolbarConfiguration () |
| virtual const DtSubMenuConfiguration & | initialSetMenuConfiguration () const |
| Valid after scenario is loaded. | |
| virtual DtSubMenuConfiguration & | initialSetMenuConfiguration () |
| virtual void | slot_onScenarioModified () |
| virtual void | editHostilityMatrix (QWidget *parent) |
| Creates the hostility matrix editing dialog and emits a signal when it is created. | |
| virtual DtHostilityMatrixDialog * | createHostilityMatrixDialog (QWidget *p, const Qt::WindowFlags &flags) const |
| Creates the hostility matrix daialog. | |
| virtual void | addRecentScenario (const std::string &) |
| Uses recent scenario settings object to add a recent scenario. Sends out signal when changed. | |
| virtual bool | askAndSaveScriptsForRewind () |
| Will ask the user to save scripts that are modified before a rewind. | |
| virtual const DtRwHazardAreaInformation & | hazardAreaInformation () const |
| Returns current hazard area information. | |
| virtual makVrv::DtUnicode | hazardAreaAgentTypeFor (const DtEntityType &, const DtString &agentKey) const |
| Returns the agent type for the given entity type and key. | |
| virtual bool | loadTerrain (const std::string &filePath) |
| Loads the current terrain, overriding the exisiting terrain loaded. | |
| virtual void | resetTerrain () |
| Clears out loaded terrain. | |
| virtual time_t | dateAndTimeOfDay () const |
| Return the current time of day in the simulation in UTC time. | |
| virtual double | simulationTime () const |
| Use this simulation time (updated once a second) to synchronize timers/clocks. | |
| virtual void | setShowQuitDialogOnClose (bool) |
| Sets whether or not to show the quit dialog when closing the application. Default is true. | |
| virtual bool | showQuitDialogOnClose () const |
| virtual makArchives::DtObserverStateRecordsList & | observerViews () |
| virtual const makArchives::DtObserverStateRecordsList & | observerViews () const |
| virtual bool | isDefaultObserverView (const std::string &) |
| Default observer view handling. | |
| virtual std::string | defaultObserverView () const |
| Default observer view handling. | |
| virtual void | setDefaultObserverView (const std::string &) |
| Default observer view handling. | |
| virtual void | showObserverView (const std::string &view, int ticksBeforeShow=0, bool inPreTick=true, bool zoomToExtents=false) |
| If observer view is in the loaded records set the current observer to that observer view. | |
| virtual void | addAdditionalSmsFile (const std::string &) |
| virtual void | removeAdditionalSmsFile (const std::string &) |
| virtual void | setAdditionalSmsFiles (const std::vector< DtString > &) |
| virtual std::vector< std::string > | defaultSimulationModelSetFiles () const |
| Incorporates "default" simulation model sets plus whatever has been added by code. | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. | |
Static Public Member Functions | |
| static DtVrfScenarioManager & | instance (makVrv::DtDe &de) |
| Returns instance of the messager. | |
| static void | init (makVrv::DtDe &) |
| Initialize manager. Must be called once. | |
Public Attributes | |
| boost::signal< void(DtSessionStatusBox *)> | signal_sessionStatusDialogCreated |
| boost::signal< void()> | signal_allScenarioObjectsDiscovered |
| boost::signal< void()> | signal_forcesChanged |
| boost::signal< void()> | signal_scenarioRewound |
| boost::signal< void()> | signal_setMenuConfigurationLoaded |
| boost::signal< void()> | signal_taskMenuConfigurationLoaded |
| boost::signal< void()> | signal_createMenuConfigurationLoaded |
| boost::signal< void(const std::string &)> | signal_scenarioLoadError |
| boost::signal< void(const std::string &)> | signal_scenarioSaveError |
| boost::signal< void(DtSessionStartupDialog *)> | signal_sessionStartupBoxCreated |
| boost::signal< void(DtHostilityMatrixDialog *)> | signal_hostilityMatrixDialogCreated |
| boost::signal< void(const DtDeadReckoningSettings &)> | signal_deadReckoningSettingsChanged |
| boost::signal< void(const DtScenarioExplorer &)> | signal_scenarioLoaded |
| boost::signal< void(bool)> | signal_sessionStatusChanged |
| boost::signal< void()> | signal_allBackendsClosed |
| boost::signal< void()> | signal_rewinding |
| boost::signal< void()> | signal_scenarioManagerInitialized |
| boost::signal< void(std::string, std::string)> | signal_defaultObserverViewChanged |
| Signal sent when default observer view has changed – old view and new view. | |
| boost::signal< void(const DtScenarioLoadInformation &)> | signal_preLoadScenario |
| Sent before any load scenario is sent to the back-end or before terrain is loaded. | |
| boost::signal< void(const DtScenarioLoadInformation &)> | signal_postLoadScenario |
| Sent after scenario load message is sent to the back-end and after all additional files are loaded. | |
| boost::signal< void(const std::string &)> | signal_preLoadBaseTerrain |
| Sent before terrain is opened This function sends the terrain file requested on load. | |
| boost::signal< void(const std::string &)> | signal_preLoadTerrain |
| Sent before terrain is opened This function sends the actual terrain file being loaded. | |
| boost::signal< void(const std::string &)> | signal_postLoadTerrain |
| Sent after terrain is opened. | |
| boost::signal< void(const DtScenarioExplorer &)> | signal_preLoadForceFiles |
| Sent before force file is loaded. | |
| boost::signal< void(const DtScenarioExplorer &)> | signal_postLoadForceFiles |
| Sent after force file is loaded. | |
| boost::signal< void(const DtScenarioExplorer &)> | signal_preLoadArtilleryManager |
| Sent after artillery artillery is loaded. | |
| boost::signal< void(const DtScenarioExplorer &)> | signal_postLoadArtilleryManager |
| Sent after artillery artillery is loaded. | |
| boost::signal< void(const DtScenarioExplorer &)> | signal_preLoadModelSetFiles |
| Sent before model set files are loaded. | |
| boost::signal< void(const DtScenarioExplorer &)> | signal_postLoadModelSetFiles |
| Sent after model set files are loaded. | |
| boost::signal< void(const DtScenarioExplorer &)> | signal_preLoadCreateMenu |
| Sent before create menu is loaded. | |
| boost::signal< void(const DtScenarioExplorer &, DtMenu *)> | signal_postLoadCreateMenu |
| Sent after create menu is loaded. | |
| boost::signal< void(const DtScenarioExplorer &)> | signal_preLoadTaskMenu |
| Sent before task menu is loaded. | |
| boost::signal< void(const DtFilename &, DtVrfModelSetManager *)> | signal_modelSetLoaded |
| Signal sent when a model set is loaded into the model set manager. | |
| boost::signal< void(const DtScenarioExplorer &)> | signal_postLoadTaskMenu |
| Sent after task menu is loaded. | |
| boost::signal< void(const DtScenarioExplorer &)> | signal_preLoadSetMenu |
| Sent before set menu is loaded. | |
| boost::signal< void(const DtScenarioExplorer &)> | signal_postLoadSetMenu |
| Sent after set menu is loaded. | |
| boost::signal< void(const DtScenario &)> | signal_preLoadOverlayFile |
| Sent before overlay file is loaded. | |
| boost::signal< void(const DtScenario &)> | signal_postLoadOverlayFile |
| Sent after overlay file is loaded. | |
| boost::signal< void(const DtScenario &)> | signal_preLoadSelectionGroupFile |
| Sent before selection group file is loaded. | |
| boost::signal< void(const DtScenario &)> | signal_postLoadSelectionGroupFile |
| Sent after selection group file is loaded. | |
| boost::signal< void(const DtScenario &)> | signal_preLoadObserverViewsFile |
| Sent before the observer views file is loaded. | |
| boost::signal< void(const DtScenario &)> | signal_postLoadObserverViewsFile |
| Sent after the observer views file is loaded. | |
| boost::signal< void(const DtScenarioExplorer &)> | signal_createMenuLoaded |
| Sent after post load callback. | |
| boost::signal< void()> | signal_recreateCreateMenu |
| Sent to simply recrete the menu. Called from recreateCreateMenu() method. | |
| boost::signal< void()> | signal_recreateTaskMenu |
| Sent to simply recrete the menu. Called from recreateTaskMenu() method. | |
| boost::signal< void()> | signal_recreateSetMenu |
| Sent to simply recrete the menu. Called from recreateSetMenu() method. | |
| boost::signal< void(const DtVrfScriptedTaskSettingsRecord &)> | signal_scriptedTaskSettingsChanged |
| Sent when scripted task settings have changed. | |
| boost::signal< void(DtVrfGuiRecentScenarios *)> | signal_recentScenariosChanged |
| Sent when recent scenarios have changed. | |
| boost::signal< void(const DtScenario &)> | signal_preLoadGuiScenarioSettings |
| Sent before scenario settings are loaded. | |
| boost::signal< void(const DtScenario &)> | signal_postLoadGuiScenarioSettings |
| Sent after scenario settings are loaded. | |
| boost::signal< void()> | signal_scenarioClosed |
| Sent when the scenario is closed by the user. | |
| boost::signal< void()> | signal_scenarioClosing |
| Sent when the scenario has been notified by at least one back-end that the scenario is closing. | |
| boost::signal< void()> | signal_scenarioJustLoaded |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| boost::signal< void(QString)> | signal_windowTitleSet |
| Signal sent when the window title is set. | |
| boost::signal< void(const DtRwHazardAreaInformation &)> | signal_hazardAreaInformationReceived |
| Signal sent when hazard area information is received. | |
| boost::signal< void()> | signal_unspecifiedScenarioLoadingError |
| Signal sent when there is an unspecified error loading the scenario. | |
Protected Member Functions | |
| virtual void | scenarioJustClosed () |
| Called when the scenario has just closed in all backends. | |
| virtual void | errorLoadingScenario () |
| Called when there is an error (unspecified) loading the scenario. | |
| virtual void | scenarioClosing () |
| Called when the scenario has started to close. | |
| virtual void | slot_allBackendsClosed () |
| Called when the scenario this backend closed has closed. | |
| virtual void | loadTranslationsForModelSet (DtSimulationModelSet *) |
| Looks for a .qm file in the same directory as the model set and the language that wants to be used by the application, loads it and installs it. | |
| virtual void | cleanupSessionBox () |
| Removes session dialog if up. | |
| virtual void | slot_sessionStartupComplete () |
| Called when session startup dialog has been finished. | |
| virtual void | allScenarioObjectsDiscovered () |
| Signals when all scenario objects are discovered for the current loaded scenario. | |
| virtual void | slot_onScenarioLoaded (const DtScenario *) |
| Called when a scenario is loaded, updates internal information and re-emits a loaded signal. | |
| virtual void | slot_checkBackendClosed (const DtVrfBackendState &, int) |
| virtual void | slot_checkSimulationState (const DtVrfBackendState &, int) |
| virtual bool | saveIfDirty (bool *saved=0) |
| If scenario is dirty, put up a dialog to ask the user if they want to save. | |
| virtual DtJoinSessionDialog * | createJoinSessionDialog (QWidget *parent, const Qt::WindowFlags &flags) |
| virtual void | connectSignals (bool) |
| virtual void | displayCorrelationWarningMessage () |
| virtual void | requestHazardAreaInformation () |
| Requests hazard area information and sets up callback to receive. | |
| virtual void | reloadScenario (const std::string &newTerrain) |
| Saves existing to a temporary scenario then reloads that with new scenario name. | |
| virtual void | saveScenario (std::string baseName, std::string newTerrainName) |
| Sets up to save current scenario to supplied name. | |
| virtual void | slot_onScenarioSaved (std::string scenarioName, std::string newTerrain) |
| Called when the scenario is saved, reloads scenario then deletes temp scenario after reload. | |
| virtual void | reloadSimulationModelSets (const std::vector< DtFilename > &, bool reverse=false) |
| If ths simulation model sets in the current explorer are not the same as the supplied ones, reload all items that rely on the simulation model sets (create, set, task menus). | |
| virtual void | slot_onScenarioReloaded (std::string scenarioName) |
| Called when the scenario is loaded as part of a reload. Will delete temp scenario files. | |
| void | setup () |
| If not initialized, does initial setup. Called from constructor. | |
| virtual void | showSessionStartupDialog () |
| Shows the session startup dialog (DtSessionStartupDialog) | |
| virtual void | sessionStatusBoxClosed () |
| Called by session status box when it is closed. | |
| virtual void | processServerMessage (DtSimMessage *) |
| Called when there is a message from the server. | |
| virtual void | processStealthCommands (DtSimMessage *) |
| Processes result of the stealth commands. | |
| virtual void | processHazardAreaInformation (DtSimMessage *) |
| Called when hazard area information is received. | |
| virtual void | processForcesMessage (DtSimMessage *) |
| Process the message for current force types in the simulation. | |
| virtual void | restorePreservedScripts () |
| Restores modified scripts and clears out modified status of all scripts. | |
| virtual void | scenarioWasRewound () |
| Called when scenario was rewound. | |
| virtual void | terrainCleared () |
| Called when terrain is closed. Clear out some variables. | |
| virtual void | completeScenarioLoad () |
| virtual void | loadIndirectArtilleryManager (const DtScenarioExplorer &explorer) |
| virtual void | loadForceFiles (const DtScenarioExplorer &explorer) |
| virtual void | loadCreateMenu (const DtScenarioExplorer &explorer) |
| virtual bool | loadInitialMenuConfiguration (makVrv::DtMenuConfiguration &, const DtFilename &) |
| virtual void | loadOverlayFile (const DtScenario &) |
| virtual void | loadSelectionGroupFile (const DtScenario &) |
| virtual void | loadObserverViewFile (const DtScenario &, bool andSetDefaultView=true) |
| virtual void | loadGuiScenarioSettings (const DtScenario &) |
| virtual void | loadModelSetFiles (const DtScenarioExplorer &explorer) |
| virtual DtModelSetEntry * | modelSetEntry (const DtEntityMapperKey &key) const |
| virtual DtMenu * | createMenuFromModelSetManager () const |
| virtual bool | isModelSet (const DtFilename &filename) const |
| virtual void | slot_onSessionUpdated (int flags) |
| virtual void | slot_onDuplicateBackendAddress (const DtVrfBackendState &) |
| virtual void | slot_backendDiscovered (const DtVrfBackendState &) |
| virtual void | slot_settingReceived (const std::string &, const DtVrfBackendState *) |
| virtual void | slot_postDeCallback () |
| Used when waiting for a scenario to close so a pending load scenario command can be sent. | |
| virtual bool | sessionPrompt (const QString &message) |
| virtual bool | openTerrainDatabaseFromUserSelection () |
| virtual bool | loadSessionTerrain (const std::string &) |
| virtual bool | isSameTerrain (const std::string &terrain1, const std::string &terrain2) const |
| virtual void | slot_terrainModified () |
| virtual void | slot_propChanged () |
| Called when a prop has been added or deleted. Determine if this is a user action and only warn on correlation if it is. | |
| virtual void | slot_deDestructing () |
| virtual void | slot_terrainToBeCleared () |
| virtual void | slot_terrainCleared () |
| virtual bool | checkWriteGdb (const std::string &gdb) |
| virtual DtSessionStatusBox * | createSessionStatusBox () |
| virtual void | setupScriptedTaskSettings () |
| virtual QFileInfo | findTerrainFile (const std::string &terrainFile) const |
| Calls findTerrainFile with default search paths and extensions. | |
| virtual QFileInfo | findTerrainFile (const std::string &terrainFile, const std::vector< std::string > &searchPaths, const std::string &extension) const |
| Given the terrain file and search paths, look for that terrain file, using the supplied extension. | |
| virtual void | slot_scenarioAboutToBeSaved (DtScenario *) |
| Called when the scenario is about to be saved, put up the save dialog. | |
| virtual void | createSessionStatusBox (const QString &title, const QString &message, int statusType) |
| Creates a session status box. If one exists, delete it. | |
| virtual void | slot_sessionSettingsChanged () |
| Called when extended application option settings have changed – reset window title if currently adding extended title. | |
| virtual bool | eventFilter (QObject *, QEvent *) |
| Check close event on main window to ask to save changed before passing on. | |
Friends | |
| class | DtSessionStatusBox |
The class that will contain information about the currently loaded scenario.
| makVrf::DtVrfScenarioManager::DtVrfScenarioManager | ( | makVrv::DtDe & | ) |
|
virtual |
|
static |
Returns instance of the messager.
|
static |
Initialize manager. Must be called once.
|
inline |
|
inline |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Sets the flags to use when creating the menu for the create menu.
Default is to use favorites and place all envrionmentals/tactical graphics on the menu by force. Setting this flag will only be used at the next scenario load. It will not change the current menu setup
|
virtual |
|
virtual |
Schedules to call the load scenario method (with current main window) on the next de tick.
|
virtual |
Schedules to call the new scenario method (with current main window) on the next de tick.
|
virtual |
Creates and shows load scenario dialog.
|
virtual |
|
virtual |
Sets the help file to use when pressing the F1 key.
Note this will be a permanent change and will be using that file the next time the application is started if the save flag is true. By default is false
|
virtual |
|
virtual |
Sets the scenario file used as the default when creating a new scenario.
If save is true will make this change permanent
|
virtual |
|
virtual |
Sets the default .sms file to use when loading a scenario if none is found in the scenario to be loaded.
If save is true will make change permanent. This default file needs to be the title of the configuration to use. To get the .sms files that are part of this call defaultSimulationModelSetFiles()
|
virtual |
|
virtual |
Call to regenerate the menu from the model set structure and then recreate the menu.
|
virtual |
Call to start the process of recreating the create menu from the current menu structure.
Call rebuildCreateMenu to recreate from model set information
|
virtual |
Call to recreate the set menu from initialTaskMenuConfiguration.
|
virtual |
Call to recreate the task menu from initialSetMenuConfiguration.
|
virtual |
Accesses observer view records
|
virtual |
Accesses observer view records
|
virtual |
Creates and shows new scenario dialog.
|
virtual |
|
virtual |
Creates a new scenario on specified terrain using default.scn as the scenario base.
|
virtual |
Calls to batch scenario manager to load batch scenario.
|
virtual |
Does the actual joining to the session.
Triggers a terrain database load, if there is a terrain loaded by the current session.
| terrainAction | Determines what action will be taken with the terrain when joining the session. DtTerrainActionUseSessionTerrain will cause the session terrain to be loaded. DtTerrainActionChooseAlternateTerrain will cause a prompt to be displayed to the user to choose a terrain. DtTerrainActionKeepCurrentTerrain will keep the current terrain (or no terrain) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inline |
Default is true.
Set to false if menus should not use as one determining factor to validate themselves by whether or not an object is simulated by VRF
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Access to session record information.
To set, get record and then reset vis setFromRecord
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Default observer view handling.
|
virtual |
Default observer view handling.
|
virtual |
Default observer view handling.
|
virtual |
If observer view is in the loaded records set the current observer to that observer view.
|
virtual |
Requests spot reports for reports currently being show in the GUI.
|
virtual |
Requests stealth commands supported by the back-end.
Only needed to be done once as this will not change from scenario load to scenario load
|
inline |
|
virtual |
Zooms to the extents from the supplied scenario, if extent information exists.
|
virtual |
Sets the item to be a favorite then signals to recreate create menu.
|
inline |
| void makVrf::DtVrfScenarioManager::exportSessionSettings | ( | const std::string & | fileName | ) |
Exports the current cache settings to a file.
| void makVrf::DtVrfScenarioManager::importSessionSettings | ( | const std::string & | fileName | ) |
Import the current cache settings from a file.
| void makVrf::DtVrfScenarioManager::exportScriptedTaskSettings | ( | const std::string & | fileName | ) |
Exports the current cache settings to a file.
| void makVrf::DtVrfScenarioManager::importScriptedTaskSettings | ( | const std::string & | fileName | ) |
Import the current cache settings from a file.
|
virtual |
Sets whether or not to show the startup session dialog.
| bool makVrf::DtVrfScenarioManager::showSessionStartupDialog | ( | ) | const |
|
virtual |
Preference on startup (new scenario on VR-TheWorldServer, new scenario, or load scenario)
| int makVrf::DtVrfScenarioManager::startupPreference | ( | ) | const |
|
virtual |
Sets to whether or not create aggregates as true aggregates (true) or psuedo aggregates (false) when initially created.
Default is false
| bool makVrf::DtVrfScenarioManager::aggregateOnCreate | ( | ) | const |
|
virtual |
Sets whether or not the user or system is defining smoothing in performance options.
| bool makVrf::DtVrfScenarioManager::userDefinedSmoothing | ( | ) | const |
|
virtual |
Sets the title of the main window to the given name.
|
virtual |
Sets to show which type of session status dialogs.
|
inline |
|
virtual |
Sets whether or not system script editing is allowed. By default it is.
|
virtual |
|
virtual |
Returns the indent level (in pixels) to apply to scripted task dialog indents.
|
virtual |
|
virtual |
Returns true if should give warning on system script change with meta data or script.
|
virtual |
|
virtual |
Returns true if should show frame rates for scripts.
|
virtual |
|
virtual |
Set to false to not save on settings change. Default is true.
|
virtual |
|
virtual |
Sets whether or not to show scenario description message box.
|
virtual |
|
virtual |
Valid after scenario is loaded.
|
virtual |
|
virtual |
Valid after scenario is loaded.
|
virtual |
|
virtual |
Valid when the application is initilly run. Stored from masterModeToolbarConfiguration.
|
virtual |
|
virtual |
Valid after scenario is loaded.
|
virtual |
|
virtual |
Additional SMS files to use during new scenarios
|
virtual |
Additional SMS files to use during new scenarios
|
virtual |
Additional SMS files to use during new scenarios
|
virtual |
Incorporates "default" simulation model sets plus whatever has been added by code.
|
virtual |
|
virtual |
Creates the hostility matrix editing dialog and emits a signal when it is created.
|
virtual |
Creates the hostility matrix daialog.
|
virtual |
Uses recent scenario settings object to add a recent scenario. Sends out signal when changed.
|
virtual |
Will ask the user to save scripts that are modified before a rewind.
After rewind is complete will send the script and meta data to the server. Returns true if the user has indicated they want to save the modified scripts
|
virtual |
Returns current hazard area information.
|
virtual |
Returns the agent type for the given entity type and key.
|
virtual |
Loads the current terrain, overriding the exisiting terrain loaded.
|
virtual |
Clears out loaded terrain.
|
virtual |
Return the current time of day in the simulation in UTC time.
This might be different than the environment time as this time is dead reckoned from the last back-end time of day receipt
|
virtual |
Use this simulation time (updated once a second) to synchronize timers/clocks.
|
virtual |
Sets whether or not to show the quit dialog when closing the application. Default is true.
|
virtual |
|
protectedvirtual |
Called when the scenario has just closed in all backends.
|
protectedvirtual |
Called when there is an error (unspecified) loading the scenario.
|
protectedvirtual |
Called when the scenario has started to close.
|
protectedvirtual |
Called when the scenario this backend closed has closed.
|
protectedvirtual |
Looks for a .qm file in the same directory as the model set and the language that wants to be used by the application, loads it and installs it.
|
protectedvirtual |
Removes session dialog if up.
|
protectedvirtual |
Called when session startup dialog has been finished.
|
protectedvirtual |
Signals when all scenario objects are discovered for the current loaded scenario.
|
protectedvirtual |
Called when a scenario is loaded, updates internal information and re-emits a loaded signal.
|
protectedvirtual |
|
protectedvirtual |
If scenario is dirty, put up a dialog to ask the user if they want to save.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Requests hazard area information and sets up callback to receive.
|
protectedvirtual |
Saves existing to a temporary scenario then reloads that with new scenario name.
|
protectedvirtual |
Sets up to save current scenario to supplied name.
If scenario name exists in temp directory then counts until it can find a unique name.
|
protectedvirtual |
Called when the scenario is saved, reloads scenario then deletes temp scenario after reload.
|
protectedvirtual |
If ths simulation model sets in the current explorer are not the same as the supplied ones, reload all items that rely on the simulation model sets (create, set, task menus).
If reverse set the backend simulation model sets to what is contained in the explorer, else set explorer to what is contained in the back-end
|
protectedvirtual |
Called when the scenario is loaded as part of a reload. Will delete temp scenario files.
|
protected |
If not initialized, does initial setup. Called from constructor.
|
protectedvirtual |
Shows the session startup dialog (DtSessionStartupDialog)
|
protectedvirtual |
Called by session status box when it is closed.
|
protectedvirtual |
Called when there is a message from the server.
Will see if there is a scenario load error and then repackage and signal it
|
protectedvirtual |
Processes result of the stealth commands.
|
protectedvirtual |
Called when hazard area information is received.
|
protectedvirtual |
Process the message for current force types in the simulation.
|
protectedvirtual |
Restores modified scripts and clears out modified status of all scripts.
|
protectedvirtual |
Called when scenario was rewound.
|
protectedvirtual |
Called when terrain is closed. Clear out some variables.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Used when waiting for a scenario to close so a pending load scenario command can be sent.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Called when a prop has been added or deleted. Determine if this is a user action and only warn on correlation if it is.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Calls findTerrainFile with default search paths and extensions.
|
protectedvirtual |
Given the terrain file and search paths, look for that terrain file, using the supplied extension.
Return a QFileInfo that points to the file
|
protectedvirtual |
Called when the scenario is about to be saved, put up the save dialog.
|
protectedvirtual |
Creates a session status box. If one exists, delete it.
|
protectedvirtual |
Called when extended application option settings have changed – reset window title if currently adding extended title.
Check close event on main window to ask to save changed before passing on.
|
friend |
| boost::signal<void (DtSessionStatusBox*)> makVrf::DtVrfScenarioManager::signal_sessionStatusDialogCreated |
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_allScenarioObjectsDiscovered |
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_forcesChanged |
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_scenarioRewound |
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_setMenuConfigurationLoaded |
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_taskMenuConfigurationLoaded |
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_createMenuConfigurationLoaded |
| boost::signal<void (const std::string&)> makVrf::DtVrfScenarioManager::signal_scenarioLoadError |
| boost::signal<void (const std::string&)> makVrf::DtVrfScenarioManager::signal_scenarioSaveError |
| boost::signal<void (DtSessionStartupDialog*)> makVrf::DtVrfScenarioManager::signal_sessionStartupBoxCreated |
| boost::signal<void (DtHostilityMatrixDialog*)> makVrf::DtVrfScenarioManager::signal_hostilityMatrixDialogCreated |
| boost::signal<void (const DtDeadReckoningSettings&)> makVrf::DtVrfScenarioManager::signal_deadReckoningSettingsChanged |
| boost::signal<void (const DtScenarioExplorer&)> makVrf::DtVrfScenarioManager::signal_scenarioLoaded |
| boost::signal<void (bool)> makVrf::DtVrfScenarioManager::signal_sessionStatusChanged |
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_allBackendsClosed |
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_rewinding |
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_scenarioManagerInitialized |
| boost::signal<void (std::string, std::string)> makVrf::DtVrfScenarioManager::signal_defaultObserverViewChanged |
Signal sent when default observer view has changed – old view and new view.
| boost::signal<void (const DtScenarioLoadInformation&)> makVrf::DtVrfScenarioManager::signal_preLoadScenario |
Sent before any load scenario is sent to the back-end or before terrain is loaded.
| boost::signal<void (const DtScenarioLoadInformation&)> makVrf::DtVrfScenarioManager::signal_postLoadScenario |
Sent after scenario load message is sent to the back-end and after all additional files are loaded.
| boost::signal<void (const std::string&)> makVrf::DtVrfScenarioManager::signal_preLoadBaseTerrain |
Sent before terrain is opened This function sends the terrain file requested on load.
Which could change if you are loading say a flt file embedded in a mtd file
| boost::signal<void (const std::string&)> makVrf::DtVrfScenarioManager::signal_preLoadTerrain |
Sent before terrain is opened This function sends the actual terrain file being loaded.
| boost::signal<void (const std::string&)> makVrf::DtVrfScenarioManager::signal_postLoadTerrain |
Sent after terrain is opened.
| boost::signal<void (const DtScenarioExplorer&)> makVrf::DtVrfScenarioManager::signal_preLoadForceFiles |
Sent before force file is loaded.
| boost::signal<void (const DtScenarioExplorer&)> makVrf::DtVrfScenarioManager::signal_postLoadForceFiles |
Sent after force file is loaded.
| boost::signal<void (const DtScenarioExplorer&)> makVrf::DtVrfScenarioManager::signal_preLoadArtilleryManager |
Sent after artillery artillery is loaded.
| boost::signal<void (const DtScenarioExplorer&)> makVrf::DtVrfScenarioManager::signal_postLoadArtilleryManager |
Sent after artillery artillery is loaded.
| boost::signal<void (const DtScenarioExplorer&)> makVrf::DtVrfScenarioManager::signal_preLoadModelSetFiles |
Sent before model set files are loaded.
| boost::signal<void (const DtScenarioExplorer&)> makVrf::DtVrfScenarioManager::signal_postLoadModelSetFiles |
Sent after model set files are loaded.
| boost::signal<void (const DtScenarioExplorer&)> makVrf::DtVrfScenarioManager::signal_preLoadCreateMenu |
Sent before create menu is loaded.
| boost::signal<void (const DtScenarioExplorer&, DtMenu*)> makVrf::DtVrfScenarioManager::signal_postLoadCreateMenu |
Sent after create menu is loaded.
| boost::signal<void (const DtScenarioExplorer&)> makVrf::DtVrfScenarioManager::signal_preLoadTaskMenu |
Sent before task menu is loaded.
| boost::signal<void (const DtFilename&, DtVrfModelSetManager*)> makVrf::DtVrfScenarioManager::signal_modelSetLoaded |
Signal sent when a model set is loaded into the model set manager.
| boost::signal<void (const DtScenarioExplorer&)> makVrf::DtVrfScenarioManager::signal_postLoadTaskMenu |
Sent after task menu is loaded.
| boost::signal<void (const DtScenarioExplorer&)> makVrf::DtVrfScenarioManager::signal_preLoadSetMenu |
Sent before set menu is loaded.
| boost::signal<void (const DtScenarioExplorer&)> makVrf::DtVrfScenarioManager::signal_postLoadSetMenu |
Sent after set menu is loaded.
| boost::signal<void (const DtScenario&)> makVrf::DtVrfScenarioManager::signal_preLoadOverlayFile |
Sent before overlay file is loaded.
| boost::signal<void (const DtScenario&)> makVrf::DtVrfScenarioManager::signal_postLoadOverlayFile |
Sent after overlay file is loaded.
| boost::signal<void (const DtScenario&)> makVrf::DtVrfScenarioManager::signal_preLoadSelectionGroupFile |
Sent before selection group file is loaded.
| boost::signal<void (const DtScenario&)> makVrf::DtVrfScenarioManager::signal_postLoadSelectionGroupFile |
Sent after selection group file is loaded.
| boost::signal<void (const DtScenario&)> makVrf::DtVrfScenarioManager::signal_preLoadObserverViewsFile |
Sent before the observer views file is loaded.
| boost::signal<void (const DtScenario&)> makVrf::DtVrfScenarioManager::signal_postLoadObserverViewsFile |
Sent after the observer views file is loaded.
| boost::signal<void (const DtScenarioExplorer&)> makVrf::DtVrfScenarioManager::signal_createMenuLoaded |
Sent after post load callback.
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_recreateCreateMenu |
Sent to simply recrete the menu. Called from recreateCreateMenu() method.
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_recreateTaskMenu |
Sent to simply recrete the menu. Called from recreateTaskMenu() method.
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_recreateSetMenu |
Sent to simply recrete the menu. Called from recreateSetMenu() method.
| boost::signal<void (const DtVrfScriptedTaskSettingsRecord&)> makVrf::DtVrfScenarioManager::signal_scriptedTaskSettingsChanged |
Sent when scripted task settings have changed.
| boost::signal<void (DtVrfGuiRecentScenarios*)> makVrf::DtVrfScenarioManager::signal_recentScenariosChanged |
Sent when recent scenarios have changed.
| boost::signal<void (const DtScenario&)> makVrf::DtVrfScenarioManager::signal_preLoadGuiScenarioSettings |
Sent before scenario settings are loaded.
| boost::signal<void (const DtScenario&)> makVrf::DtVrfScenarioManager::signal_postLoadGuiScenarioSettings |
Sent after scenario settings are loaded.
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_scenarioClosed |
Sent when the scenario is closed by the user.
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_scenarioClosing |
Sent when the scenario has been notified by at least one back-end that the scenario is closing.
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_scenarioJustLoaded |
Signal sent when a scenario has just been loaded, either locally or remotely.
| boost::signal<void (QString)> makVrf::DtVrfScenarioManager::signal_windowTitleSet |
Signal sent when the window title is set.
| boost::signal<void (const DtRwHazardAreaInformation&)> makVrf::DtVrfScenarioManager::signal_hazardAreaInformationReceived |
Signal sent when hazard area information is received.
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_unspecifiedScenarioLoadingError |
Signal sent when there is an unspecified error loading the scenario.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Used when a scenario load call is waiting for an existing scenario to close.
|
protected |