VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions
makVrf::DtVrfScenarioManager Class Reference

The class that will contain information about the currently loaded scenario. More...

Inheritance diagram for makVrf::DtVrfScenarioManager:
Inheritance graph
[legend]

Public Member Functions

 DtVrfScenarioManager (makVrv::DtDe &)
 
virtual ~DtVrfScenarioManager ()
 
virtual void loadScenarioFromDialog (QWidget *p)
 Creates and shows load scenario dialog. More...
 
virtual void importScenarioFromDialog (QWidget *p)
 
virtual void newScenarioFromDialog (QWidget *p)
 Creates and shows new scenario dialog. More...
 
virtual void editHostilityMatrix (QWidget *parent)
 Creates the hostility matrix editing dialog and emits a signal when it is created. More...
 
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. More...
 
virtual void tickedNewScenario ()
 Schedules to call the new scenario method (with current main window) on the next de tick. More...
 
virtual void processJoinSession (bool startupMessage=false)
 
- Public Member Functions inherited from makVrf::DtCommonScenarioManager
 DtCommonScenarioManager (makVrv::DtDe &)
 
virtual ~DtCommonScenarioManager ()
 
const DtScenarioExplorerscenarioExplorer () 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. More...
 
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. More...
 
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. More...
 
bool importingScenario () const
 Returns true if the scenario load is an import. More...
 
virtual bool generateNavigationArea (makVrv::DtUniqueID)
 Generates the given navigation area with first checking to see if the terrain needs to be saved. More...
 
virtual bool regenerateNavigationAreas (bool)
 Regenerates navigation areas. More...
 
virtual DtFilename loadingScenarioFile () const
 If in the process of loading a scenario, the filename loading. More...
 
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. More...
 
virtual std::string language () const
 Calls to the application to get the language this program is running int. More...
 
virtual void loadScenarioFromSessionDialog (QWidget *)
 
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. More...
 
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 void postSaveLoadFromSession (QWidget *p)
 
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). More...
 
virtual void setCreateMenuBuilderFlags (int)
 Sets the flags to use when creating the menu for the create menu. More...
 
virtual int createMenuBuilderFlags () const
 
virtual void loadBatchScenario (QWidget *p)
 Loads a batch scenario using the widget given as the parent widget of the load dialog. More...
 
virtual void setHelpFile (const std::string &, bool save=false)
 Sets the help file to use when pressing the F1 key. More...
 
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. More...
 
virtual std::string defaultScenarioFile () const
 
virtual void setSimulationObjectGroupTerrain (const std::string &f, bool save=false)
 The terrain used for simulation object group editing. More...
 
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. More...
 
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. More...
 
virtual void reloadVisuals ()
 Reload the simulation model set visuals. More...
 
virtual DtString scenarioSaveExtension (bool includesDot=true) const
 Returns the extension to save the scenario with. If includesDot is true, put the . before the extension. More...
 
virtual void recreateCreateMenu ()
 Call to start the process of recreating the create menu from the current menu structure. More...
 
virtual void cleanupBackupFile (double simTime) const
 If a backup compressed file exists at the given sim time, clean it up. More...
 
virtual void loadTaskMenu (const DtScenarioExplorer &explorer)
 Call to recreate the set menu from initialTaskMenuConfiguration. More...
 
virtual void loadSetMenu (const DtScenarioExplorer &explorer)
 Call to recreate the task menu from initialSetMenuConfiguration. More...
 
virtual void removeSimulationObjectGroupTasksSets (const DtScenarioExplorer &explorer)
 To to remove items from the initial task and set menu from the simulation object group removal file. More...
 
virtual DtFilename saveScenarioName (bool askIfDoesNotExist=true, bool *asked=0, bool createDefaultIfEmpty=false, bool useScenarioNameAsSeed=true) const
 The name of the scenario to be saved. More...
 
const
DtSimulationObjectCategoryInformation
tags () const
 The category (tag) information loaded for the current model set. More...
 
DtSimulationObjectCategoryInformationtags ()
 
virtual void setupWindowTitleBasedOnScenario ()
 Sets the window title based on the current scenario name. More...
 
virtual void newScenario (const std::string &, const std::string &sms="")
 Creates a new scenario on specified terrain using default.scn as the scenario base. More...
 
virtual bool joinSession (DtJoinSessionTerrainAction terrainAction=DtTerrainActionUseSessionTerrain)
 Does the actual joining to the session. More...
 
virtual void resignSession (bool closeTerrain=true)
 
virtual bool saveScenarioAs ()
 
virtual int saveScenario ()
 Returns either/and flags: DtSaveCurrentCheckpoint, DtSaveStartingSnapshot or 0 (no save) More...
 
virtual bool canRewind () const
 
void setValidateForVrfObjects (bool b)
 Default is true. More...
 
bool validateForVrfObjects () const
 
virtual void setScenarioDirty (bool b)
 
void setReadyToQuit (bool b)
 
bool scenarioDirty () const
 
const DtScenarioscenario () 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
 
DtVrfMenucreateMenu ()
 
bool initialized () const
 
const DtDeadReckoningSettingsdeadReckoningSettings () const
 
void setAllowEditingOnScenarioJoin (bool b)
 
bool allowEditingOnScenarioJoint () const
 
virtual std::string currentlyLoadedTerrain () const
 
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. More...
 
virtual void addRecords (DtVrfScriptedTaskSettingsRecord &recs, DtVrfScriptedTaskSettingsRecord &combinedRec)
 To support writing element definitions in folders as multiple files not implemented. More...
 
virtual bool autoJoinSession () const
 Access to session record information. More...
 
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. More...
 
virtual void requestStealthCommands ()
 Requests stealth commands supported by the back-end. More...
 
const DtStealthCommandsstealthCommands () const
 
const
DtSimulationObjectGroupSaveInformation
simulationObjectGroupSaveInformation () const
 If in simulation object group creation mode, this is the information used to save the group. More...
 
virtual bool isScenarioFile (const DtFilename &, bool exact=false) const
 Returns true if this is the scenario file that is currently loaded. More...
 
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. More...
 
virtual void setSaveScenarioToZipFile (bool)
 Whether or not to save a scenario to a zip file (default is true) More...
 
virtual void zoomToExtentsFromScenario (const DtScenario &) const
 Zooms to the extents from the supplied scenario, if extent information exists. More...
 
virtual void setFavorite (const DtEntityMapperKey &, bool f)
 Sets the item to be a favorite then signals to recreate create menu. More...
 
makVrv::DtRecordSettingsBackupInterfacescriptedTaskSettingsBackup ()
 
void exportSessionSettings (const std::string &fileName)
 Exports the current cache settings to a file. More...
 
void importSessionSettings (const std::string &fileName)
 Import the current cache settings from a file. More...
 
void exportScriptedTaskSettings (const std::string &fileName)
 Exports the current cache settings to a file. More...
 
void importScriptedTaskSettings (const std::string &fileName)
 Import the current cache settings from a file. More...
 
virtual void setDoNotShowSessionStartupDialog (bool)
 Sets whether or not to show the startup session dialog. More...
 
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. More...
 
bool aggregateOnCreate () const
 
virtual void setUserDefinedSmoothing (bool)
 Sets whether or not the user or system is defining smoothing in performance options. More...
 
bool userDefinedSmoothing () const
 
virtual void setWindowTitle (const QString &)
 Sets the title of the main window to the given name. More...
 
virtual void setShowSessionStatusDialogs (SessionStatusDialogs)
 Sets to show which type of session status dialogs. More...
 
SessionStatusDialogs showSessionStatusDialogs () const
 
virtual void setDenySystemScriptEditing (bool)
 Sets whether or not system script editing is allowed. By default it is. More...
 
virtual bool denySystemScriptEditing () const
 
virtual void setIndent (int)
 Returns the indent level (in pixels) to apply to scripted task dialog indents. More...
 
virtual int indent () const
 
virtual void setWarnOnSystemScriptChange (bool)
 Returns true if should give warning on system script change with meta data or script. More...
 
virtual bool warnOnSystemScriptChange () const
 
virtual void setMonitorScriptedTaskFrameRates (bool)
 Returns true if should show frame rates for scripts. More...
 
virtual bool monitorScriptedTaskFrameRates () const
 
virtual QString filenameToSaveUnder () const
 Returns the filename to save under. More...
 
virtual void setAutoSave (bool)
 Set to false to not save on settings change. Default is true. More...
 
virtual bool autoSave () const
 
virtual void setShowScenarioDescriptionMessageBox (bool b)
 Sets whether or not to show scenario description message box. More...
 
virtual bool showScenarioDescriptionMessageBox () const
 
virtual const
DtSubMenuConfiguration
initialCreateMenuConfiguration () const
 Valid after scenario is loaded. More...
 
virtual DtSubMenuConfigurationinitialCreateMenuConfiguration ()
 
virtual const
DtSubMenuConfiguration
initialTaskMenuConfiguration () const
 Valid after scenario is loaded. More...
 
virtual DtSubMenuConfigurationinitialTaskMenuConfiguration ()
 
virtual const
makVrv::DtToolbarConfiguration
initialToolbarConfiguration () const
 Valid when the application is initilly run. Stored from masterModeToolbarConfiguration. More...
 
virtual
makVrv::DtToolbarConfiguration
initialToolbarConfiguration ()
 
virtual const
makVrv::DtToolbarConfiguration
scriptModifiedToolbarConfiguration () const
 The configuration as modified by scripted tasks. More...
 
virtual
makVrv::DtToolbarConfiguration
scriptModifiedToolbarConfiguration ()
 
virtual const
DtSubMenuConfiguration
initialSetMenuConfiguration () const
 Valid after scenario is loaded. More...
 
virtual DtSubMenuConfigurationinitialSetMenuConfiguration ()
 
virtual void setSaveScenarioFilenameToUseOnFirstSave (const DtFilename &f)
 For the first (or next) save, use this filename to save. More...
 
virtual const DtFilename & saveScenarioFilenameToUseOnFirstSave () const
 
bool quitting () const
 
virtual void slot_onScenarioModified ()
 
virtual void addRecentScenario (const std::string &)
 Uses recent scenario settings object to add a recent scenario. Sends out signal when changed. More...
 
virtual bool askAndSaveScriptsForRewind ()
 Will ask the user to save scripts that are modified before a rewind. More...
 
virtual const
DtRwHazardAreaInformation
hazardAreaInformation () const
 Returns current hazard area information. More...
 
virtual makVrv::DtUnicode hazardAreaAgentTypeFor (const DtEntityType &, const DtString &agentKey) const
 Returns the agent type for the given entity type and key. More...
 
virtual void setShowLoadErrors (bool)
 Sets whether or not to show load error message boxes. Default is true. More...
 
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. More...
 
virtual bool loadSimTerrain (const std::string &simTerrainFilename, bool clearSimTerrain=false)
 Loads the mtf file (mtf only) for the filename given for the sim terrain. More...
 
virtual void resetTerrain ()
 Clears out loaded terrain. More...
 
virtual time_t dateAndTimeOfDay () const
 Return the current time of day in the simulation in UTC time. More...
 
virtual double simulationTime () const
 Use this simulation time (updated once a second) to synchronize timers/clocks. More...
 
virtual void setShowQuitDialogOnClose (bool, bool saveChanges=true)
 Sets whether or not to show the quit dialog when closing the application. More...
 
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. More...
 
virtual void slot_defaultIconListChanged ()
 
virtual void slot_forcesChanged ()
 
virtual void setShowDuplicateBackendError (bool)
 Whether or not to show the duplicate backend error box. Default is true. More...
 
bool showDuplicateBackendError () const
 
virtual void cleanupSessionBox ()
 Removes session dialog if up. More...
 
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. More...
 
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. More...
 
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. More...
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor. More...
 
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor. More...
 

Static Public Member Functions

static DtVrfScenarioManagerinstance (makVrv::DtDe &de)
 Returns instance of the messager. More...
 
static void init (makVrv::DtDe &)
 Initialize manager. Must be called once. More...
 
- Static Public Member Functions inherited from makVrf::DtCommonScenarioManager
static DtCommonScenarioManagerinstance (makVrv::DtDe &de)
 Returns instance of the messager. More...
 
static void init (makVrv::DtDe &)
 Initialize manager. Must be called once. More...
 

Public Attributes

boost::signals2::signal< void(DtHostilityMatrixDialog *)> signal_hostilityMatrixDialogCreated
 

Protected Member Functions

virtual void postSaveLoadFromDialog (QWidget *)
 
virtual void postSaveNew (QWidget *)
 
virtual void showDescription ()
 By default does not show description. Called when scenario wants to display description information to the user. More...
 
virtual DtJoinSessionDialogcreateJoinSessionDialog (QWidget *parent, const Qt::WindowFlags &flags)
 
virtual DtScenarioSettingsDialogcreateNewScenarioDialog (QWidget *p)
 
virtual DtLoadScenarioDialogcreateLoadScenarioDialog (QWidget *p)
 
virtual DtHostilityMatrixDialogcreateHostilityMatrixDialog (QWidget *p, const Qt::WindowFlags &flags) const
 Creates the hostility matrix daialog. More...
 
- Protected Member Functions inherited from makVrf::DtCommonScenarioManager
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). More...
 
