![]() |
VR-Forces Developer's Guide
|
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

Public Member Functions | |
| DtScenarioExplorer () | |
| DtScenarioExplorer (const DtScenario &scenario) | |
| virtual | ~DtScenarioExplorer () |
| DtScenarioExplorer (const DtScenarioExplorer &orig) | |
| DtScenarioExplorer & | operator= (const DtScenarioExplorer &orig) |
| virtual bool | init () |
| virtual bool | init (const DtSimulationModelSet &sms) |
| virtual bool | readScenarioFile (const DtFilename &filename) |
| virtual DtFilename | terrainDatabaseFilename () const |
| virtual DtFilename | componentAttachmentTableFilename () const |
| virtual DtFilename | orderOfBattleFilename () const |
| virtual DtFilename | scenarioScriptsFilename () const |
| virtual DtFilename | orbatFilename () const |
| virtual DtFilename | planFilename () const |
| virtual DtFilename | parameterDatabaseFilename () const |
| virtual DtFilename | forceHostilityFilename () const |
| virtual DtFilename | scenarioExtrasFilename () const |
| virtual const std::vector < DtFilename > & | physicalWorldFilenames () const |
| virtual const std::vector < DtFilename > & | enumerationFilenames () const |
| virtual const std::vector < DtFilename > & | detonationParametersFilenames () const |
| virtual const std::vector < DtFilename > & | detonationTerrainDeformParametersFilenames () const |
| virtual const std::vector < DtFilename > & | ammunitionParametersFilenames () const |
| virtual const std::vector < DtFilename > & | indirectArtilleryTypesFilenames () const |
| virtual const std::vector < DtFilename > & | commModelFilenames () const |
| virtual DtFilename | objectMapFilename () const |
| virtual DtReal | timeMultiplier () const |
| virtual bool | autoReorganize () const |
| virtual long int | randomNumberSeed () const |
| virtual DtString | frameRateModeString () const |
| virtual DtFrameMode | frameRateMode () const |
| virtual DtReal | frameDeltaTime () const |
| virtual DtTime | runDurationTime () |
| virtual DtTime | simTime () const |
| virtual DtTime | runDurationTime () const |
| virtual DtTime | exerciseStartTime () const |
| virtual DtFilename | filename () const |
| virtual bool | isValid (bool allowEmptyFilenames=true) const |
| virtual double | version () const |
| virtual void | processModelSets () |
| virtual void | loadCoreModelSets () |
| virtual void | processSimulationModelSets (const std::vector< DtString > &smsFiles) |
| virtual DtSimulationModelSet * | createSimulationModelSet () const |
| virtual const std::vector < DtFilename > & | modelSetForceFilenames () const |
| DtScenario * | scenario () const |
| 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 |
| virtual const std::vector < DtFilename > & | additionalOpdFilenames () const |
| virtual DtRwNLengthStringVector | simulationModelSetFilenames () |
| std::vector < DtSimulationModelSet * > & | modelSets () |
| const std::vector < DtSimulationModelSet * > & | modelSets () const |
| virtual const std::vector < DtFilename > & | modelSetFilenames () const |
| virtual const std::vector < DtFilename > & | unresolvedModelSetFilenames () const |
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) |
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 > | myEnumerationFilenames |
| std::vector< DtFilename > | myDetTerrainDeformParametersFilenames |
| std::vector< DtFilename > | myAmmunitionParametersFilenames |
| std::vector< DtFilename > | myIndirectArtilleryTypesFilenames |
| std::vector< DtFilename > | myAdditionalOpdFilenames |
| std::vector< DtFilename > | myCommModelFilenames |
| std::vector< DtFilename > | myModelSetForceFilenames |
| std::vector< DtFilename > | myModelSetFilenames |
| std::vector< DtFilename > | myUnresolvedModelSetFilenames |
| 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 enumeration files.
|
virtual |
Get the detonation parameters files.
|
virtual |
Get the detonation terrain deformation parameters files.
|
virtual |
Get the ammunition 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.
|
virtual |
Creates a new simulation model set.
|
inline |
The following methods are used for the front-end only.
return the array of DtSimulationModelSet pointers.
References myModelSets.
|
inline |
The following methods are used for the front-end only.
return the array of DtSimulationModelSet pointers.
References myModelSets.
|
virtual |
|
virtual |
Returns a list of all (unique) model set palette names that should be loaded in support of this scenario.
|
virtual |
The unresolved filenames are the SMS files as originally received with any possible replacable directory variables intact.
|
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 |
|
protected |
|
protected |
|
protected |
The following member variables are used in the front-end only.
|
protected |
|
protected |