![]() |
VR-Forces 4.1 Class Documentation
|

Public Member Functions | |
| DtSimulationModelSetLoader (makVrv::DtDe *=0) | |
| default constructor | |
| virtual | ~DtSimulationModelSetLoader () |
| virtual bool | load (const DtSimulationModelSet &) |
| virtual bool | save (const DtFilename &) |
| DtFilename | simulationModelSetFilename () const |
| Returns the filename of the current simulation model set file. | |
| virtual bool | openOpdFile (const DtFilename &filename) |
| virtual bool | openSystemFiles (const DtVrfParameterDb *opd) |
| virtual bool | openEntFile (const DtFilename &filename) |
| virtual bool | loadModelSet (const DtFilename &f) |
| virtual bool | loadAllOpdParameters (bool canCancel=true, const QString &label="") |
| virtual bool | loadForceHostilityFile (const DtFilename &f) |
| virtual DtModelSetEntry * | modifiedModelValue (DtModelSetEntry *, bool createIfMissing=true) |
| virtual DtModelSetEntry * | modelEntry (const DtObjectType &, bool createIfMissing=false) |
| If there is no model entry, will create one with the object type, using the object types string as a label. | |
| virtual DtModelSetEntry * | modelEntry (DtModelSet *, const DtObjectType &, bool createIfMissing=false) |
| virtual void | revertParameterDatabase () |
| virtual DtString | opdVariableValue (const DtString &variableName) const |
| virtual DtString | substituteVariableInPath (const DtFilename &filePath, const DtString &variableName) const |
| Tries to substitute the variable variableName into filePath. | |
| virtual MyMtlParameterDbEntry * | parameterEntryFor (const DtObjectType &, const DtObjectType &original=DtObjectType(-1,-1,-1,-1,-1,-1,-1,-1)) |
| virtual bool | containsObjectType (const DtObjectType &) |
| Returns true if an original (unmodified) model contains the object type or if a modified version does. | |
| virtual bool | hasModelNamed (const DtString &) |
| Returns true if an original (unmodified) model contains the object name or if a modified version does. | |
| virtual bool | isModified () const |
| void | setDefaultCategories (const QStringList &) |
| void | addDefaultCategory (const QString &) |
| const QStringList & | defaultCategories () const |
| virtual void | changeDefaultCategory (const QString &old, const QString &newCat) |
| virtual void | addDefaultCategories (QComboBox *) |
| virtual void | revertCategories () |
| virtual void | parameterChanged (const DtVrfObjectParameters *, const DtObjectType &, const DtObjectType &) |
| virtual void | replaceSystem (const DtFilename &) |
| Replaces the currently loaded system with the one specified. | |
| virtual void | removeSystem (const DtFilename &) |
| Removes the current system from the system database. | |
| DtFilename | getSystemDirectory () const |
| DtFilename | getFormationDirectory () const |
| virtual QPixmap | getIcon (const makVrf::DtEntityMapperKey &key, int pointSize=48, bool sizeToFont=false) |
| virtual void | clearIcons (const makVrf::DtEntityMapperKey &key) |
| const DtModelSet * | modelSet () const |
| DtModelSet * | modelSet () |
| const DtMenu * | entityMenu () const |
| virtual void | setEntityMenu (DtMenu *menu) |
| Creates a clone so menu assigned can be freed. | |
| virtual void | revertEntityMenu () |
| const DtVrfParameterDb * | parameterDatabase () const |
| DtVrfParameterDb * | parameterDatabase () |
| const DtSimulationModelSet & | simulationModelSet () const |
| const DtFilename & | parameterFilename () const |
| const DtComponentSystemDatabase * | systemDatabase () const |
| DtFilename | modelSetDirectory () const |
| virtual void | forceRemoved (DtForceType forceType) |
| const DtRwForces & | allForces () const |
| virtual bool | hasModifiedCreateMenu () const |
| virtual bool | hasModifiedCategories () const |
| virtual bool | saveParameterDatabase (const DtFilename &) |
Static Public Member Functions | |
| static DtSimulationModelSetLoader * | create (makVrv::DtDe *) |
| static void | setParameterDatabaseCreatorFcn (DtParameterDatabaseCreatorFcn) |
Protected Member Functions | |
| virtual DtVrfParameterDb * | createDatabase (const DtFilename &filename) |
| virtual DtVrfParameterDb * | createParameterDatabase () |
| virtual void | loadSystemFilesFromDirectory (const QString &directoryName, const DtVariableBindingsList &variableBindings) |
| virtual void | cleanup () |
| virtual bool | saveModelSet (const DtFilename &) |
| virtual bool | saveForceHostility (const DtFilename &filename) |
| virtual bool | warned (const DtFilename &) |
| virtual void | removeEntityFromSubObjects (const DtObjectType &) |
| virtual bool | filenameInUse (const DtFilename &, DtMtlParameterDbEntry *) const |
| virtual DtModelSet * | createFavoritesFromModelSet (DtModelSet *s) |
| For any item that has a force specified add that to a new favorites set and clear out the forces from the specified set. | |
| virtual void | mergeFavoritesIntoModelSet (DtModelSet *favorites, DtModelSet *set) |
Protected Attributes | |
| QStringList | myWarned |
| QList< DtVrfParameterDbEntry * > | myMissing |
| DtSimulationModelSet | mySimulationModelSet |
| DtMenu * | myEntMenu |
| DtMenu * | myModifiedMenu |
| DtVrfParameterDb * | myParameterDatabase |
| DtComponentSystemDatabase * | mySystemDatabase |
| DtFilename | myParameterFilename |
| DtModelSet * | myModelSet |
| DtModelSet * | myTempModelSet |
| DtRwForces | myAllForces |
| QStringList | myDefaultCategories |
| makVrv::DtDe * | myDe |
Static Protected Attributes | |
| static DtParameterDatabaseCreatorFcn | theParameterDatabaseCreatorFcn |
Private Member Functions | |
| DtSimulationModelSetLoader (const DtSimulationModelSetLoader &) | |
| DtSimulationModelSetLoader & | operator= (const DtSimulationModelSetLoader &) |
| DtSimulationModelSetLoader::DtSimulationModelSetLoader | ( | makVrv::DtDe * | = 0 | ) |
default constructor
|
virtual |
|
private |
|
virtual |
|
virtual |
|
private |
|
inline |
Returns the filename of the current simulation model set file.
References DtSimulationModelSet::filename(), and mySimulationModelSet.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
If there is no model entry, will create one with the object type, using the object types string as a label.
Will not add it to the .mst file, but rather will keep it in a separate list
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Tries to substitute the variable variableName into filePath.
| variableName | must be a variable defined in the OPD file that has been opened. |
| filePath | must be relative to the working directory or an absolute path. |
|
virtual |
|
virtual |
Returns true if an original (unmodified) model contains the object type or if a modified version does.
Returns true if an original (unmodified) model contains the object name or if a modified version does.
|
virtual |
|
inline |
References myDefaultCategories.
|
inline |
References myDefaultCategories.
|
inline |
References myDefaultCategories.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Replaces the currently loaded system with the one specified.
|
virtual |
Removes the current system from the system database.
| DtFilename DtSimulationModelSetLoader::getSystemDirectory | ( | ) | const |
| DtFilename DtSimulationModelSetLoader::getFormationDirectory | ( | ) | const |
|
virtual |
|
virtual |
|
static |
|
static |
|
inline |
References myModelSet.
|
inline |
References myModelSet.
| const DtMenu* DtSimulationModelSetLoader::entityMenu | ( | ) | const |
|
virtual |
Creates a clone so menu assigned can be freed.
Set to myModifiedMenu. Call "revert" to revert to original menu
|
virtual |
|
inline |
References myParameterDatabase.
|
inline |
References myParameterDatabase.
|
inline |
References mySimulationModelSet.
|
inline |
References myParameterFilename.
| const DtComponentSystemDatabase* DtSimulationModelSetLoader::systemDatabase | ( | ) | const |
| DtFilename DtSimulationModelSetLoader::modelSetDirectory | ( | ) | const |
|
virtual |
|
inline |
References myAllForces.
|
virtual |
|
virtual |
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
For any item that has a force specified add that to a new favorites set and clear out the forces from the specified set.
Later the forces will be added back in for gui usage
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
Referenced by simulationModelSet(), and simulationModelSetFilename().
|
protected |
|
protected |
|
protected |
Referenced by parameterDatabase().
|
protected |
|
protected |
Referenced by parameterFilename().
|
protected |
Referenced by modelSet().
|
protected |
|
protected |
Referenced by allForces().
|
protected |
Referenced by addDefaultCategory(), defaultCategories(), and setDefaultCategories().
|
staticprotected |
|
protected |