![]() |
VR-Forces 4.1 Class Documentation
|
A simulation model set contains all the information that can be used to support a scenario either for simulation or visualization. More...

Public Member Functions | |
| DtSimulationModelSet () | |
| default constructor | |
| DtSimulationModelSet (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL) | |
| virtual | ~DtSimulationModelSet () |
| destructor | |
| DtSimulationModelSet (const DtSimulationModelSet &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| copy constructor | |
| DtSimulationModelSet & | operator= (const DtSimulationModelSet &orig) |
| assignment operator | |
| virtual bool | load (const DtFilename &) |
| Loads simulation model set from specified filename. | |
| virtual bool | save (const DtFilename &, bool rebind=true) |
| Saves simulation model set to specified filename. | |
| const DtFilename & | path () const |
| The path that is used as the relative (or absolute) path to load all internal files from. | |
| const DtFilename & | filename () const |
| Filename that this simulation model set was originally loaded from. | |
| DtSimulationModelSet * | clone () const |
| virtual DtFilename | modelSetDirectory () const |
| Returns the value of the model-set-directory variable, if it is defined for this model set, else returns an empty string. | |
| virtual bool | setModelSetDirectory (const DtFilename &) |
| Sets the model set directory if variable exists. If it does not, returns false. | |
| const DtFilename & | hostilityFile () const |
| void | setHostilityFile (const DtFilename &s) |
| const DtFilename & | opdFile () const |
| Get/set object parameter database file. | |
| void | setOpdFile (const DtFilename &) |
| Get/set object parameter database file. | |
| const DtFilename & | physicalWorldFile () const |
| Get/set physical world file. | |
| void | setPhysicalWorldFile (const DtFilename &) |
| Get/set physical world file. | |
| const DtFilename & | indirectArtilleryTypesFile () const |
| Get/set indirect artillery types file. | |
| void | setIndirectArtilleryTypesFile (const DtFilename &) |
| Get/set indirect artillery types file. | |
| const DtFilename & | overlaySymbolMapFile () const |
| Get/set overlay symbol map file. | |
| void | setOverlaySymbolMapFile (const DtFilename &) |
| Get/set overlay symbol map file. | |
| const DtFilename & | threeDSymbolMapFile () const |
| Get/set 3D map file. | |
| void | setThreeDSymbolMapFile (const DtFilename &) |
| Get/set 3D map file. | |
| const DtFilename & | overlayMenuFile () const |
| Get/set overlay menu file. | |
| void | setOverlayMenuFile (const DtFilename &) |
| Get/set overlay menu file. | |
| const DtFilename & | modelSetFile () const |
| Get/set model set file that is used to display items that are available to be created by the front-end. | |
| void | setModelSetFile (const DtFilename &) |
| Get/set model set file that is used to display items that are available to be created by the front-end. | |
| const DtFilename & | menuFile () const |
| Get/set menu file to display for create menu. | |
| void | setMenuFile (const DtFilename &) |
| Get/set menu file to display for create menu. | |
| const DtSymbolMapperList & | symbolMapFiles () const |
| Get/set list of symbol map files available for use. | |
| void | setSymbolMapFiles (const DtSymbolMapperList &) |
| Get/set list of symbol map files available for use. | |
| const DtFilename & | commModelParameters () const |
| Get/set communications model file. | |
| void | setCommModelParameters (const DtFilename &) |
| Get/set communications model file. | |
| const DtString & | comment () const |
| Get/set comment that will be written to top of file when saving out. | |
| void | setComment (const DtString &) |
| Get/set comment that will be written to top of file when saving out. | |
| virtual DtFilename | defaultComponentAttachmentFile () const |
| Returns the first component attachment filename in the list. | |
| DtComponentAttachmentList & | componentAttachmentFileList () |
| Returns the list of component attachment lookup files. | |
| const DtComponentAttachmentList & | componentAttachmentFileList () const |
| Returns the list of component attachment lookup files. | |
| const DtFilename & | scenarioDataFile () const |
| Returns the scenario data file containing spawn templates, force hostility relationships,. | |
| void | setScenarioDataFile (const DtFilename &n) |
| Returns the scenario data file containing spawn templates, force hostility relationships,. | |
Public Member Functions inherited from DtReaderWriter | |
| DtReaderWriter () | |
| default constructor | |
| DtReaderWriter (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false) | |
| real constructor Setting the readonly flag prevents object from writing itself to the stream. | |
| DtReaderWriter (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false) | |
| DtReaderWriter (const DtString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| copy constructor | |
| DtReaderWriter (const DtSymbolString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| const DtReaderWriter & | operator= (const DtReaderWriter &orig) |
| assignment operator | |
| virtual | ~DtReaderWriter () |
| destructor | |
| virtual void | putSelf (FILE *fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename()) |
| Top level call to write itself to file. | |
| virtual void | getSelf (DtlObjPtr args, const DtFilename &searchPath=DtFilename::nullFilename(), const DtVariableBindingsList &variableBindings=nullVariableReference()) |
| Top level to read itself from an input stream. | |
| virtual void | writeSelf (FILE *fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename()) |
| Called from putSelf, calls myRegistry.putSelf which in turn calls putSelf on each reader/writer in the registry. | |
| virtual DtSymbolString | name () const |
| Accessor for name of this readable/writable object. | |
| virtual void | addAlias (const DtSymbolString &alias) |
| Add an alias as an alternative name for this object. | |
| virtual bool | hasAlias (const DtSymbolString &alias) |
| virtual const aliasContainer & | aliases () const |
| virtual void | setReadonly (bool flag) |
| Set read-only flag. | |
| virtual bool | isReadonly () const |
| virtual bool | variableIsBound () const |
| virtual void | unbindVariable () |
| Sets the myVariableIsBound flag to false. | |
| virtual void | setName (const DtString &) |
| Set the name of the object. | |
| virtual const char * | readerWriterType () const |
| Used to supply a string type that this reader writer type is. | |
| virtual DtString | prettyPrint () const |
| Routine to return a human readable form of the reader/writer variable. | |
| virtual void | bindVariables (DtVariableBindingsList variableBindings) |
| Runs a variable binding pass on this reader writer and any of its children. | |
| virtual std::list < DtVariableNameType > | unboundVariables () const |
| bool | invalid () const |
| virtual bool | hasChild (const DtReaderWriter *p) const |
| Returns true if this variable has a child p in it's chain. | |
| virtual void | setValueSpecified (bool specified, bool recurse=false) |
| The specified flags are used for optional values. | |
| virtual bool | valueSpecified () const |
| The specified flags are used for optional values. | |
| virtual bool | isVariableReference () const |
| Specifies whether or not this reader writer is really a variable that is specified elsewhere. | |
| virtual void | setIsVariableReference (bool value) |
| virtual DtSymbolString | variableName () const |
| The variable name, if this object is a variable reference. | |
| virtual void | setVariableName (const DtSymbolString variableName) |
| The variable name, if this object is a variable reference. | |
| const DtReaderWriterRegistry & | registry () const |
| Collection of child DtReaderWriter nodes owned by this object. | |
| DtReaderWriterRegistry & | registry () |
| Collection of child DtReaderWriter nodes owned by this object. | |
Protected Member Functions | |
| virtual DtString | createSubstitutedPath (const DtFilename &, const DtString &modelSetDir) |
| Creates a path (with filename) that will try and use the model-set-directory. | |
| virtual void | setupVariableSubstitutedPaths () |
| virtual void | substituteVariablePaths () |
| virtual void | resetVariables () |
Protected Member Functions inherited from DtReaderWriter | |
| virtual void | bindToRwAsVariable (const DtReaderWriter *rw) |
| Copies values from the specified DtReaderWriter. | |
| virtual void | bindLocalVariables (const DtVariableBindingsList &variableBindings) |
| Checks to see if this RW object is a variable reference that can be bound using the provided bindings. | |
| virtual void | putData (FILE *fp, int indentLevel=0) |
| Deriving class overrides these to get/put class specific data. | |
| virtual DtlObjPtr | getData (DtlObjPtr args, const DtFilename &searchPath, const DtVariableBindingsList &variableBindings) |
| Deriving class overrides these to get/put class specific data. | |
Additional Inherited Members | |
Public Types inherited from DtReaderWriter | |
| typedef std::vector < DtSymbolString > | aliasContainer |
| typedef std::vector < DtSymbolString >::iterator | aliasIter |
| typedef std::vector < DtSymbolString > ::const_iterator | aliasConstIter |
| typedef std::pair < DtSymbolString, DtString > | DtVariableNameType |
Static Public Member Functions inherited from DtReaderWriter | |
| static void | putIndent (FILE *fp, int indentLevel) |
| static const DtVariableBindingsList & | nullVariableReference () |
| static void | setPostGetSelfCallback (DtGetSelfCallbackFcn fcn, void *usrData) |
| static void | setPrePutSelfCallback (DtPutSelfCallbackFcn fcn, void *usrData) |
| static const DtFilename & | appPath () |
| Gets the current working directory. | |
| static DtReaderWriterFactory * | factory () |
Static Protected Attributes inherited from DtReaderWriter | |
| static DtString | theUnspecifiedValue |
| static DtGetSelfCallbackInfo | thePostGetSelfCallback |
| static DtPutSelfCallbackInfo | thePrePutSelfCallback |
| static const DtVariableBindingsList | theEmptyVariableBindingsList |
| static DtReaderWriterFactory | theFactory |
A simulation model set contains all the information that can be used to support a scenario either for simulation or visualization.
All files in this model set are defined to be relative to this file from where it was loaded. To get the complete path to a file, referece it as:
DtFilename::combine(simulationModelSet.path(), <file>) e.g: DtFilename::combine(simulationModelSet.path(), simulationModelSet.physicalWorldFile());
| DtSimulationModelSet::DtSimulationModelSet | ( | ) |
default constructor
| DtSimulationModelSet::DtSimulationModelSet | ( | const DtString & | name, |
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
|
virtual |
destructor
| DtSimulationModelSet::DtSimulationModelSet | ( | const DtSimulationModelSet & | orig, |
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
copy constructor
| DtSimulationModelSet& DtSimulationModelSet::operator= | ( | const DtSimulationModelSet & | orig | ) |
assignment operator
|
virtual |
Loads simulation model set from specified filename.
Saves simulation model set to specified filename.
Part of the save process will be to try and make directories that might be part of simulation model set items relative to the file and subsitute the model-set-directory variable (if specified)
If rebind is false, takes originally read in names and saves them out, versus substituting variable name in for newly set files
|
inline |
The path that is used as the relative (or absolute) path to load all internal files from.
References myPath.
|
inline |
Get/set object parameter database file.
References mySubOpdFile.
|
inline |
Get/set object parameter database file.
References mySubOpdFile.
|
inline |
Get/set physical world file.
References mySubPhysicalWorldFile.
|
inline |
Get/set physical world file.
References mySubPhysicalWorldFile.
|
inline |
Get/set indirect artillery types file.
References mySubIndirectArtilleryTypesFile.
|
inline |
Get/set indirect artillery types file.
References mySubIndirectArtilleryTypesFile.
|
inline |
Get/set overlay symbol map file.
References mySubOverlaySymbolMapFile.
|
inline |
Get/set overlay symbol map file.
References mySubOverlaySymbolMapFile.
|
inline |
Get/set 3D map file.
References mySub3DSymbolMapFile.
|
inline |
Get/set 3D map file.
References mySub3DSymbolMapFile.
|
inline |
Get/set overlay menu file.
References mySubOverlayMenuFile.
|
inline |
Get/set overlay menu file.
References mySubOverlayMenuFile.
|
inline |
Get/set model set file that is used to display items that are available to be created by the front-end.
References mySubModelSetFile.
|
inline |
Get/set model set file that is used to display items that are available to be created by the front-end.
References mySubModelSetFile.
|
inline |
Get/set menu file to display for create menu.
If blank, will automatically generate create file based on items found in model set file
References mySubMenuFile.
|
inline |
Get/set menu file to display for create menu.
If blank, will automatically generate create file based on items found in model set file
References mySubMenuFile.
|
inline |
Get/set list of symbol map files available for use.
References mySubSymbolMapFiles.
|
inline |
Get/set list of symbol map files available for use.
References mySubSymbolMapFiles.
|
inline |
Get/set communications model file.
References mySubCommModelParameters.
|
inline |
Get/set communications model file.
References mySubCommModelParameters.
|
inline |
Get/set comment that will be written to top of file when saving out.
References myComment.
|
inline |
Get/set comment that will be written to top of file when saving out.
References myComment.
|
virtual |
Returns the first component attachment filename in the list.
|
inline |
Filename that this simulation model set was originally loaded from.
References myFilename.
Referenced by DtSimulationModelSetLoader::simulationModelSetFilename().
| DtSimulationModelSet* DtSimulationModelSet::clone | ( | ) | const |
|
virtual |
Returns the value of the model-set-directory variable, if it is defined for this model set, else returns an empty string.
|
virtual |
Sets the model set directory if variable exists. If it does not, returns false.
|
inline |
Returns the list of component attachment lookup files.
References myComponentAttachmentFileList.
|
inline |
Returns the list of component attachment lookup files.
References myComponentAttachmentFileList.
|
inline |
References mySubHostilityFile.
|
inline |
References mySubHostilityFile.
|
inline |
Returns the scenario data file containing spawn templates, force hostility relationships,.
References mySubScenarioDataFile.
|
inline |
Returns the scenario data file containing spawn templates, force hostility relationships,.
References mySubScenarioDataFile.
|
protectedvirtual |
Creates a path (with filename) that will try and use the model-set-directory.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by path().
|
protected |
Referenced by filename().
|
protected |
Referenced by comment(), and setComment().
|
protected |
Substituted copies of name.
Referenced by opdFile(), and setOpdFile().
|
protected |
Referenced by physicalWorldFile(), and setPhysicalWorldFile().
|
protected |
Referenced by indirectArtilleryTypesFile(), and setIndirectArtilleryTypesFile().
|
protected |
Referenced by modelSetFile(), and setModelSetFile().
|
protected |
Referenced by menuFile(), and setMenuFile().
|
protected |
Referenced by overlaySymbolMapFile(), and setOverlaySymbolMapFile().
|
protected |
Referenced by overlayMenuFile(), and setOverlayMenuFile().
|
protected |
Referenced by setThreeDSymbolMapFile(), and threeDSymbolMapFile().
|
protected |
Referenced by commModelParameters(), and setCommModelParameters().
|
protected |
Referenced by hostilityFile(), and setHostilityFile().
|
protected |
Referenced by scenarioDataFile(), and setScenarioDataFile().
|
protected |
Referenced by setSymbolMapFiles(), and symbolMapFiles().
|
protected |
Referenced by componentAttachmentFileList().