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

Classes | |
| class | LoadScenarioFromDialogEvent |
| class | LoadScenarioFromScenarioInformationEvent |
Public Types | |
| enum | DtJoinSessionTerrainAction { DtTerrainActionUseSessionTerrain, DtTerrainActionChooseAlternateTerrain, DtTerrainActionKeepCurrentTerrain, DtShowSessionStartupDialog, DtLoadScenarioSpecifiedInApplication, DtTerrainActionUseSessionTerrainWithoutJoining, DtLoadSimulationObjectGroupSpecifiedInApplication } |
| enum | SessionStatusDialogs { Loading = 0x00000001, Saving = 0x00000002, Closing = 0x00000004, Importing = 0x00000008, CreatingSimulationObjectGroup = 0x00000010, Reinitializing = 0x00000020, AllStatusDialogs = Loading | Saving | Closing | Importing | CreatingSimulationObjectGroup | Reinitializing } |
Public Member Functions | |
| DtVrfScenarioManager (makVrv::DtDe &) | |
| virtual | ~DtVrfScenarioManager () |
| const DtScenarioExplorer * | scenarioExplorer () const |
| const std::vector < DtEntityMapperKey > & | controlObjects () const |
| bool | loadingSessionTerrain () const |
| bool | simulationObjectGroupEditingMode () const |
| virtual void | addControlObject (const DtEntityMapperKey &key) |
| virtual void | removeControlObject (const DtEntityMapperKey &key) |
| virtual void | clearControlObjects () |
| virtual bool | isControlObject (const DtEntityMapperKey &key) const |
| virtual bool | wantsToSaveTerrain (bool &ignoredModifications) |
| Checks to see if terrain is modified, and, if so, if any navigation areas need to be regenerated. | |
| virtual bool | saveGuiTerrain (bool askForName=false) |
| Saves the gui (front-end) terrain and returns true if operation is successful. If the ask flag is true will ask for a new save name. | |
| virtual bool | saveSimTerrain (bool askForName=false) |
| Saves the sim (back-end) terrain and returns true if operation is successful. If the ask flag is true will ask for a new save name. | |
| bool | importingScenario () const |
| Returns true if the scenario load is an import. | |
| virtual bool | generateNavigationArea (makVrv::DtUniqueID) |
| Generates the given navigation area with first checking to see if the terrain needs to be saved. | |
| virtual bool | regenerateNavigationAreas (bool) |
| Regenerates navigation areas. | |
| virtual DtFilename | loadingScenarioFile () const |
| If in the process of loading a scenario, the filename loading. | |
| virtual bool | mapUUIDToScenarioDataFromOobInScenario (const DtFilename &scenarioFile, DtScenario::ScenarioDataMap &scenarioDataMap) const |
| Given the scenario filename, if it exists and there is an order of battle file, parse the order of battle file and fill in the map with UUID to marking text. | |
| virtual void | closeScenario (bool resetScenario=true, const DtFilename &databaseToOpen="", bool forceCloseAll=false) |
| If forceCloseAll in closeScenario is true it will force a close of the terrain in the back-end and also clear out the currently loaded simulation model set such that a new scenario load (even on the same terrain) will reload the scenario. | |
| virtual bool | loadScenario (std::string, DtVrfScenarioRemapFunction *remapping=0) |
| virtual bool | loadScenario (const DtScenarioLoadInformation &s) |
| virtual bool | importScenario (const DtScenarioLoadInformation &s) |
| virtual void | runScenario () |
| virtual void | pauseScenario () |
| virtual bool | rewindScenario (double toSimTime=-1) |
| If toSimTime is -1 rewinds to either the last loaded scenario point or the last checkpoint (if checkpoint exists). | |
| 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 (const DtString &scenarioName="", bool useDefaultRemappingFunction=false) |
| 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 | importScenarioFromDialog (QWidget *p) |
| virtual void | loadScenarioFromSessionDialog (QWidget *p) |
| Shows the session load dialog. | |
| 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 | setSimulationObjectGroupTerrain (const std::string &f, bool save=false) |
| The terrain used for simulation object group editing. | |
| virtual std::string | simulationObjectGroupTerrain () 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 | reloadVisuals () |
| Reload the simulation model set visuals. | |
| virtual DtString | scenarioSaveExtension (bool includesDot=true) const |
| Returns the extension to save the scenario with. If includesDot is true, put the . before the extension. | |
| virtual void | recreateCreateMenu () |
| Call to start the process of recreating the create menu from the current menu structure. | |
| virtual void | cleanupBackupFile (double simTime) const |
| If a backup compressed file exists at the given sim time, clean it up. | |
| virtual std::string | language () const |
| Language code application is using. | |
| 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 void | removeSimulationObjectGroupTasksSets (const DtScenarioExplorer &explorer) |
| To to remove items from the initial task and set menu from the simulation object group removal file. | |
| virtual DtFilename | saveScenarioName (bool askIfDoesNotExist=true, bool *asked=0, bool createDefaultIfEmpty=false, bool useScenarioNameAsSeed=true) const |
| The name of the scenario to be saved. | |
| const DtSimulationObjectCategoryInformation & | tags () const |
| The category (tag) information loaded for the current model set. | |
| DtSimulationObjectCategoryInformation & | tags () |
| virtual void | setupWindowTitleBasedOnScenario () |
| Sets the window title based on the current scenario name. | |
| virtual DtScenarioSettingsDialog * | createNewScenarioDialog (QWidget *p) |
| Creates and shows new scenario dialog. | |
| virtual void | newScenarioFromDialog (QWidget *p) |
| virtual void | newScenario (const std::string &, const std::string &sms="") |
| 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 int | saveScenario () |
| Returns either/and flags: DtSaveCurrentCheckpoint, DtSaveStartingSnapshot or 0 (no save) | |
| virtual bool | canRewind () const |
| void | setValidateForVrfObjects (bool b) |
| Default is true. | |
| bool | validateForVrfObjects () const |
| virtual void | setScenarioDirty (bool b) |
| void | setReadyToQuit (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 void | getSplitRecord (std::vector< DtVrfScriptedTaskSettingsRecord > &rec, std::vector< std::string > &fileNames) |
| To support writing element definitions in folders as multiple files not implemented. | |
| virtual void | addRecords (DtVrfScriptedTaskSettingsRecord &recs, DtVrfScriptedTaskSettingsRecord &combinedRec) |
| To support writing element definitions in folders as multiple files not implemented. | |
| 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 | displayCorrelationWarningMessage () |
| 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 |
| const DtSimulationObjectGroupSaveInformation & | simulationObjectGroupSaveInformation () const |
| If in simulation object group creation mode, this is the information used to save the group. | |
| virtual bool | isScenarioFile (const DtFilename &, bool exact=false) const |
| Returns true if this is the scenario file that is currently loaded. | |
| virtual void | setAsynchLoadBufferTime (double) |
| Up this value (default 1.00 seconds) if you are using asynch io mode and see the loading scenario dialog not going away. | |
| virtual void | setSaveScenarioToZipFile (bool) |
| Whether or not to save a scenario to a zip file (default is true) | |
| 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 | 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 QString | filenameToSaveUnder () const |
| Returns the filename to save under. | |
| 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 makVrv::DtToolbarConfiguration & | scriptModifiedToolbarConfiguration () const |
| The configuration as modified by scripted tasks. | |
| virtual makVrv::DtToolbarConfiguration & | scriptModifiedToolbarConfiguration () |
| virtual const DtSubMenuConfiguration & | initialSetMenuConfiguration () const |
| Valid after scenario is loaded. | |
| virtual DtSubMenuConfiguration & | initialSetMenuConfiguration () |
| virtual void | setSaveScenarioFilenameToUseOnFirstSave (const DtFilename &f) |
| For the first (or next) save, use this filename to save. | |
| virtual const DtFilename & | saveScenarioFilenameToUseOnFirstSave () const |
| bool | quitting () const |
| 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 void | setShowLoadErrors (bool) |
| Sets whether or not to show load error message boxes. Default is true. | |
| virtual bool | showLoadErrors () const |
| virtual bool | loadTerrain (const std::string &guiTerrainFilename, const std::string &simTerrainFilename="") |
| Because the navigation generation happens on the back-end terrain only, both terrains are passed into this method. | |
| virtual bool | loadSimTerrain (const std::string &simTerrainFilename, bool clearSimTerrain=false) |
| Loads the mtf file (mtf only) for the filename given for the sim terrain. | |
| 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, bool saveChanges=true) |
| Sets whether or not to show the quit dialog when closing the application. | |
| virtual bool | showQuitDialogOnClose () const |
| virtual void | resetScriptModifiedToolbarConfiguration () |
| virtual void | setKeepOpenTerrainFromCommandLine (bool) |
| Set to false to allow session terrain to override terrain loaded from command line on next scenario load. | |
| virtual void | slot_defaultIconListChanged () |
| virtual void | slot_forcesChanged () |
| virtual makArchives::DtObserverStateRecordsList | scenarioObserverViews () const |
| virtual void | setScenarioObserverViews (const makArchives::DtObserverStateRecordsList &) const |
| virtual bool | isDefaultObserverView (const std::string &) |
| virtual std::string | defaultObserverView (bool &is2D) const |
| virtual void | setDefaultObserverView (const std::string &) |
| virtual void | setTerrainViewVisible (const std::string &, bool vis) |
| virtual void | setHiddenTerrainViews (const std::string &) |
| These views are semi-colon separated views of the observer view format of name and mode. | |
| virtual bool | terrainViewHidden (const std::string &) const |
| virtual const std::set < std::string > & | hiddenTerrainViews () const |
| virtual std::set< std::string > & | hiddenTerrainViews () |
| virtual bool | defaultObserverViewStateRecord (makArchives::DtObserverStateRecord &) const |
| 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 | resetObserverForCommandLineTerrain (int count, bool inPreTick) |
| 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()> | signal_forcesChanged |
| boost::signal< void()> | signal_waitingForScenarioObjectsToBeDiscovered |
| boost::signal< void()> | signal_defaultIconListChanged |
| boost::signal< void()> | signal_observerViewSetFromScenario |
| boost::signal< void(const std::set< std::string > &)> | signal_terrainViewsHidden |
| boost::signal< void(const DtScenario &)> | signal_scenarioInitialized |
| boost::signal< void(DtSessionStartupDialog *)> | signal_sessionDialogBoxAboutToShow |
| boost::signal< void(bool)> | signal_requestingSaveOnScenarioModified |
| boost::signal< void(DtSessionStatusBox *)> | signal_sessionStatusDialogCreated |
| boost::signal< void()> | signal_allScenarioObjectsDiscovered |
| boost::signal< void()> | signal_scenarioRewound |
| boost::signal< void()> | signal_scenarioReinitialized |
| 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_rewindMessageSent |
| 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_scenarioLoadRequest |
| Sent before the check to see if the scenario should be closed and before pre-load scenario. | |
| 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 gui terrain is opened This function sends the terrain file requested on load. | |
| boost::signal< void(const std::string &)> | signal_preLoadSimTerrain |
| Sent before sim 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 gui terrain is opened. | |
| boost::signal< void(const std::string &)> | signal_postLoadSimTerrain |
| Sent after sim 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_preLoadVisuals |
| Sent before visuals are loaded. | |
| boost::signal< void(const DtScenarioExplorer &)> | signal_postLoadVisuals |
| Sent after visuals 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 &)> | signal_modelSetLoaded |
| Signal sent after the 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_preLoadSimulationObjectGroupRemovalFile |
| Sent before simulation object group removal file is loaded. | |
| boost::signal< void(const DtScenarioExplorer &)> | signal_postLoadSimulationObjectGroupRemovalFile |
| Sent after simulation object group removal file 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_windowTitleAboutToBeSet |
| Signal sent right before the title is set. Modify the supplied string to set (or change) title. | |
| 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. | |
| boost::signal< void(const std::string &)> | signal_scenarioFilenameChanged |
| Signal sent when the scenario filename loaded changed. | |
Static Public Attributes | |
| static const QEvent::Type | LoadScenarioFromDialogEventType = (QEvent::Type)(QEvent::User + 302) |
| static const QEvent::Type | LoadScenarioFromScenarioInformationEventType = (QEvent::Type)(QEvent::User + 303) |
Protected Slots | |
| virtual void | commFileMessagesReceived (const QStringList &) |
| virtual void | statusDialogDestroyed () |
Protected Member Functions | |
| virtual bool | loadScenarioFromEvent (const DtScenarioLoadInformation &s) |
| virtual int | quitApplication (const QString &title, const QString &message, bool &quitBackend, bool hasCancelButton=true) |
| Returns the value of the quit message dialog (Yes, No, Cancel). | |
| virtual time_t | initializeEnvironmentDateTimeOfDay (time_t proposedTime) |
| Called during setup or new scenario. | |
| virtual void | scenarioFilenameChanged () |
| Called when the scenario filename has changed. Will change title and reset the scenario to save. | |
| 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 *, bool emitScenarioLoadedSignal=true, bool isNewScenario=false) |
| 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 (int *saved=0, bool takeSnapshot=true, bool showCheckpointSaveTitle=false, bool quittingApplication=false, int *dialogResult=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 DtVrfScenarioRemapFunction * | remapFunctionForCommandLineScenarioLoad () const |
| If a scenario is loaded from a command line, the mapper to use to remap missing back-ends. | |
| virtual void | watchForScenarioObjectsDiscovered () |
| virtual void | connectSignals (bool) |
| virtual void | requestHazardAreaInformation () |
| Requests hazard area information and sets up callback to receive. | |
| virtual void | requestOrbatInformation () |
| Requests the orbat information from the orbat back-end. | |
| 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 (bool checkpointSave=false) |
| 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 | 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 | restorePreservedScripts () |
| Restores modified scripts and clears out modified status of all scripts. | |
| virtual void | scenarioWasRewound (DtSimMessage *) |
| Called when scenario was rewound. | |
| virtual void | terrainCleared () |
| Called when terrain is closed. Clear out some variables. | |
| virtual void | clearFrontEndScenariodData () |
| virtual void | quitAllBackends () |
| Quits all the back-ends by sending off the quit message. | |
| virtual void | checkCloseStatus () |
| virtual void | postTickSOGLoad (std::string sogFile) |
| Do not call directly. Called as part of loading simulation object group from simulation object editor. | |
| virtual void | completeScenarioLoad () |
| virtual void | completeSimulationObjectGroupLoad () |
| virtual DtVrfSimBackendManager & | backendManager () const |
| 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 &, bool removeAll=true) |
| 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 void | loadVisuals (const DtScenarioExplorer &explorer, bool force=false) |
| 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 void | remapTerrainFilenames (DtScenario *) |
| Given a scenario, if need be, remap the terrain filenames. | |
| virtual void | createTerrainFilenameRemapper () |
| Creates a terrain filename remapper if one does not exist. | |
| virtual bool | sessionPrompt (const QString &message) |
| virtual bool | openTerrainDatabaseFromUserSelection (const std::string &simTerrainFilename="") |
| If the user is attempting to open a scenario that has a different sim terrain than gui terrain, make sure to load the sim terrain as specified, if it can be. | |
| virtual bool | loadSessionTerrain (const std::string &guiTerrainFilename, const std::string &simTerrainFilename="") |
| Because the navigation generation happens on the back-end terrain only, both terrains are passed into this method. | |
| 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 bool | blockSessionTerrainLoad () const |
| Whether or not to block the session terrain loading. | |
| 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. | |
| virtual void | slot_guiSettingsChanged () |
| Called when extended application option gui 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. | |
| virtual void | slot_savedSimulationObjectGroup (const std::string &) |
| virtual void | postSaveLoadFromSession (QWidget *) |
| virtual void | postSaveLoadFromDialog (QWidget *) |
| virtual void | postSaveNew (QWidget *) |
| virtual void | postSaveQuit () |
| virtual void | postSaveLoad () |
| virtual void | postSaveClose (bool resetScenario, DtFilename databaseToOpen, bool forceCloseAll) |
| virtual void | postSaveImport (DtScenarioLoadInformation) |
| virtual void | postSaveRewind (bool preserveScripts, double simTime) |
| virtual void | nullSaveFunction () |
| virtual void | backendDiscoveryTick () |
| When discovering backends that are loaded wait until all backends are discovered and then see if all objects are loaded (or set a signal for that) | |
| virtual void | addAdditionalCategories () |
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 |
|
inline |
|
inline |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Checks to see if terrain is modified, and, if so, if any navigation areas need to be regenerated.
If the terrain is modified and the navigation areas do not need to be regenereatd the user will get a chance to save the terrain, not or cancel. If the navigation areas need to be regenerate the user will get a chance to not close the terrain or cancel and close. If true is returned from this method than whatever action was supposed to happen after this shouldn't
Saves the gui (front-end) terrain and returns true if operation is successful. If the ask flag is true will ask for a new save name.
Saves the sim (back-end) terrain and returns true if operation is successful. If the ask flag is true will ask for a new save name.
|
inline |
Returns true if the scenario load is an import.
|
virtual |
Generates the given navigation area with first checking to see if the terrain needs to be saved.
Regenerates navigation areas.
All if flag is true, only those that need generation if false with first checking to see if the terrain needs to be saved
|
virtual |
If in the process of loading a scenario, the filename loading.
|
virtual |
Given the scenario filename, if it exists and there is an order of battle file, parse the order of battle file and fill in the map with UUID to marking text.
|
virtual |
If forceCloseAll in closeScenario is true it will force a close of the terrain in the back-end and also clear out the currently loaded simulation model set such that a new scenario load (even on the same terrain) will reload the scenario.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
If toSimTime is -1 rewinds to either the last loaded scenario point or the last checkpoint (if checkpoint exists).
If simTime is >= 0 rewinds to that sim time
|
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.
Blank scenario name brings up the dialog whereas a scenario name will immediately call loadScenario. If useDefaultRemappingFunction is false then, if the scenario was not originally created on the back-end that is running, no dialog will be presented for remap
|
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 |
|
virtual |
Shows the session load dialog.
|
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 |
The terrain used for simulation object group editing.
|
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 |
Reload the simulation model set visuals.
|
virtual |
Returns the extension to save the scenario with. If includesDot is true, put the . before the extension.
|
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 |
If a backup compressed file exists at the given sim time, clean it up.
|
virtual |
Language code application is using.
|
virtual |
Call to recreate the set menu from initialTaskMenuConfiguration.
|
virtual |
Call to recreate the task menu from initialSetMenuConfiguration.
|
virtual |
To to remove items from the initial task and set menu from the simulation object group removal file.
This will only happen in simulation object group mode
|
virtual |
The name of the scenario to be saved.
If no name exists will ask the user for one. If asked is specified will be set to true if the user is asked for the saved name
|
inline |
The category (tag) information loaded for the current model set.
|
inline |
|
virtual |
Sets the window title based on the current scenario name.
|
virtual |
Accesses observer view records
|
virtual |
|
virtual |
Creates and shows new scenario dialog.
|
virtual |
|
virtual |
Creates a new scenario on specified terrain using default.scn as the scenario base.
If sms is empty the default sms is used. If the sms is a filename that sms will be used else the sms configurations will be checked and if that matches, that configuration will be used
|
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 |
Returns either/and flags: DtSaveCurrentCheckpoint, DtSaveStartingSnapshot or 0 (no save)
|
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 |
|
virtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
To support writing element definitions in folders as multiple files not implemented.
|
inlinevirtual |
To support writing element definitions in folders as multiple files not implemented.
|
virtual |
Access to session record information.
To set, get record and then reset vis setFromRecord
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Default observer view handling All views must have the format <view name>="">:[2D | 3D] to indicate if it is a 2D or 3D saved view
|
virtual |
|
virtual |
|
virtual |
|
virtual |
These views are semi-colon separated views of the observer view format of name and mode.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
If observer view is in the loaded records set the current observer to that observer view.
|
virtual |
|
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 |
|
inline |
If in simulation object group creation mode, this is the information used to save the group.
|
virtual |
Returns true if this is the scenario file that is currently loaded.
It will do an exact check if the exact check flag is true, else it will simply look at the filename (without extension)
|
virtual |
Up this value (default 1.00 seconds) if you are using asynch io mode and see the loading scenario dialog not going away.
|
virtual |
Whether or not to save a scenario to a zip file (default is true)
|
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 |
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 |
Returns the filename to save under.
|
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 |
The configuration as modified by scripted tasks.
|
virtual |
|
virtual |
Valid after scenario is loaded.
|
virtual |
|
virtual |
Additional SMS files to use during new scenarios
|
virtual |
|
virtual |
|
virtual |
Incorporates "default" simulation model sets plus whatever has been added by code.
|
virtual |
For the first (or next) save, use this filename to save.
Must be a complete path. Set to empty string to save as or to use current name in scenario
|
virtual |
|
inline |
|
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 |
Sets whether or not to show load error message boxes. Default is true.
|
virtual |
|
virtual |
Because the navigation generation happens on the back-end terrain only, both terrains are passed into this method.
If the back-end terrain is empty, it is assumed to be the same as the front-end terrain and all navigation generation will be done on that terrain. Only sim terrains that end in the mtf extension will be loaded as a separate record as only mtf files are considered to be possible to generate navigation data on. If the extension of the sim terrain file is not mtf it is assumed the front-end will be used for naviation generation
|
virtual |
Loads the mtf file (mtf only) for the filename given for the sim terrain.
If is is not an mtf file, the current sim terrain will be left alone (unless the clearSimTerrain flag is true in which case the simulation terrain will also be cleared)
|
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 what is set in the application settings manager. This is a pass through for backwards compatability. If saveChanges is true will save changes for the next time the application is run if the application settings also have autoSave turned on
|
virtual |
|
virtual |
|
virtual |
Set to false to allow session terrain to override terrain loaded from command line on next scenario load.
|
virtual |
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
Returns the value of the quit message dialog (Yes, No, Cancel).
If the application wants to show the quit all backends option, the quitBackend will be set to true given the status of the check box
|
protectedvirtual |
Called during setup or new scenario.
Sets the date/time of day to 10am current date to try and minimize shadow changing when entity is first placed
|
protectedvirtual |
Called when the scenario filename has changed. Will change title and reset the scenario to save.
|
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 |
|
protectedvirtual |
If scenario is dirty, put up a dialog to ask the user if they want to save.
|
protectedvirtual |
|
protectedvirtual |
If a scenario is loaded from a command line, the mapper to use to remap missing back-ends.
The default is the auto remap which will put everything on the first back-end
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Requests hazard area information and sets up callback to receive.
|
protectedvirtual |
Requests the orbat information from the orbat back-end.
|
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 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 |
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 |
Quits all the back-ends by sending off the quit message.
|
protectedvirtual |
|
protectedvirtual |
Do not call directly. Called as part of loading simulation object group from simulation object editor.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
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 |
Given a scenario, if need be, remap the terrain filenames.
|
protectedvirtual |
Creates a terrain filename remapper if one does not exist.
|
protectedvirtual |
|
protectedvirtual |
If the user is attempting to open a scenario that has a different sim terrain than gui terrain, make sure to load the sim terrain as specified, if it can be.
If not the gui terrain will be used as the sim terrain
|
protectedvirtual |
Because the navigation generation happens on the back-end terrain only, both terrains are passed into this method.
If the back-end terrain is empty, it is assumed to be the same as the front-end terrain and all navigation generation will be done on that terrain. Only sim terrains that end in the mtf extension will be loaded as a separate record as only mtf files are considered to be possible to generate navigation data on. If the extension of the sim terrain file is not mtf it is assumed the front-end will be used for naviation generation
|
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 |
Whether or not to block the session terrain loading.
Rule is that the user loaded a terrain on the command line and they have not started a new scenario
|
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.
|
protectedvirtual |
Called when extended application option gui 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.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
When discovering backends that are loaded wait until all backends are discovered and then see if all objects are loaded (or set a signal for that)
|
protectedvirtual |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
friend |
|
static |
|
static |
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_forcesChanged |
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_waitingForScenarioObjectsToBeDiscovered |
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_defaultIconListChanged |
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_observerViewSetFromScenario |
| boost::signal<void (const std::set<std::string>&)> makVrf::DtVrfScenarioManager::signal_terrainViewsHidden |
| boost::signal<void (const DtScenario&)> makVrf::DtVrfScenarioManager::signal_scenarioInitialized |
| boost::signal<void (DtSessionStartupDialog*)> makVrf::DtVrfScenarioManager::signal_sessionDialogBoxAboutToShow |
| boost::signal<void (bool)> makVrf::DtVrfScenarioManager::signal_requestingSaveOnScenarioModified |
| boost::signal<void (DtSessionStatusBox*)> makVrf::DtVrfScenarioManager::signal_sessionStatusDialogCreated |
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_allScenarioObjectsDiscovered |
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_scenarioRewound |
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_scenarioReinitialized |
| 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_rewindMessageSent |
| 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_scenarioLoadRequest |
Sent before the check to see if the scenario should be closed and before pre-load scenario.
| 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 gui 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_preLoadSimTerrain |
Sent before sim terrain is opened This function sends the terrain file requested on load.
If the sim terrain is not an mtf file, it will not be loaded for processing as a navigation area available terrain
| 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 gui terrain is opened.
| boost::signal<void (const std::string&)> makVrf::DtVrfScenarioManager::signal_postLoadSimTerrain |
Sent after sim 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_preLoadVisuals |
Sent before visuals are loaded.
| boost::signal<void (const DtScenarioExplorer&)> makVrf::DtVrfScenarioManager::signal_postLoadVisuals |
Sent after visuals 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&)> makVrf::DtVrfScenarioManager::signal_modelSetLoaded |
Signal sent after the 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_preLoadSimulationObjectGroupRemovalFile |
Sent before simulation object group removal file is loaded.
| boost::signal<void (const DtScenarioExplorer&)> makVrf::DtVrfScenarioManager::signal_postLoadSimulationObjectGroupRemovalFile |
Sent after simulation object group removal file 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_windowTitleAboutToBeSet |
Signal sent right before the title is set. Modify the supplied string to set (or change) title.
| 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.
| boost::signal<void (const std::string&)> makVrf::DtVrfScenarioManager::signal_scenarioFilenameChanged |
Signal sent when the scenario filename loaded changed.
|
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 |
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Used when a scenario load call is waiting for an existing scenario to close.
|
protected |
|
protected |
|
protected |
Only used for file communication in the case of entity editor using to communicate in simulation object group mode.
|
protected |
|
protected |
|
protected |
Only used in asynch mode when messages can get dropped in loading a scenario.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |