![]() |
VR-Forces 4.0.4 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 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 &) |
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 &) |
default constructor
| virtual DtSimulationModelSetLoader::~DtSimulationModelSetLoader | ( | ) | [virtual] |
| DtSimulationModelSetLoader::DtSimulationModelSetLoader | ( | const DtSimulationModelSetLoader & | ) | [private] |
| virtual bool DtSimulationModelSetLoader::load | ( | const DtSimulationModelSet & | ) | [virtual] |
| virtual bool DtSimulationModelSetLoader::save | ( | const DtFilename & | ) | [virtual] |
| DtSimulationModelSetLoader& DtSimulationModelSetLoader::operator= | ( | const DtSimulationModelSetLoader & | ) | [private] |
| DtFilename DtSimulationModelSetLoader::simulationModelSetFilename | ( | ) | const [inline] |
Returns the filename of the current simulation model set file.
References DtSimulationModelSet::filename(), and mySimulationModelSet.
| virtual bool DtSimulationModelSetLoader::openOpdFile | ( | const DtFilename & | filename | ) | [virtual] |
| virtual bool DtSimulationModelSetLoader::openSystemFiles | ( | const DtVrfParameterDb * | opd | ) | [virtual] |
| virtual bool DtSimulationModelSetLoader::openEntFile | ( | const DtFilename & | filename | ) | [virtual] |
| virtual bool DtSimulationModelSetLoader::loadModelSet | ( | const DtFilename & | f | ) | [virtual] |
| virtual bool DtSimulationModelSetLoader::loadAllOpdParameters | ( | bool | canCancel = true, |
| const QString & | label = "" |
||
| ) | [virtual] |
| virtual bool DtSimulationModelSetLoader::loadForceHostilityFile | ( | const DtFilename & | f | ) | [virtual] |
| virtual DtModelSetEntry* DtSimulationModelSetLoader::modifiedModelValue | ( | DtModelSetEntry * | , |
| bool | createIfMissing = true |
||
| ) | [virtual] |
| virtual DtModelSetEntry* DtSimulationModelSetLoader::modelEntry | ( | const DtObjectType & | , |
| bool | createIfMissing = false |
||
| ) | [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 DtModelSetEntry* DtSimulationModelSetLoader::modelEntry | ( | DtModelSet * | , |
| const DtObjectType & | , | ||
| bool | createIfMissing = false |
||
| ) | [virtual] |
| virtual void DtSimulationModelSetLoader::revertParameterDatabase | ( | ) | [virtual] |
| virtual DtString DtSimulationModelSetLoader::opdVariableValue | ( | const DtString & | variableName | ) | const [virtual] |
| virtual DtString DtSimulationModelSetLoader::substituteVariableInPath | ( | const DtFilename & | filePath, |
| const DtString & | variableName | ||
| ) | const [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 MyMtlParameterDbEntry* DtSimulationModelSetLoader::parameterEntryFor | ( | const DtObjectType & | , |
| const DtObjectType & | original = DtObjectType(-1,-1,-1,-1,-1,-1,-1,-1) |
||
| ) | [virtual] |
| virtual bool DtSimulationModelSetLoader::containsObjectType | ( | const DtObjectType & | ) | [virtual] |
Returns true if an original (unmodified) model contains the object type or if a modified version does.
| virtual bool DtSimulationModelSetLoader::hasModelNamed | ( | const DtString & | ) | [virtual] |
Returns true if an original (unmodified) model contains the object name or if a modified version does.
| virtual bool DtSimulationModelSetLoader::isModified | ( | ) | const [virtual] |
| void DtSimulationModelSetLoader::setDefaultCategories | ( | const QStringList & | l | ) | [inline] |
References myDefaultCategories.
| void DtSimulationModelSetLoader::addDefaultCategory | ( | const QString & | l | ) | [inline] |
References myDefaultCategories.
| const QStringList & DtSimulationModelSetLoader::defaultCategories | ( | ) | const [inline] |
References myDefaultCategories.
| virtual void DtSimulationModelSetLoader::changeDefaultCategory | ( | const QString & | old, |
| const QString & | newCat | ||
| ) | [virtual] |
| virtual void DtSimulationModelSetLoader::addDefaultCategories | ( | QComboBox * | ) | [virtual] |
| virtual void DtSimulationModelSetLoader::revertCategories | ( | ) | [virtual] |
| virtual void DtSimulationModelSetLoader::parameterChanged | ( | const DtVrfObjectParameters * | , |
| const DtObjectType & | , | ||
| const DtObjectType & | |||
| ) | [virtual] |
| virtual void DtSimulationModelSetLoader::replaceSystem | ( | const DtFilename & | ) | [virtual] |
Replaces the currently loaded system with the one specified.
| virtual void DtSimulationModelSetLoader::removeSystem | ( | const DtFilename & | ) | [virtual] |
Removes the current system from the system database.
| DtFilename DtSimulationModelSetLoader::getSystemDirectory | ( | ) | const |
| DtFilename DtSimulationModelSetLoader::getFormationDirectory | ( | ) | const |
| virtual QPixmap DtSimulationModelSetLoader::getIcon | ( | const makVrf::DtEntityMapperKey & | key, |
| int | pointSize = 48, |
||
| bool | sizeToFont = false |
||
| ) | [virtual] |
| virtual void DtSimulationModelSetLoader::clearIcons | ( | const makVrf::DtEntityMapperKey & | key | ) | [virtual] |
| static void DtSimulationModelSetLoader::setParameterDatabaseCreatorFcn | ( | DtParameterDatabaseCreatorFcn | ) | [static] |
| const DtModelSet * DtSimulationModelSetLoader::modelSet | ( | ) | const [inline] |
References myModelSet.
| DtModelSet * DtSimulationModelSetLoader::modelSet | ( | ) | [inline] |
References myModelSet.
| const DtMenu* DtSimulationModelSetLoader::entityMenu | ( | ) | const |
| virtual void DtSimulationModelSetLoader::setEntityMenu | ( | DtMenu * | menu | ) | [virtual] |
Creates a clone so menu assigned can be freed.
Set to myModifiedMenu. Call "revert" to revert to original menu
| virtual void DtSimulationModelSetLoader::revertEntityMenu | ( | ) | [virtual] |
| const DtVrfParameterDb * DtSimulationModelSetLoader::parameterDatabase | ( | ) | const [inline] |
References myParameterDatabase.
| DtVrfParameterDb * DtSimulationModelSetLoader::parameterDatabase | ( | ) | [inline] |
References myParameterDatabase.
| const DtSimulationModelSet & DtSimulationModelSetLoader::simulationModelSet | ( | ) | const [inline] |
References mySimulationModelSet.
| const DtFilename & DtSimulationModelSetLoader::parameterFilename | ( | ) | const [inline] |
References myParameterFilename.
| const DtComponentSystemDatabase* DtSimulationModelSetLoader::systemDatabase | ( | ) | const |
| DtFilename DtSimulationModelSetLoader::modelSetDirectory | ( | ) | const |
| virtual void DtSimulationModelSetLoader::forceRemoved | ( | DtForceType | forceType | ) | [virtual] |
| const DtRwForces & DtSimulationModelSetLoader::allForces | ( | ) | const [inline] |
References myAllForces.
| virtual bool DtSimulationModelSetLoader::hasModifiedCreateMenu | ( | ) | const [virtual] |
| virtual bool DtSimulationModelSetLoader::hasModifiedCategories | ( | ) | const [virtual] |
| virtual bool DtSimulationModelSetLoader::saveParameterDatabase | ( | const DtFilename & | ) | [virtual] |
| virtual DtVrfParameterDb* DtSimulationModelSetLoader::createDatabase | ( | const DtFilename & | filename | ) | [protected, virtual] |
| virtual DtVrfParameterDb* DtSimulationModelSetLoader::createParameterDatabase | ( | ) | [protected, virtual] |
| virtual void DtSimulationModelSetLoader::loadSystemFilesFromDirectory | ( | const QString & | directoryName, |
| const DtVariableBindingsList & | variableBindings | ||
| ) | [protected, virtual] |
| virtual void DtSimulationModelSetLoader::cleanup | ( | ) | [protected, virtual] |
| virtual bool DtSimulationModelSetLoader::saveModelSet | ( | const DtFilename & | ) | [protected, virtual] |
| virtual bool DtSimulationModelSetLoader::saveForceHostility | ( | const DtFilename & | filename | ) | [protected, virtual] |
| virtual bool DtSimulationModelSetLoader::warned | ( | const DtFilename & | ) | [protected, virtual] |
QStringList DtSimulationModelSetLoader::myWarned [protected] |
QList<DtVrfParameterDbEntry*> DtSimulationModelSetLoader::myMissing [protected] |
Referenced by simulationModelSet(), and simulationModelSetFilename().
DtMenu* DtSimulationModelSetLoader::myEntMenu [protected] |
DtMenu* DtSimulationModelSetLoader::myModifiedMenu [protected] |
Referenced by parameterDatabase().
DtFilename DtSimulationModelSetLoader::myParameterFilename [protected] |
Referenced by parameterFilename().
DtModelSet* DtSimulationModelSetLoader::myModelSet [protected] |
Referenced by modelSet().
DtModelSet* DtSimulationModelSetLoader::myTempModelSet [protected] |
DtRwForces DtSimulationModelSetLoader::myAllForces [protected] |
Referenced by allForces().
QStringList DtSimulationModelSetLoader::myDefaultCategories [protected] |
Referenced by addDefaultCategory(), defaultCategories(), and setDefaultCategories().
DtParameterDatabaseCreatorFcn DtSimulationModelSetLoader::theParameterDatabaseCreatorFcn [static, protected] |
makVrv::DtDe* DtSimulationModelSetLoader::myDe [protected] |