![]() |
VR-Forces 4.3.1 Class Documentation
|
The Master Scenario Settings Dialog. More...

Public Member Functions | |
| DtVrfModelSetManager (makVrv::DtDe &) | |
| virtual | ~DtVrfModelSetManager () |
| virtual bool | load (const std::string &, bool reset=true, bool signal=true) |
| Loads model set file into model set and then signals loaded if successful. | |
| virtual bool | loadFromDirectory (const std::string &dataDirectory, const std::string &guiDirectory, const std::string &platformsDirectory, bool reset=true, bool signal=true) |
| Loads the model set from the specified directory. | |
| virtual DtModelSetEntry * | modelSetEntry (const DtEntityMapperKey &key) const |
| Find exactly or by matching pattern. | |
| virtual bool | canHoldSubordinates (const DtEntityMapperKey &key) const |
| Returns true if the given type has the ability to contain subordinates. | |
| virtual DtModelSetEntry * | exactModelSetEntry (const DtEntityMapperKey &key) const |
| Find exactly only. | |
| virtual DtEntityType | nameToType (const DtString &) const |
| Give a label return the entity type that has an exact match (case included) for that label. | |
| virtual bool | isFavorite (const DtEntityMapperKey &key, int force) const |
| Returns true if the item/force combination is a favorite. | |
| virtual DtModelSetEntry * | addModelSetEntry (const DtString &label, const DtEntityMapperKey &, const DtRwNLengthStringVector &cats) |
| Add a new model set entry. | |
| virtual void | removeModelSetEntry (const DtEntityMapperKey &e) |
| Removes the model set entry. | |
| virtual std::string | nameFor (const DtEntityMapperKey &) const |
| Returns the name of the item. Blank if none. | |
| virtual std::string | keywordsFor (const DtEntityMapperKey &) const |
| Returns the keywords of the item. Blank if none. | |
| template<class T > | |
| boost::optional< T > | parameterPropertyFor (const DtEntityMapperKey &e, const std::string &propertyName) const |
| Returns the parameter property for the given entity type and property name. Return NULL object if property does not exist. | |
| virtual void | setModelSet (DtModelSet *) |
| Deletes current model set (if owned) and sets new model set. | |
| virtual void | setFavorite (const DtEntityMapperKey &key, bool b) |
| Sets the model set entry that matches the mapper key to be a favorite. | |
| virtual DtModelSet * | loadFavoritesFor (const std::string &) |
| Loads the favorites file for the given model set file. | |
| virtual void | mergeFavoritesInto (DtModelSet *favorite, DtModelSet *modelSet) |
| Merges the favorites selection into the given model set. | |
| virtual void | mergeFavorites (DtModelSet *favorites) |
| Merge favorites into the shared model set. | |
| virtual DtModelSetEntry * | favoriteFor (DtModelSetEntry *) const |
| Returns the favorite that matched the model set entry. | |
| virtual DtModelSet * | modelSet () |
| Returns a model set created from the shared model set. | |
| virtual DtModelSet | modelSet () const |
| Returns a copy of the model set. | |
| void | setAutoSave (bool b) |
| bool | autoSave () const |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. | |
Static Public Member Functions | |
| static DtVrfModelSetManager & | instance (makVrv::DtDe &de) |
| Returns instance of the messager. | |
Public Attributes | |
| boost::signal< void()> | signal_modelSetChanged |
Protected Types | |
| typedef std::map< std::string, DtModelSet * > | Favorites |
Protected Member Functions | |
| virtual void | clearModelSets () |
| Clears out all loaded model sets. | |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| bool | myAutoSave |
| Favorites | myFavorites |
| DtModelSet * | myModelSet |
The Master Scenario Settings Dialog.
|
protected |
| makVrf::DtVrfModelSetManager::DtVrfModelSetManager | ( | makVrv::DtDe & | ) |
|
virtual |
|
static |
Returns instance of the messager.
|
virtual |
Loads model set file into model set and then signals loaded if successful.
|
virtual |
Loads the model set from the specified directory.
This will scan for all .data files. The gui directory is needed for favorites
|
virtual |
Find exactly or by matching pattern.
|
virtual |
Returns true if the given type has the ability to contain subordinates.
|
virtual |
Find exactly only.
|
virtual |
Give a label return the entity type that has an exact match (case included) for that label.
|
virtual |
Returns true if the item/force combination is a favorite.
|
virtual |
Add a new model set entry.
|
virtual |
Removes the model set entry.
|
virtual |
Returns the name of the item. Blank if none.
|
virtual |
Returns the keywords of the item. Blank if none.
|
inline |
Returns the parameter property for the given entity type and property name. Return NULL object if property does not exist.
References makVrv::DtSharedSettingsManager::instance().
|
virtual |
Deletes current model set (if owned) and sets new model set.
Does not take ownership
|
virtual |
Sets the model set entry that matches the mapper key to be a favorite.
If auto-save is true also saves out the model set file
|
virtual |
Loads the favorites file for the given model set file.
Assumes there is a file called favorites.mst in the ame directory referenced for the entity.mst file
|
virtual |
Merges the favorites selection into the given model set.
If there are no matching types no merge will occur for that type
|
virtual |
Merge favorites into the shared model set.
|
virtual |
Returns the favorite that matched the model set entry.
|
virtual |
Returns a model set created from the shared model set.
|
virtual |
Returns a copy of the model set.
|
inline |
|
inline |
|
protectedvirtual |
Clears out all loaded model sets.
| boost::signal<void ()> makVrf::DtVrfModelSetManager::signal_modelSetChanged |
|
protected |
|
protected |
|
protected |
|
protected |