virtual time_t initializeEnvironmentDateTimeOfDay (time_t proposedTime)
 Called during setup or new scenario. More...
 
virtual void scenarioFilenameChanged ()
 Called when the scenario filename has changed. Will change title and reset the scenario to save. More...
 
virtual void scenarioJustClosed ()
 Called when the scenario has just closed in all backends. More...
 
virtual void errorLoadingScenario ()
 Called when there is an error (unspecified) loading the scenario. More...
 
virtual void scenarioClosing ()
 Called when the scenario has started to close. More...
 
virtual void slot_allBackendsClosed ()
 Called when the scenario this backend closed has closed. More...
 
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. More...
 
virtual void slot_sessionStartupComplete ()
 Called when session startup dialog has been finished. More...
 
virtual void allScenarioObjectsDiscovered ()
 Signals when all scenario objects are discovered for the current loaded scenario. More...
 
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. More...
 
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. More...
 
virtual
DtVrfScenarioRemapFunction
remapFunctionForCommandLineScenarioLoad () const
 If a scenario is loaded from a command line, the mapper to use to remap missing back-ends. More...
 
virtual void watchForScenarioObjectsDiscovered ()
 
virtual void connectSignals (bool)
 
virtual void requestHazardAreaInformation ()
 Requests hazard area information and sets up callback to receive. More...
 
virtual void requestOrbatInformation ()
 Requests the orbat information from the orbat back-end. More...
 
virtual void reloadScenario (const std::string &newTerrain)
 Saves existing to a temporary scenario then reloads that with new scenario name. More...
 
virtual void saveScenario (std::string baseName, std::string newTerrainName)
 Sets up to save current scenario to supplied name. More...
 
virtual void slot_onScenarioSaved (bool checkpointSave=false)
 Called when the scenario is saved, reloads scenario then deletes temp scenario after reload. More...
 
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). More...
 
virtual void slot_onScenarioReloaded (std::string scenarioName)
 Called when the scenario is loaded as part of a reload. Will delete temp scenario files. More...
 
void setup ()
 If not initialized, does initial setup. Called from constructor. More...
 
virtual void showSessionStartupDialog ()
 Shows the session startup dialog (DtSessionStartupDialog) More...
 
virtual void processServerMessage (DtSimMessage *)
 Called when there is a message from the server. More...
 
virtual void processStealthCommands (DtSimMessage *)
 Processes result of the stealth commands. More...
 
virtual void processHazardAreaInformation (DtSimMessage *)
 Called when hazard area information is received. More...
 
virtual void restorePreservedScripts ()
 Restores modified scripts and clears out modified status of all scripts. More...
 
virtual void scenarioWasRewound (DtSimMessage *)
 Called when scenario was rewound. More...
 
virtual void terrainCleared ()
 Called when terrain is closed. Clear out some variables. More...
 
virtual void clearFrontEndScenariodData ()
 
virtual void quitAllBackends ()
 Quits all the back-ends by sending off the quit message. More...
 
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. More...
 
virtual void completeScenarioLoad ()
 
virtual void completeSimulationObjectGroupLoad ()
 
virtual DtVrfSimBackendManagerbackendManager () 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 DtModelSetEntrymodelSetEntry (const DtEntityMapperKey &key) const
 
virtual DtVrfMenucreateMenuFromModelSetManager () 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. More...
 
virtual void remapTerrainFilenames (DtScenario *)
 Given a scenario, if need be, remap the terrain filenames. More...
 
virtual void createTerrainFilenameRemapper ()
 Creates a terrain filename remapper if one does not exist. More...
 
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. More...
 
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. More...
 
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. More...
 
virtual void slot_deDestructing ()
 
virtual void slot_terrainToBeCleared ()
 
virtual void slot_terrainCleared ()
 
virtual bool checkWriteGdb (const std::string &gdb)
 
virtual DtSessionStatusBoxcreateSessionStatusBox ()
 
virtual void setupScriptedTaskSettings ()
 
virtual QFileInfo findTerrainFile (const std::string &terrainFile) const
 Calls findTerrainFile with default search paths and extensions. More...
 
virtual bool blockSessionTerrainLoad () const
 Whether or not to block the session terrain loading. More...
 
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. More...
 
virtual void slot_scenarioAboutToBeSaved (DtScenario *)
 Called when the scenario is about to be saved, put up the save dialog. More...
 
virtual void createSessionStatusBox (const QString &title, const QString &message, int statusType)
 Creates a session status box. If one exists, delete it. More...
 
