![]() |
VR-Forces Developer's Guide
|
Shared information about the current model set and entities/platforms that are available to it.

Classes | |
| class | AdditionalKey |
| struct | ObjectTypeAndLabel |
| struct | PlatformStruct |
| class | WriteSettingsLock |
Public Types | |
| typedef std::pair< DtString, unsigned > | EquipmentTypeCountPair |
| typedef std::multimap < EquipmentTypeCountPair, ObjectTypeAndLabel > | EquipmentTypeMap |
Public Member Functions | |
| virtual | ~DtSharedModelSet () override |
| virtual void | setModelSet (DtModelSet *) |
| virtual void | clearModelSet () |
| virtual bool | load (const DtFilename &, std::set< DtString > &iconLists, bool signal=false) |
| virtual void | setVariableBindings (const DtRwVariableBindings *) |
| const DtVariableBindingsSharedPtr & | variableBindings () const |
| virtual void | setSimulationModelSets (const std::vector< DtSimulationModelSet * > &sets) |
| virtual const std::vector < DtSimulationModelSet * > & | simulationModelSets () const |
| virtual void | setSearchPaths (const DtReaderWriter::SearchPaths &) |
| const DtReaderWriter::SearchPaths & | searchPaths () const |
| virtual void | addSimulationObjectGroupModelSetEntry (DtSimulationObjectGroupModelSetEntry *entry) |
| virtual DtSimulationObjectGroupModelSetEntry | findSimulationObjectGroup (const std::string &sogName) const |
| virtual void | getSupportPoints (const DtEntityType &et, DtVector &left, DtVector &right, DtVector &other) |
| virtual std::string | getNavDataPath (const DtEntityType &et) |
| virtual Dt3dBoundingVolume | getBoundingVolume (const DtEntityMapperKey &et) |
| virtual double | getMaximumSpeed (const DtEntityType &et) |
| virtual double | getMinimumSpeed (const DtEntityType &et) |
| virtual double | getDefaultOrderedSpeed (const DtEntityType &et) |
| virtual double | getMaximumAcceleration (const DtEntityType &et) |
| virtual double | getMaximumDeceleration (const DtEntityType &et) |
| virtual bool | loadFromDataFiles (const DtFilename &entities, const DtFilename &platforms, std::set< DtString > &iconLists, bool signal=true, DtModelSet *preloadModelSet=0) |
| virtual void | mergeFavorites (const DtModelSet *f) |
| virtual bool | hasComponentDescriptor (const DtEntityMapperKey &, const DtString &type) |
| virtual std::vector < DtComponentDescriptor * > | componentDescriptorsFrom (const DtEntityMapperKey &, const DtString &type) |
| virtual DtEntityType | nameToType (const DtString &) const |
| virtual DtModelSetEntry * | modelSetEntry (const DtEntityMapperKey &key) const |
| virtual std::string | additionalKeywords (const DtEntityMapperKey &) const |
| virtual void | setAdditionalKeywords (const DtEntityMapperKey &, const std::string &, bool replace=false) |
| virtual DtModelSetEntry * | exactModelSetEntry (const DtEntityMapperKey &key) const |
| virtual bool | canHoldSubordinates (const DtEntityMapperKey &key) const |
| virtual DtModelSetEntry * | addModelSetEntry (const DtString &label, const DtEntityMapperKey &, const DtRwNLengthStringVector &cats) |
| virtual void | removeModelSetEntry (const DtEntityMapperKey &e) |
| virtual std::string | nameFor (const DtEntityMapperKey &) const |
| virtual std::string | keywordsFor (const DtEntityMapperKey &) const |
| virtual DtModelSet * | modelSet () const |
| virtual void | statePropertiesFor (const DtEntityType &, DtRwProperties &) const |
| virtual void | parameterPropertiesFor (const DtEntityType &, DtRwProperties &) |
| virtual void | statePropertiesForPlatform (const DtString &, DtRwProperties &) const |
| virtual void | parameterPropertiesForPlatform (const DtString &, DtRwProperties &) const |
| virtual void | parameterPropertiesFor (const std::set< DtSimObjectReference > &states, DtRwProperties &) |
| virtual std::shared_ptr < DtReaderWriter > | rwProperty (const DtEntityType &, const std::string &prop) const |
| bool | addStateProperty (const DtEntityType &key, DtPropertyInterface *prop) const |
| virtual void | loadPlatforms (const DtString &) |
| virtual void | clearPlatforms () |
| virtual DtRwDIGuyCharacterInfo | getDIGuyCharacterInformation (const DtEntityMapperKey &) |
| virtual DtVrfObjectParameters * | lookupParametersFor (DtModelSetEntry *entry) |
| virtual DtVrfObjectParameters * | lookupParametersFor (const DtEntityType &) |
| virtual DtEntityType | nextAvailableSimulationObjectGroupObjectType () const |
| virtual bool | enabledRadarCoverageDescriptors (const DtEntityMapperKey &, std::vector< DtObjectSensorDescriptor * > &) |
| virtual EquipmentTypeMap | baseEquipment (const DtEntityType &) |
| virtual void | signalLoaded () |
Public Member Functions inherited from makVrv::DtSharedSettings | |
| DtSharedSettings (const DtSharedSettingsManager &manager) | |
| virtual | ~DtSharedSettings () |
| boost::shared_mutex & | mutex () |
| SafetyKey | safeToEmitSignals () |
| void | setCurrentWriteLock (boost::unique_lock< boost::shared_mutex > *currentWriteLock) |
| virtual const DtSettingsBackup * | settingsBackup () const |
| virtual DtSettingsBackup * | settingsBackup () |
| virtual void | backup () |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Static Public Member Functions | |
| static std::string | className () |
Protected Types | |
| typedef std::map< std::string, std::shared_ptr < DtReaderWriter > > | PropertiesMap |
| typedef std::map< DtString, PlatformStruct > | PlatformsMap |
| typedef std::map < DtModelSetEntry *, DtVrfObjectParameters * > | ParameterData |
| typedef DtOrderedKeyList < AdditionalKey * > | AdditionalKeywords |
Protected Member Functions | |
| DtSharedModelSet (makVrv::DtSharedSettingsManager &) | |
| virtual PlatformsMap::const_iterator | availablePlatform (const DtString &str) const |
| virtual void | clearSimulationModelSets () |
Protected Attributes | |
| DtModelSet * | myModelSet |
| PlatformsMap | myAvailablePlatforms |
| tbb::spin_mutex | theAvailablePlatformMutex |
| ParameterData | myParameterData |
| DtReaderWriter::SearchPaths | mySearchPaths |
| AdditionalKeywords | myAdditionalKeywords |
| std::vector < DtSimulationModelSet * > | mySimulationModelSets |
| DtVariableBindingsSharedPtr | myVariableBindings |
Static Protected Attributes | |
| static std::mutex | theSafetyMutex |
Friends | |
| class | makVrv::DtReadSettingsLock< DtSharedModelSet > |
| class | makVrv::DtWriteSettingsLock< DtSharedModelSet > |
| class | makVrv::DtSharedSettingsManager |
| typedef std::pair<DtString, unsigned> makVrf::DtSharedModelSet::EquipmentTypeCountPair |
| typedef std::multimap<EquipmentTypeCountPair, ObjectTypeAndLabel> makVrf::DtSharedModelSet::EquipmentTypeMap |
|
protected |
|
protected |
|
protected |
|
protected |
|
overridevirtual |
DTOR.
|
protected |
|
static |
Get an instance of the settings object. Also protected, use the DtReadSettingsLock and DtWriteSettingsLock to access the object.
|
virtual |
Sets the model set into this manager. Replaces existing model set.
|
virtual |
Creates a new model set.
|
virtual |
Loads model set from file.
|
virtual |
Sets variable bindings to be used for future reads of the platforms and files. Once set these are duplicated and then owned by this class. When reset the original bindings are destroyed.
|
inline |
|
virtual |
|
virtual |
|
virtual |
And the search paths to use for entity file loads.
|
inline |
|
virtual |
Adds a new simulation object group model set entry. Will take ownership of this passed in memory so do not delete. If entry does not have a valid simulation object group object type will assign it.
|
virtual |
Returns the entry that has a filename which references the given simulation object group.
|
virtual |
Gets the support points of the object.
|
virtual |
|
virtual |
Returns the bounding volume of the given entity.
|
virtual |
Returns the maximum movement speed (in m/s) of the given entity type.
|
virtual |
Returns the minimum movement speed (in m/s) of the given entity type. Only applicable to fixed wing aircraft.
|
virtual |
Returns the default ordered movement speed (in m/s) of the given entity type.
|
virtual |
Returns the maximum acceleration (in m/s^2) of the given entity type.
|
virtual |
Returns the maximum deceleration (in m/s^2) of the given entity type.
|
virtual |
Loads models from data files in given directory for entities and platforms.
|
virtual |
Merges favorites into this model set.
|
virtual |
Returns true if there are any component descriptors of the given types available.
|
virtual |
Returns true if there are any component descriptors of the given types available.
|
virtual |
Give a label return the entity type that has an exact match (case included) for that label.
|
virtual |
Find exactly or by matching pattern.
|
virtual |
Set/get additional keywords that will be used with the given entity mapper key (exact match). If replace is false then the keywords will be appended to the current keywords.
|
virtual |
|
virtual |
Find exactly only.
|
virtual |
Returns true if the given type has the ability to contain subordinates.
|
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.
|
virtual |
Returns the model set.
|
virtual |
If there are state properties in the .ope file referenced by this entity, return them.
|
virtual |
If there is parameter properties in the .ope file referenced by this entity, return them.
|
virtual |
If there are state properties in the .ope file referenced by this platform.
|
virtual |
If there is parameter properties in the .ope file referenced by this platform.
|
virtual |
Given the states, return a total of all the parameter properties for numerical items found within. Boolean and string values that have the same value will be kept. Those that have differing values will be marked as read only.
|
virtual |
Returns the property for the given item.
| bool makVrf::DtSharedModelSet::addStateProperty | ( | const DtEntityType & | key, |
| DtPropertyInterface * | prop | ||
| ) | const |
Adds a new state property dynamically. Will then listen for updates for this property that may come in over the network.
|
virtual |
Loads platforms from the given directory.
|
virtual |
Clears out all platforms.
|
virtual |
Gets the DI Guy Character information (if it exists) for the specified entity.
|
virtual |
Looks up parameter entry.
|
virtual |
|
virtual |
Returns the next object type that can be used for the simulation object group model set entry.
|
virtual |
Returns sensor fan enabled sensors that are part of this entity type.
|
virtual |
|
virtual |
|
protectedvirtual |
If the entry is not loaded will lock and load the available platform.
|
protectedvirtual |
|
friend |
Also protected, use the DtReadSettingsLock and DtWriteSettingsLock to access the object.
|
friend |
|
friend |
|
protected |
|
mutableprotected |
|
mutableprotected |
|
protected |
Parameter data is mutable so that we can cache retrieved data in paramegerDataFor().
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |