![]() |
VR-Forces 4.6.1 Class Documentation
|
class DtScenarioExplorer: More...

Public Member Functions | |
| DtScenarioExplorer () | |
| default constructor | |
| DtScenarioExplorer (const DtScenario &scenario) | |
| real constructor | |
| virtual | ~DtScenarioExplorer () |
| destructor | |
| DtScenarioExplorer (const DtScenarioExplorer &orig) | |
| copy constructor | |
| DtScenarioExplorer & | operator= (const DtScenarioExplorer &orig) |
| assignment operator | |
| virtual bool | init () |
| Initialization. Must be called before any other functions are called. | |
| virtual bool | init (const DtSimulationModelSet &sms) |
| Initializes from supplied sms file. Does not need to have a seed scenario to parse sms files. | |
| virtual bool | readScenarioFile (const DtFilename &filename) |
| Read itself from file. | |
| virtual DtFilename | terrainDatabaseFilename () const |
| Get the terrain database filename. | |
| virtual DtFilename | componentAttachmentTableFilename () const |
| Get the component attachment table filename. | |
| virtual DtFilename | orderOfBattleFilename () const |
| Get the order of battle filename. | |
| virtual DtFilename | scenarioScriptsFilename () const |
| Get the scenario scripts filename. | |
| virtual DtFilename | orbatFilename () const |
| Get the orbat filename. | |
| virtual DtFilename | planFilename () const |
| Get the plan filename. | |
| virtual DtFilename | parameterDatabaseFilename () const |
| Get the parameter database filename. | |
| virtual DtFilename | forceHostilityFilename () const |
| virtual DtFilename | scenarioExtrasFilename () const |
| virtual const std::vector < DtFilename > & | physicalWorldFilenames () const |
| Get the physical world settings files. | |
| virtual const std::vector < DtFilename > & | detonationParametersFilenames () const |
| Get the detonation parameters files. | |
| virtual const std::vector < DtFilename > & | indirectArtilleryTypesFilenames () const |
| Get the indirect artillery types files. | |
| virtual const std::vector < DtFilename > & | commModelFilenames () const |
| Get the comm model settings files. | |
| virtual DtFilename | objectMapFilename () const |
| Get the object map filename. | |
| virtual DtReal | timeMultiplier () const |
| Get the time multiplier. | |
| virtual bool | autoReorganize () const |
| Get the auto reorganize flag. | |
| virtual long int | randomNumberSeed () const |
| Get the random number seed. | |
| virtual DtString | frameRateModeString () const |
| Get frame rate mode. | |
| virtual DtFrameMode | frameRateMode () const |
| virtual DtReal | frameDeltaTime () const |
| Get frame delta time. | |
| virtual DtTime | runDurationTime () |
| Get the run duration time. | |
| virtual DtTime | simTime () const |
| Get simulation time. | |
| virtual DtTime | runDurationTime () const |
| Get run duration time. | |
| virtual DtTime | exerciseStartTime () const |
| Get exercise start date and time. | |
| virtual DtFilename | filename () const |
| virtual bool | isValid (bool allowEmptyFilenames=true) const |
| Returns true if all information necessary to load the scenario is present. | |
| virtual double | version () const |
| The version of the scenario file. | |
| virtual void | processModelSets () |
| Processes all the model sets found in the myScenario object. | |
| virtual void | loadCoreModelSets () |
| Loads the "core" model sets, which are the ones automatically loaded before any others, if they exist in the directory structure. | |
| virtual void | processSimulationModelSets (const std::vector< DtString > &smsFiles) |
| Processes all model sets, adding to existing sets. | |
| virtual const std::vector < DtFilename > & | modelSetForceFilenames () const |
| DtScenario * | scenario () const |
| Returns scenario associated with explorer. | |
| virtual void | addFilename (std::vector< DtFilename > &, const DtFilename &map) const |
| virtual void | setSimulationModelSetFilenames (const std::vector< DtFilename > &s) |
| virtual void | setSimulationModelSetFilenames (const DtRwNLengthStringVector &) |
| virtual DtFilename | globalPlanFilename () const |
| Get the global plan filename. | |
| virtual const std::vector < DtFilename > & | additionalOpdFilenames () const |
| Additional OPD files that will be appended (in the order specified) to the main OPD file for this scenario. | |
| virtual DtRwNLengthStringVector | simulationModelSetFilenames () |
| Simulation model set files that want to be loaded for this scenario. | |
| std::vector < DtSimulationModelSet * > & | modelSets () |
| The following methods are used for the front-end only. | |
| const std::vector < DtSimulationModelSet * > & | modelSets () const |
| virtual const std::vector < DtFilename > & | modelSetFilenames () const |
| Returns a list of all (unique) model set palette names that should be loaded in support of this scenario. | |
Protected Member Functions | |
| virtual void | clearModelSets () |
| virtual void | mergeAdditionalOpdFiles () |
| virtual void | processModelSet (DtSimulationModelSet *) |
| virtual void | processIncludedSMSs (std::vector< DtSimulationModelSet * > &loadedSets, DtSimulationModelSet *set, DtReaderWriter::SearchPaths &searchPaths) |
| virtual void | loadIncludedSets (DtSimulationModelSet *set, std::vector< DtSimulationModelSet * > &loadedSetsStarted, std::vector< DtSimulationModelSet * > &loadedSetsCompleted, DtReaderWriter::SearchPaths &parentSearchPaths, DtReaderWriter::SearchPaths &childSearchPaths, DtReaderWriter::SearchPaths &allPaths) |
| Loads SMSs included by "set", and recurses into those if necessary. | |
Protected Attributes | |
| DtScenario * | myScenario |
| DtFilename | myParameterDatabaseFilename |
| DtFilename | myForceHostilityFilename |
| DtFilename | myScenarioExtrasFilename |
| std::vector < DtSimulationModelSet * > | myModelSets |
| std::vector< DtFilename > | myPhysicalWorldFilenames |
| std::vector< DtFilename > | myDetonationParametersFilenames |
| std::vector< DtFilename > | myIndirectArtilleryTypesFilenames |
| std::vector< DtFilename > | myAdditionalOpdFilenames |
| std::vector< DtFilename > | myCommModelFilenames |
| std::vector< DtFilename > | myModelSetForceFilenames |
| The following member variables are used in the front-end only. | |
| std::vector< DtFilename > | myModelSetFilenames |
class DtScenarioExplorer:
The DtScenarioExplorer class will inspect a scenario for any simulation model set files. If any exist, it will load the files and then present the user, through the interface, the files that are contained within those model set files
| DtScenarioExplorer::DtScenarioExplorer | ( | ) |
default constructor
| DtScenarioExplorer::DtScenarioExplorer | ( | const DtScenario & | scenario | ) |
real constructor
|
virtual |
destructor
| DtScenarioExplorer::DtScenarioExplorer | ( | const DtScenarioExplorer & | orig | ) |
copy constructor
| DtScenarioExplorer& DtScenarioExplorer::operator= | ( | const DtScenarioExplorer & | orig | ) |
assignment operator
|
virtual |
Initialization. Must be called before any other functions are called.
This method will read in all simulation model sets and place the results into the mySimulationModelSets array. All methods that are affected by the results of this read are marked above. This method will be called from those methods that use it if the model sets have not already been read
|
virtual |
Initializes from supplied sms file. Does not need to have a seed scenario to parse sms files.
|
virtual |
Read itself from file.
|
virtual |
Get the terrain database filename.
This is terrain database used by the backend and Gui (unless a different Gui terrain database is specified).
|
virtual |
Get the component attachment table filename.
|
virtual |
Get the order of battle filename.
|
virtual |
Get the scenario scripts filename.
|
virtual |
Get the orbat filename.
|
virtual |
Get the plan filename.
|
virtual |
Get the global plan filename.
|
virtual |
Get the parameter database filename.
|
virtual |
|
virtual |
|
virtual |
Get the physical world settings files.
|
virtual |
Get the detonation parameters files.
|
virtual |
Get the indirect artillery types files.
|
virtual |
Get the comm model settings files.
|
virtual |
Get the object map filename.
|
virtual |
Get the time multiplier.
|
virtual |
Get the auto reorganize flag.
|
virtual |
Get frame rate mode.
|
virtual |
|
virtual |
Get frame delta time.
|
virtual |
Get the run duration time.
By default, the run duration time is set to -1 (run indefinitely).
|
virtual |
Get simulation time.
|
virtual |
Get run duration time.
|
virtual |
Get exercise start date and time.
|
virtual |
Additional OPD files that will be appended (in the order specified) to the main OPD file for this scenario.
|
virtual |
Simulation model set files that want to be loaded for this scenario.
Note that the first file will be considered the "master" file. All others will merge into the "master" (subsequent model set files that contain .opd files will be considered "additional .opds")
|
virtual |
Returns true if all information necessary to load the scenario is present.
If allowEmptyFilenames is false, do not allow empty filenames for order of battle or plan
|
virtual |
The version of the scenario file.
|
virtual |
Processes all the model sets found in the myScenario object.
|
virtual |
Loads the "core" model sets, which are the ones automatically loaded before any others, if they exist in the directory structure.
|
virtual |
Processes all model sets, adding to existing sets.
Call clearModelSets() to clear out existing information first to start with a clean slate
|
inline |
The following methods are used for the front-end only.
return the array of DtSimulationModelSet pointers.
References myModelSets.
|
inline |
References myModelSets.
|
virtual |
|
virtual |
Returns a list of all (unique) model set palette names that should be loaded in support of this scenario.
|
inline |
Returns scenario associated with explorer.
References myScenario.
|
virtual |
|
virtual |
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in DtSimulationObjectEditorScenarioExplorer.
|
protectedvirtual |
|
protectedvirtual |
Loads SMSs included by "set", and recurses into those if necessary.
Adds relevant search paths to each set. Search paths will need to be reordered once all sets are loaded, according to the order in "allPaths".
| set | Model sets included by this set are loaded. |
| loadedSetsStarted | "set" is added to this list before recursing, to prevent a set from being loaded twice. |
| loadedSetsCompleted | "set" is added to this list after recursing. This represents SMS priority order. |
| parentSearchPaths | Used to set up search paths for included sets. |
| childSearchPaths | Used to add included SMS's search paths to the current set. |
| allPaths | This will contain all paths loaded by included sets, in their correct priority order (last == highest priority). |
|
protected |
Referenced by scenario().
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by modelSets().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
The following member variables are used in the front-end only.
|
protected |