virtual void slot_sessionSettingsChanged ()
 Called when extended application option settings have changed. More...
 
virtual void slot_guiSettingsChanged ()
 Called when extended application option gui settings have changed – reset window title if currently adding extended title. More...
 
virtual bool eventFilter (QObject *, QEvent *)
 Check close event on main window to ask to save changed before passing on. More...
 
virtual void slot_savedSimulationObjectGroup (const std::string &)
 
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) More...
 
virtual void addAdditionalCategories ()
 

Additional Inherited Members

- Public Types inherited from makVrf::DtCommonScenarioManager
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
}
 
- Static Public Attributes inherited from makVrf::DtCommonScenarioManager
static const QEvent::Type LoadScenarioFromDialogEventType = (QEvent::Type)(QEvent::User + 302)
 
static const QEvent::Type LoadScenarioFromScenarioInformationEventType = (QEvent::Type)(QEvent::User + 303)
 
- Protected Slots inherited from makVrf::DtCommonScenarioManager
virtual void commFileMessagesReceived (const QStringList &)
 
virtual void statusDialogDestroyed ()
 
- Protected Attributes inherited from makVrf::DtCommonScenarioManager
makVrv::DtDemyDe
 
DtScenariomyScenario
 
DtVrfMenumyMenu
 
DtScenarioExplorermyExplorer
 
QDialogmySessionStatusMessageBox
 
std::vector< DtEntityMapperKeymyControlObjectTypes
 
bool myRewinding
 
bool myValidateForVrfObjects
 
bool myScenarioDirty
 
bool myAskSaveIfScenarioModified
 
bool myAutoJoinSession
 
bool myReadyToQuit
 
bool myJoinedToSession
 
bool mySessionDatabaseOpenAndNotJoined
 
bool myCorrelationWarned
 
std::string myLoadedTerrain
 
std::string myTerrainFile
 
std::string mySimTerrainFile
 
bool myCorrelated
 
bool myDisplayExistingGdbWarningMessage
 
bool myTerrainClearing
 
DtScenarioLoadInformation myLoadingScenario
 
bool myClosingScenario
 
bool myCanSimulate
 
bool myInitialized
 
bool myIsStartup
 
bool myAutoSave
 
bool myAllowEditingOnScenarioJoin
 
bool myInTheScenarioLoadProcess
 
bool myShowLoadErrors
 
DtVrfScenarioRemapFunctionmyRemapFunctionForCommandLineScenarioLoad
 
DtVrfScriptedTaskSettingsRecord myScriptedTaskSettings
 
DtDeadReckoningSettings myDeadReckoningSettings
 
makVrv::DtRecordSettingsBackupInterfacemyScriptedTaskSettingsBackup
 
DtSessionStatusBoxmySessionStatusBox
 
SessionStatusDialogs myShowSessionStatusDialogs
 
DtSubMenuConfigurationmyInitialCreateMenuConfiguration
 
DtSubMenuConfigurationmyInitialTaskMenuConfiguration
 
DtSubMenuConfigurationmyInitialSetMenuConfiguration
 
int myCreateMenuBuilderFlags
 
makVrv::DtToolbarConfiguration myInitialToolbarConfiguration
 
makVrv::DtToolbarConfiguration myScriptModifiedToolbarConfiguration
 
DtTerrainFilenameRemappermyTerrainFilenameRemapper
 
std::vector< DtStringmyAdditionalSmsFiles
 
bool myHasShowSetup
 
bool myLateJoinerInit
 
int myQuitWhenSaved
 
DtRwHazardAreaInformation myHazardAreaInformation
 
makVrv::DtSignalConnectionManager mySOGConnections
 
makVrv::DtSignalConnectionManager myResetCommandLineTerrainSignals
 
QString myWindowTitle
 
std::map< std::string,
QTranslator * > 
myTranslators
 
makVrv::DtSignalConnectionManager myConnectionManager
 
DtVrfSimBackendManagermyBackendManager
 
DtStealthCommands myStealthCommands
 
bool myLoadedUserTerrain
 
bool myLoadingSessionTerrain
 
bool myKeepOpenTerrainFromCommandLine
 
int mySaveFlags
 
DtVrfObjectManipulationManager::AllowEditingOf myAllowEditingOfOnSessionJoin
 
DtSimulationObjectCategoryInformation mySimulationObjectsCategoryInformation
 
boost::function< void()> myPostSaveFunction
 
bool myWaitingOnScenarioClose
 Used when a scenario load call is waiting for an existing scenario to close. More...
 
