VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
DtSimulationModelSetManager Class Reference
Inheritance diagram for DtSimulationModelSetManager:
Inheritance graph
[legend]

Public Member Functions

 DtSimulationModelSetManager (makVrv::DtDe &de, makVrv::DtDe &appDe)
 
virtual ~DtSimulationModelSetManager ()
 
virtual DtRwVisualMetaData visualMetaData (const DtEntityType &)
 Visual meta data for the given entity type – will look at simulation model set loader. More...
 
virtual void setVisualMetaData (const DtEntityType &et, DtRwVisualMetaData *)
 
virtual void clearVisualMetaData ()
 
virtual void modifyUsingMappedVisualMetaData (const DtEntityType &et, makVrf::DtVrfVisualMetaDataManager::Markings &markings)
 
- Public Member Functions inherited from makVrf::DtVrfModelSetManager
 DtVrfModelSetManager (makVrv::DtDe &)
 
virtual ~DtVrfModelSetManager ()
 
virtual void setVariableBindings (const DtRwVariableBindings *)
 Sets variable bindings to be used for future reads of the platforms and files. More...
 
virtual void setSearchPaths (const DtReaderWriter::SearchPaths &)
 And the search paths to use for entity file loads. More...
 
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. More...
 
virtual QString parameterTranslation (const DtString &name) const
 Returns the parameter name (from state or parameter data) translated. More...
 
virtual bool loadFromDirectory (const std::string &dataDirectory, const std::string &guiDirectory, const std::string &platformsDirectory, bool reset=true, bool signal=true, bool preloadParameters=false)
 Loads the model set from the specified directory. More...
 
virtual DtModelSetEntrymodelSetEntry (const DtEntityMapperKey &key) const
 Find exactly or by matching pattern. More...
 
virtual bool canHoldSubordinates (const DtEntityMapperKey &key) const
 Returns true if the given type has the ability to contain subordinates. More...
 
virtual std::vector< DtObjectTypesubordinateObjects (const DtEntityMapperKey &) const
 Returns the subodrinate objects of this model set entry. More...
 
virtual bool isRandomized (const DtEntityMapperKey &) const
 Returns true if this is a randomized model. More...
 
virtual bool hasComponentDescriptor (const DtEntityMapperKey &, const DtString &type)
 Returns true if there are any component descriptors of the given types available. More...
 
virtual DtModelSetEntryexactModelSetEntry (const DtEntityMapperKey &key) const
 Find exactly only. More...
 
virtual void getSupportPoints (const DtEntityType &et, DtVector &left, DtVector &right, DtVector &other)
 Gets the support points of the object. More...
 
virtual Dt3dBoundingVolume getBoundingVolume (const DtEntityMapperKey &et)
 Returns the bounding volume of the given entity. More...
 
virtual DtEntityType nameToType (const DtString &) const
 Give a label return the entity type that has an exact match (case included) for that label. More...
 
virtual DtFilename iconForList (const DtEntityType &, const DtString &list) const
 Returns the path for the icon for the icon list for the entity type if it exists. More...
 
virtual bool isFavorite (const DtEntityMapperKey &key, int force) const
 Returns true if the item/force combination is a favorite. More...
 
virtual std::set< DtStringcategories () const
 Returns all the categories contained in this model set. More...
 
virtual std::set< DtStringcategoriesForPalette (const DtString &palette) const
 Returns all the categories contained in this model set for the given palette. More...
 
virtual DtModelSetEntryfindByLabel (const DtString &) const
 Return the model set entry (if it exists) by the given label. More...
 
virtual DtModelSetEntryaddModelSetEntry (const DtString &label, const DtEntityMapperKey &, const DtRwNLengthStringVector &cats)
 Add a new model set entry. More...
 
virtual std::vector< DtStringtaskGroupsForTask (const DtEntityType &key, const DtSimTaskMessageType &) const
 Looks up the task exclusion rules for the given entity and returns them. More...
 
virtual void addSimulationObjectGroupModelSetEntry (DtSimulationObjectGroupModelSetEntry *entry)
 Adds a new simulation object group model set entry. More...
 
virtual
DtSimulationObjectGroupModelSetEntry 
findSimulationObjectGroup (const std::string &sogName) const
 Returns the entry that has a filename which references the given simulation object group. More...
 
virtual DtObjectType nextAvailableSimulationObjectGroupObjectType () const
 Returns the next object typ that can be used for the simulaton object group model set entry. More...
 
virtual void removeModelSetEntry (const DtEntityMapperKey &e)
 Removes the model set entry. More...
 
virtual std::string nameFor (const DtEntityMapperKey &) const
 Returns the name of the item. Blank if none. More...
 
virtual std::string keywordsFor (const DtEntityMapperKey &) const
 Returns the keywords of the item. Blank if none. More...
 
virtual bool canEmbedIntoTerrain (const DtEntityMapperKey &) const
 Returns true if this entity can embed into the terrain. More...
 
virtual bool canEmbark (const DtEntityMapperKey &) const
 Returns true if this entity can embark. More...
 
virtual bool canAttachTo (const DtEntityMapperKey &) const
 Returns true if this entity can be attached to. By default only kind < 11 can be attached to. More...
 
virtual bool canEmbarkUpon (const DtEntityMapperKey &) const
 Returns true if this entity can be embarked upon. More...
 
virtual bool organized (const DtEntityMapperKey &) const
 Returns whether or not this item is organized by default. More...
 
virtual std::string additionalKeywords (const DtEntityMapperKey &) const
 Set/get additional keywords that will be used with the given entity mapper key (exact match). More...
 
virtual void setAdditionalKeywords (const DtEntityMapperKey &, const std::string &, bool replace=false)
 
virtual void statePropertiesForPlatform (const DtString &, DtRwProperties &) const
 Returns a copy of the state properties for the given platform, if it exists. More...
 
virtual void parameterPropertiesForPlatform (const DtString &, DtRwProperties &) const
 Returns a copy of the parameter properties for the given platform, if it exists. More...
 
virtual void statePropertiesFor (const DtEntityType &, DtRwProperties &) const
 If there are state properties in the .ope file referenced by this entity, return them. More...
 
virtual void parameterPropertiesFor (const DtEntityType &, DtRwProperties &)
 If there is parameter properties in the .ope file referenced by this entity, return them. More...
 
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. More...
 
virtual void setModelSet (DtModelSet *)
 Deletes current model set (if owned) and sets new model set. More...
 
virtual void setFavorite (const DtEntityMapperKey &key, bool b)
 Sets the model set entry that matches the mapper key to be a favorite. More...
 
virtual DtModelSetloadFavoritesFor (const std::string &)
 Loads the favorites file for the given model set file. More...
 
virtual void mergeFavoritesInto (DtModelSet *favorite, DtModelSet *modelSet)
 Merges the favorites selection into the given model set. More...
 
virtual void mergeFavorites (DtModelSet *favorites)
 Merge favorites into the shared model set. More...
 
virtual DtModelSetEntryfavoriteFor (DtModelSetEntry *) const
 Returns the favorite that matched the model set entry. More...
 
virtual DtModelSetmodelSet ()
 Returns a model set created from the shared model set. More...
 
virtual DtModelSet modelSet () const
 Returns a copy of the model set. More...
 
void setAutoSave (bool b)
 
bool autoSave () const
 
virtual
DtSharedModelSet::EquipmentTypeMap 
baseEquipment (const DtObjectType &)
 Given a particular entity type, return all the Base-Primary-Equipment that the given entity type pattern has. More...
 
virtual bool load (const DtScenarioExplorer &, bool=true)
 Loads all the model sets from the scenario explorer. More...
 
virtual void initializeCountries ()
 Reinitializes countries and adds any countries that are not present in the country list. More...
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor. More...
 
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor. More...
 

Protected Attributes

makVrv::DtDemyAppDe
 
std::map< std::string,
DtRwVisualMetaData * > 
myMappedVisualMetaData
 
- Protected Attributes inherited from makVrf::DtVrfModelSetManager
makVrv::DtDemyDe
 
bool myAutoSave
 
Favorites myFavorites
 
DtModelSetmyModelSet
 

Additional Inherited Members

- Static Public Member Functions inherited from makVrf::DtVrfModelSetManager
static DtVrfModelSetManagerinstance (makVrv::DtDe &de)
 Returns instance of the messager. More...
 
static void registerInstance (makVrv::DtDe &de, DtVrfModelSetManager *messager)
 
- Public Attributes inherited from makVrf::DtVrfModelSetManager
boost::signals2::signal< void()> signal_modelSetChanged
 
- Protected Types inherited from makVrf::DtVrfModelSetManager
typedef std::map< std::string,
DtModelSet * > 
Favorites
 
- Protected Member Functions inherited from makVrf::DtVrfModelSetManager
virtual void clearModelSets ()
 Clears out all loaded model sets. More...
 

Constructor & Destructor Documentation

DtSimulationModelSetManager::DtSimulationModelSetManager ( makVrv::DtDe de,
makVrv::DtDe appDe 
)
virtual DtSimulationModelSetManager::~DtSimulationModelSetManager ( )
virtual

Member Function Documentation

virtual DtRwVisualMetaData DtSimulationModelSetManager::visualMetaData ( const DtEntityType &  )
virtual

Visual meta data for the given entity type – will look at simulation model set loader.

Reimplemented from makVrf::DtVrfModelSetManager.

virtual void DtSimulationModelSetManager::setVisualMetaData ( const DtEntityType &  et,
DtRwVisualMetaData  
)
virtual
virtual void DtSimulationModelSetManager::clearVisualMetaData ( )
virtual
virtual void DtSimulationModelSetManager::modifyUsingMappedVisualMetaData ( const DtEntityType &  et,
makVrf::DtVrfVisualMetaDataManager::Markings markings 
)
virtual

Member Data Documentation

makVrv::DtDe& DtSimulationModelSetManager::myAppDe
protected
std::map<std::string, DtRwVisualMetaData*> DtSimulationModelSetManager::myMappedVisualMetaData
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)