DtScenarioLoadInformationmyPendingScenarioInformation
 
DtFilename mySaveScenarioFilenameToUseOnFirstSave
 
DtFileCommChannelmyFileCommChannel
 Only used for file communication in the case of entity editor using to communicate in simulation object group mode. More...
 
bool mySimulationObjectGroupEditingMode
 
DtSimulationObjectGroupSaveInformation mySimulationObjectGroupSaveInformation
 
double myAsynchTimeoutWait
 Only used in asynch mode when messages can get dropped in loading a scenario. More...
 
DtTimedSection myAsynchTimeoutSection
 
DtVrfScenarioRemapFunctionmyDefaultRemapFunction
 
bool myImportingScenario
 
bool myFirstRun
 
DtTimedSection myBackendDiscoveryTimer
 
DtTimedSection myBackendClosingResponseTimer
 
double myTimeWaitingForBackendResponse
 
double myBackendDiscoveryTime
 
DtFilename myClosingDatabaseToOpen
 
int myCloseRetryCount
 
bool myForceCloseAll
 
bool mySimTerrainLoaded
 
bool myShowDuplicateBackendError
 
boost::signalslib::connection myPostDeTickConnection
 
boost::signalslib::connection myCloseScenarioTickConnection
 

Detailed Description

The class that will contain information about the currently loaded scenario.

Constructor & Destructor Documentation

makVrf::DtVrfScenarioManager::DtVrfScenarioManager ( makVrv::DtDe )
virtual makVrf::DtVrfScenarioManager::~DtVrfScenarioManager ( )
virtual

Member Function Documentation

static DtVrfScenarioManager& makVrf::DtVrfScenarioManager::instance ( makVrv::DtDe de)
static

Returns instance of the messager.

static void makVrf::DtVrfScenarioManager::init ( makVrv::DtDe )
static

Initialize manager. Must be called once.

virtual void makVrf::DtVrfScenarioManager::loadScenarioFromDialog ( QWidget *  p)
virtual

Creates and shows load scenario dialog.

virtual void makVrf::DtVrfScenarioManager::importScenarioFromDialog ( QWidget *  p)
virtual
virtual void makVrf::DtVrfScenarioManager::newScenarioFromDialog ( QWidget *  p)
virtual

Creates and shows new scenario dialog.

virtual void makVrf::DtVrfScenarioManager::editHostilityMatrix ( QWidget *  parent)
virtual

Creates the hostility matrix editing dialog and emits a signal when it is created.

virtual void makVrf::DtVrfScenarioManager::tickedLoadScenario ( const DtString scenarioName = "",
bool  useDefaultRemappingFunction = false 
)
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

Reimplemented from makVrf::DtCommonScenarioManager.

virtual void makVrf::DtVrfScenarioManager::tickedNewScenario ( )
virtual

Schedules to call the new scenario method (with current main window) on the next de tick.

virtual void makVrf::DtVrfScenarioManager::processJoinSession ( bool  startupMessage = false)
virtual

Reimplemented from makVrf::DtCommonScenarioManager.

virtual void makVrf::DtVrfScenarioManager::postSaveLoadFromDialog ( QWidget *  )
protectedvirtual
virtual void makVrf::DtVrfScenarioManager::postSaveNew ( QWidget *  )
protectedvirtual
virtual void makVrf::DtVrfScenarioManager::showDescription ( )
protectedvirtual

By default does not show description. Called when scenario wants to display description information to the user.

Reimplemented from makVrf::DtCommonScenarioManager.

virtual DtJoinSessionDialog* makVrf::DtVrfScenarioManager::createJoinSessionDialog ( QWidget *  parent,
const Qt::WindowFlags &  flags 
)
protectedvirtual
virtual DtScenarioSettingsDialog* makVrf::DtVrfScenarioManager::createNewScenarioDialog ( QWidget *  p)
protectedvirtual
virtual DtLoadScenarioDialog* makVrf::DtVrfScenarioManager::createLoadScenarioDialog ( QWidget *  p)
protectedvirtual
virtual DtHostilityMatrixDialog* makVrf::DtVrfScenarioManager::createHostilityMatrixDialog ( QWidget *  p,
const Qt::WindowFlags &  flags 
) const
protectedvirtual

Creates the hostility matrix daialog.

Member Data Documentation

boost::signals2::signal<void (DtHostilityMatrixDialog*)> makVrf::DtVrfScenarioManager::signal_hostilityMatrixDialogCreated

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)