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

Classes | |
| class | EntityData |
| class | EnvironmentContainer |
Public Types | |
| enum | LoadFlags { LoadDataFiles = 0x00000001, LoadParameterFiles = 0x00000002, LoadSystemFiles = 0x00000004, LoadSupportingFiles = 0x00000008, LoadStandardSensorObjects = 0x00000010, LoadTranslationFiles = 0x00000020, LoadVisualFiles = 0x00000040, LoadOrCreateVisualFiles = 0x00000080, LoadAutoTagInformation = 0x00000100, LoadAll = LoadDataFiles | LoadParameterFiles | LoadSystemFiles | LoadSupportingFiles | LoadStandardSensorObjects | LoadTranslationFiles | LoadOrCreateVisualFiles | LoadAutoTagInformation } |
| typedef std::map< DtString, DtVrfObjectParameters * > | ParametersMap |
| typedef boost::shared_ptr < EnvironmentContainer > | EnvironmentContainerSP |
| typedef std::map< std::string, EntityData * > | ParametersData |
Public Member Functions | |
| DtSimulationModelSetLoader (makVrv::DtDe &) | |
| default constructor | |
| virtual | ~DtSimulationModelSetLoader () |
| virtual bool | load (const DtSimulationModelSet &, LoadFlags flags=LoadAll) |
| virtual bool | save (const DtFilename &) |
| virtual void | setDisplayDe (makVrv::DtDe *) |
| virtual makVrv::DtDe & | displayDe () |
| virtual void | setLoadVisuals (bool) |
| Whether or not to deal with visuals. | |
| virtual bool | hasFileNamed (const std::string &s) const |
| Returns true if there is a file named with the supplied file. Strips paths and such. | |
| virtual bool | addNewDataFile (const std::string &) |
| Copies the data file from the specified location into the simulation model set data directory and loads it into the gui. | |
| virtual bool | addNewSimulationObjectGroup (const std::string &) |
| Adds a new simulation object group file (blank) to the system. If group exists returns false. | |
| virtual bool | addNewRandomizedObject (const std::string &) |
| Adds a new randomized object with the given name to the system. | |
| virtual bool | readOnly () const |
| Whether or not SMS is read only. | |
| virtual void | setReadOnly (bool) |
| virtual void | setSaveReadOnlyFlag (bool) |
| Set to false to not save the state of the read only flag into the simulation model set on save. | |
| virtual bool | saveReadOnlyFlag () const |
| virtual bool | simulationObjectGroupExists (const std::string &) const |
| Checks to see if simulation object group exists. | |
| virtual bool | randomizedObjectExists (const std::string &) const |
| Checks to see if randomized object exists. | |
| virtual DtModelSetEntry * | createNewSimulationObjectGroupFromExisting (const DtObjectType &base, const std::string &newName, const DtRwNLengthStringVector &categories=DtRwNLengthStringVector("categories")) |
| Adds a new simulation object group based on an existing one and copies all object group files. | |
| virtual DtModelSetEntry * | createNewSimulationObjectGroupFromExisting (EntityData *data, const std::string &newName, const DtRwNLengthStringVector &categories=DtRwNLengthStringVector("categories")) |
| virtual std::string | platform (const makVrf::DtEntityMapperKey &k) const |
| Returns the platform of the particular item. | |
| virtual std::string | uiFilename (const makVrf::DtEntityMapperKey &k) const |
| Returns the ui filename of the individual entityType. | |
| virtual DtSimulationModelSet * | simulationModelSet (const makVrf::DtEntityMapperKey &k) const |
| Returns the simulation model set this entity type is in. | |
| virtual std::string | platformFileType (const makVrf::DtEntityMapperKey &k) const |
| Returns the platform file. | |
| virtual std::string | platformKey (const makVrf::DtEntityMapperKey &k) const |
| Returns the platform key for the given entity key. | |
| virtual DtString | platformDisplayName (const makVrf::DtEntityMapperKey &k) const |
| Returns the display name of the platform, if it exists, else returns the platformFileType. | |
| virtual DtString | platformDisplayDescription (const makVrf::DtEntityMapperKey &k) const |
| Returns the display description of the platform, if it exists, else returns the platform file name. | |
| virtual bool | addMissingVariablesFromPlatformsAndSystems () |
| Given platforms and systems, attempt to add missing variables to the correct sections. Returns true if any changes made. | |
| virtual bool | addMissingVariablesFromPlatformsAndSystems (EntityData *data, std::map< DtString, DtRwVariableBindings * > &) |
| DtFilename | getSystemDirectory () const |
| DtFilename | getNavDataDirectory () const |
| DtFilename | getFormationDirectory () const |
| DtFilename | getGuiDirectory () const |
| DtFilename | path () const |
| DtFilename | simulationModelSetFilename () const |
| Returns the filename of the current simulation model set file. | |
| virtual bool | openSystemFiles (DtSimulationModelSet *set, const DtFilename &directory) |
| virtual bool | loadForceHostilityFile (const DtFilename &f) |
| virtual bool | loadDataFiles (const DtString &, DtSimulationModelSet *, bool fromMasterSMS) |
| Loads all the data files in the data directory of the simulation model set. | |
| virtual void | loadSimulationObjectGroupFiles (const DtString &, DtSimulationModelSet *, bool fromMasterSMS) |
| Loads the simulation object group files. | |
| virtual DtModelSetEntry * | reloadSimulationObjectGroup (const DtString &) |
| Reloads the existing simulation object group. If the simulation object group does not exist will do nothing. | |
| virtual void | loadTemplates (const DtString &, DtSimulationModelSet *) |
| Loads template files from the given directory. Templates are used in the new model dialog if not created from existing. | |
| virtual void | makeTemplate (EntityData *) |
| Adds a new template the the internal list and immediately saves it to the templates directory. | |
| virtual void | makeTemplate (const DtObjectType &) |
| virtual bool | loadParameterFiles (DtSimulationModelSet *sms) |
| Loads all the parameter files in the parameter directory of the simulation model set. | |
| virtual bool | loadModelSet () |
| Creates the model set list from the loaded data files. | |
| virtual DtModelSetEntry * | modelEntry (const DtObjectType &, bool matchPattern=false) const |
| If there is no model entry, will create one with the object type, using the object types string as a label. | |
| virtual DtString | simulationModelSetFor (const DtEntityType &) const |
| Returns the simulation model set file that this entity would come from if loaded into a scenario. | |
| virtual DtModelSetEntry | createModelSetEntryFrom (DtEnvironmentSP env, DtEnvValueSP objectNode) const |
| Returns a model set entry based on the environment that contains a guiInformation entry. | |
| virtual DtModelSetEntry | createModelSetEntryFrom (const DtObjectType &) const |
| virtual bool | hasGuiKeyword (const makVrf::DtEntityMapperKey &, const std::string &) const |
| Returns true if the model set entry has the given keyword. | |
| virtual void | revertData (const makVrf::DtEntityMapperKey &key) |
| Reverts the data to previous settings. | |
| virtual EntityData * | dataFor (const DtObjectType &) const |
| Returns the variable bindings for the given object type. | |
| virtual EntityData * | dataFor (DtModelSetEntry *) const |
| Returns the data for the entity data that has the exact model set entry address. | |
| virtual bool | containsObjectType (const DtObjectType &, bool onlyFromMasterSMS=false, DtString *name=0) const |
| Returns true if an original (unmodified) model contains the object type or if a modified version does. | |
| virtual bool | isSimulationObjectGroup (const DtObjectType &) const |
| Returns true if this item is a simulation object group. | |
| virtual bool | hasModelNamed (const DtString &, bool &isDeleted) |
| Returns true if an original (unmodified) model contains the object name or if a modified version does. | |
| virtual DtReaderWriter::SearchPaths | searchPaths () const |
| virtual std::vector < DtSimulationModelSet * > | modelSets () const |
| virtual const ParametersMap & | availableParameters () const |
| virtual bool | createRwVariable (const DtObjectType &, const std::string &rwType, const std::string &rwName, DtReaderWriter *&source, DtReaderWriter *&backup) |
| Given an object type create source an backup variables of the given RW type (if it exists). | |
| virtual void | replaceSystem (const DtFilename &) |
| virtual bool | entryIsRandomized (const DtObjectType &) const |
| virtual bool | canAddSubordinatesTo (const DtObjectType &) const |
| virtual bool | isModified (const DtObjectType &) const |
| virtual bool | isModified (EntityData *) const |
| virtual bool | isModified () const |
| virtual bool | isNew (const DtObjectType &) const |
| virtual bool | isNew (EntityData *) const |
| virtual bool | isDeleted (const DtObjectType &) const |
| virtual bool | isDeleted (EntityData *) const |
| virtual makVrf::DtVrfEntityTypeMapper & | entityTypeMapper (const makVrf::DtEntityMapperKey &) |
| virtual makVrf::DtVrfEntityTypeMapper & | aggregateTypeMapper (const makVrf::DtEntityMapperKey &) |
| virtual makVrf::DtVrfEntityTypeMapper & | tacticalGraphicsMapper (const makVrf::DtEntityMapperKey &) |
| virtual makVrv::DtElementDefinitionTypeManager & | elementDefinitionTypeManager (const makVrf::DtEntityMapperKey &) |
| virtual makVrv::DtModelDefinitionManager & | modelDefinitionManager (const makVrf::DtEntityMapperKey &) |
| virtual void | saveModelDefinitionManager () |
| virtual void | saveVisualElementsFor (makVrv::DtElementDefinitionTypeManager::BuiltInElementTypes) |
| virtual makVrf::DtVrfVisualsManager * | visualsManager () |
| virtual makVrf::DtVrfEntityTypeMapper & | defaultEntityTypeMapper () |
| virtual makVrf::DtVrfEntityTypeMapper & | defaultAggregateTypeMapper () |
| virtual makVrf::DtVrfEntityTypeMapper & | defaultTacticalGraphicsMapper () |
| virtual makVrv::DtElementDefinitionTypeManager & | defaultElementDefinitionTypeManager () |
| virtual makVrv::DtModelDefinitionManager & | defaultModelDefinitionManager () |
| virtual makVrv::DtEntityTypeMapper * | systemEntityTypeMapper () |
| virtual makVrv::DtEntityTypeMapper * | systemAggregateTypeMapper () |
| virtual makVrv::DtEntityTypeMapper * | systemTacticalGraphicsMapper () |
| virtual makVrv::DtElementDefinitionTypeManager & | systemElementDefinitionTypeManager () |
| virtual makVrv::DtModelDefinitionManager & | systemModelDefinitionManager () |
| virtual void | createSpotReportDefinitionFor (const makVrf::DtEntityMapperKey &) |
| virtual void | updateVisualsFor (const makVrf::DtEntityMapperKey &) |
| virtual void | removeVisualsFor (const makVrf::DtEntityMapperKey &) |
| virtual void | removeElementDefinition (const makVrf::DtEntityMapperKey &) |
| virtual void | deleteModel (DtModelSetEntry *) |
| Schedules the model for "deletion". | |
| virtual void | deleteModel (const DtObjectType &) |
| virtual void | deleteModel (EntityData *) |
| virtual bool | changeObjectType (const DtObjectType &oldType, const DtObjectType &newType) |
| Changes object type on model and data. Returns true if successful. | |
| virtual bool | changeMatchType (const DtObjectType &oldType, const DtObjectType &newType) |
| Changes match type on data. Returns true if successful. | |
| virtual bool | setAdditionalMatchTypes (const DtObjectType &key, const std::list< DtObjectType > additionalMatchTypes) |
| virtual void | updateGuiInformation (EntityData *) |
| Updates the model set entry information into the modified model data's gui information section. | |
| virtual void | updateSystemData (EntityData *) |
| Updates data about systems (adds, removes or modifies) | |
| virtual void | sharedSystems (const DtFilename &systemFile, std::vector< DtModelSetEntry * > &result) const |
| Returns all the model set entries that share the given system. | |
| virtual void | loadSystemFile (const DtFilename &) |
| Loads the specified system file into the system database. | |
| virtual void | updateDataInformation (EntityData *) |
| Updates all the data from the bindings into the modified data. | |
| virtual void | convertRegistryToEnvironment (const DtReaderWriterRegistry &data, DtEnvironmentSP env, DtEnvValueSP objectNode) const |
| Converts the registry data to the XML environment format. | |
| virtual void | removeSystem (DtEnvironmentSP env, const DtString &system, DtEnvValueSP objectNode) |
| Removes the system of the given name from the supplied environment. | |
| virtual void | addSystem (DtEnvironmentSP env, const DtRwVariableBindings *, DtEnvValueSP objectNode) |
| Adds the given system to the environment. | |
| virtual QStringList | masterModeCategories () const |
| virtual QStringList | defaultCategoriesAsStringList () const |
| DtSimulationObjectCategoryInformation & | defaultCategories () |
| const DtSimulationObjectCategoryInformation & | defaultCategories () const |
| virtual void | loadAutoTagInformation () |
| DtAutoTagInformation & | autoTagInformation () |
| const DtAutoTagInformation & | autoTagInformation () const |
| virtual DtSimulationObjectCategoryInformation | nonMasterModeCategories () const |
| virtual void | setDefaultCategories (const DtSimulationObjectCategoryInformation &, const QStringList &masterMode) |
| virtual void | revertCategories () |
| virtual bool | hasModifiedCategories () const |
| virtual bool | saveDefaultCategories (const DtFilename &) |
| virtual bool | loadDefaultCategories (const DtFilename &) |
| void | setDefaultOverlayLayers (const QStringList &) |
| const QStringList & | defaultOverlayLayers () const |
| virtual void | revertOverlayLayers () |
| virtual bool | hasModifiedOverlayLayers () const |
| virtual void | changeDefaultOverlayLayer (const QString &old, const QString &newCat) |
| virtual void | addDefaultOverlayLayers (QComboBox *) |
| void | addDefaultOverlayLayer (const QString &) |
| virtual DtRwForces | favoritesFor (const DtModelSetEntry *) const |
| virtual DtRwForces | backupFavoritesFor (const DtModelSetEntry *) const |
| virtual void | setFavoritesFor (DtModelSetEntry *, const DtRwForces &) |
| virtual void | changeDefaultDeployedCountry (const QString &old, const QString &newCat) |
| virtual void | addDefaultDeployedCountries (QComboBox *) |
| void | setDefaultDeployedCountries (const QStringList &) |
| void | addDefaultDeployedCountry (const QString &) |
| const QStringList & | defaultDeployedCountries () const |
| virtual void | revertDeployedCountries () |
| virtual bool | hasModifiedDeployedCountries () const |
| virtual void | resetVisuals () |
| Tells the system to reset all visuals. | |
| virtual DtRwVariableBindings * | createVariableBindingsForSystem (const DtFilename &, const DtString &newSystemName) |
| Returns new variable bindings for the specified system. | |
| virtual std::map< std::string, DtEntityType > | templatesForKind (int) const |
| Returns a list of templates that can be used for the given entity kind. The key is the label. | |
| virtual std::map< std::string, DtEntityType > | templatesThatMatch (const DtEntityType &) const |
| virtual DtModelSetEntry * | addNewEntity (const DtObjectType &base, const DtObjectType &newType, const DtString &name, const DtRwNLengthStringVector &categories, const DtString &uniqueID, const makVrv::DtUnicode &elementDefinition=makVrv::DtUnicode::fromAscii("")) |
| Adds a new entity of the given type based on the supplied type. | |
| virtual DtModelSetEntry * | addNewEntity (const std::string &platformType, const DtObjectType &newType, const DtString &name, const DtRwNLengthStringVector &categories, const DtString &uniqueID, const makVrv::DtUnicode &elementDefinition=makVrv::DtUnicode::fromAscii("")) |
| Adds a new entity of the given the supplied platform type. | |
| DtModelSetEntry * | addNewEntity (EntityData *baseData, const DtObjectType &newType, const DtString &name, const DtRwNLengthStringVector &categories, const DtString &uniqueID, const makVrv::DtUnicode &elementDefinition=makVrv::DtUnicode::fromAscii("")) |
| Adds a new entity given the base data. Will clone the data and add new based on it. | |
| virtual void | removeSystem (const DtFilename &) |
| Removes the current system from the system database. | |
| virtual const DtRwVariableBindings * | variableBindings () const |
| virtual QPixmap | getIcon (const makVrf::DtEntityMapperKey &key, int pointSize=48, bool sizeToFont=false) |
| virtual void | clearIcons (const makVrf::DtEntityMapperKey &key) |
| virtual void | changeSubordinateTypes (const DtObjectType &oldType, const DtObjectType &newType) |
| Scans all subordinate lists for the old type and changes it to the new type. | |
| virtual void | checkParameterUpdates (EntityData *) |
| virtual void | checkParameterUpdates (const std::set< makVrf::DtEntityMapperKey > &) |
| virtual makVrv::DtUnicode | elementDefinitionFor (const DtEntityType &) |
| Returns the element definition for the given type. | |
| virtual DtVrfSubObjectParameterList | subordinateObjectsFor (const DtObjectType &) const |
| Returns a list of subordinate objects associated with the given entity type modified environment. | |
| virtual DtVrfSubObjectParameterList | subordinateObjectsFor (DtEnvironmentSP, DtEnvValueSP objectNode) const |
| virtual void | updateSubordinateObjects (const DtObjectType &, const DtVrfSubObjectParameterList &) |
| Updates the subordinate objects into the given object's modified environment. | |
| virtual void | updateSubordinateObjects (DtEnvironmentSP, DtEnvValueSP objectNode, const DtVrfSubObjectParameterList &) |
| virtual void | updateFormationTable (const DtObjectType &, const DtFormationTable &) |
| Updates modified formation table. | |
| virtual DtEmbarkationInformation | embarkationInformationFor (const DtObjectType &) const |
| Returns a list of embarkation slots and all relevant information about embarkation. | |
| virtual DtEmbarkationInformation | embarkationInformationFor (DtEnvironmentSP, DtEnvValueSP objectNode) const |
| virtual void | updateEmbarkationInformation (const DtObjectType &, const DtEmbarkationInformation &) |
| Updates the embarkation slots into the given object's modified environment. | |
| virtual void | updateEmbarkationInformation (DtEnvironmentSP, DtEnvValueSP objectNode, const DtEmbarkationInformation &) |
| virtual DtDiGuyInformation | diGuyInformationFor (const DtObjectType &) const |
| Returns di-guy information for the specified object. | |
| virtual void | updateDiGuyInformation (const DtObjectType &, const DtDiGuyInformation &) |
| Updates di-guy information for the specified object. | |
| virtual DtSensorSignatureInformation | sensorSignatureInformationFor (const DtObjectType &) const |
| Returns sensor signature information for the specified object. | |
| virtual DtSensorSignatureInformation | sensorSignatureInformationFor (DtEnvironmentSP, DtEnvValueSP root) const |
| virtual void | updateSensorSignatureInformation (const DtObjectType &, const DtSensorSignatureInformation &) |
| Updates sensor signature information information for the specified object. | |
| virtual void | updateSensorSignatureInformation (DtEnvironmentSP, DtEnvValueSP root, const DtSensorSignatureInformation &) |
| virtual DtFormationTable * | formationTableFor (const DtObjectType &) |
| Returns a list of formation table objects associated with the given entity type modified environment. | |
| virtual DtFormationTable * | originalFormationTableFor (const DtObjectType &) |
| virtual Dt3dBoundingVolume | boundingVolumeFor (const DtObjectType &) const |
| Returns bounding volume for the given object. | |
| virtual bool | isAggregate (const DtObjectType &) const |
| Returns true if this object is an aggregate. | |
| bool | loaded () const |
| const DtOrderedObjectTypeList < EntityData * > & | entityData () const |
| virtual bool | isTemplate (const DtObjectType &) const |
| virtual bool | templateExists (const DtObjectType &) const |
| virtual void | setForceManagerModified (bool) |
| virtual bool | forceManagerModified () const |
| virtual bool | isInMasterSMS (const DtObjectType &) const |
| virtual DtString | smsName (const DtObjectType &) const |
| virtual bool | saveData () |
| Walks through all the data and saves it out. Will make current data the modified data. | |
| virtual bool | saveFavorites () |
| Saves out the favorites file. | |
| virtual DtObjectType | templateObjectType (const std::string ¶meterType) const |
| Given the parameter type, returns the first item that matches that type's object type. | |
| virtual void | addInternalItem (const std::string &, bool markDataAsWell=true) |
| Adds a new item to the internal items list. This is the name of the reader/writer variable. | |
| virtual std::vector < DtReaderWriter * > | supportPointsFor (const DtObjectType &) const |
| Returns a list of support points (left/right/other) for the given entity. | |
| virtual DtObjectType | uniqueEntityTypeFrom (const DtObjectType &, bool onlyFromMasterSMS=false) const |
| Returns a new entity type that is unique based on the supplied type. | |
| virtual makVrv::DtUnicode | systemNameForSystem (const std::string &, DtFilename &fullFilename) const |
| Returns the system name (from the meta data) for the give system. | |
| virtual bool | hasFactoryChecksums () const |
| Returns true if the loaded SMS has factory checksums associated with it. | |
| virtual const DtSmsChecksum & | factoryChecksums () const |
| Returns the factory checksums. | |
| const DtModelSet * | modelSet () const |
| DtModelSet * | modelSet () |
| virtual makVrv::DtForceManager * | forceManager () |
| const DtSimulationModelSet & | simulationModelSet () const |
| bool | hasSimulationModelSet () const |
| DtSimulationModelSet & | simulationModelSet () |
| const DtFilename & | parameterFilename () const |
| const DtComponentSystemDatabase * | systemDatabase () const |
| DtFilename | modelSetDirectory () const |
| virtual void | forceRemoved (DtForceType forceType) |
| const DtRwForces & | allForces () const |
| virtual std::vector< const DtComponentSystemDefinition * > | systemDefinitionsFor (const DtObjectType &o) const |
| virtual const DtReaderWriter * | findVariable (const DtVariableBindingsList &, const DtString &) const |
| virtual const DtReaderWriter * | findOriginalVariable (const makVrf::DtEntityMapperKey &emk, const DtString &) const |
| virtual const DtReaderWriter * | findModifiedVariable (const makVrf::DtEntityMapperKey &emk, const DtString &) const |
| virtual DtReaderWriter * | findVariable (const DtVariableBindingsList &, const DtString &) |
| virtual DtReaderWriter * | findOriginalVariable (const makVrf::DtEntityMapperKey &emk, const DtString &) |
| virtual DtReaderWriter * | findModifiedVariable (const makVrf::DtEntityMapperKey &emk, const DtString &) |
| virtual const DtReaderWriter * | variableFromAnyPlatform (const DtString &varName) const |
| virtual DtVrfObjectParameters * | platformParameters (const makVrf::DtEntityMapperKey &key) const |
| virtual const DtStandardSensorObjects & | standardSensorObjects () const |
| virtual DtStandardSensorObjects & | standardSensorObjects () |
| virtual bool | processModelSet (DtSimulationModelSet *, LoadFlags flags=LoadAll, bool isMasterSMS=false) |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. | |
Static Public Member Functions | |
| static DtSimulationModelSetLoader & | instance (makVrv::DtDe &) |
| static void | registerInstance (makVrv::DtDe &, DtSimulationModelSetLoader *) |
| static DtSimulationModelSetLoader * | create (makVrv::DtDe *) |
Public Attributes | |
| boost::signal< void()> | signal_preloadSimulationModelSet |
| boost::signal< void()> | signal_simulationModelSetLoaded |
| boost::signal< void(std::vector < EntityData * >)> | signal_newDataFileAdded |
| boost::signal< void(EntityData *)> | signal_entityEntryAboutToBeRemoved |
| boost::signal< void(EntityData *)> | signal_entityEntryAdded |
| boost::signal< void(EntityData *)> | signal_visualMappingsModified |
| boost::signal< void()> | signal_resetVisuals |
| boost::signal< void(bool)> | signal_readOnlyChanged |
Protected Types | |
| typedef std::map < DtModelSetEntry *, EntityData * > | EntityDataByEntry |
Protected Member Functions | |
| virtual void | markInternalItemsAsReadOnly (DtVariableBindingsList *) |
| There are certain items that are kept in internal structures that are written out directly to the environment. | |
| virtual const DtReaderWriter * | findVariable (const DtString &var, const DtReaderWriter *rw) const |
| virtual void | loadSystemFilesFromDirectory (const QString &directoryName, const DtVariableBindingsList &variableBindings) |
| virtual void | addVariableReferences (DtReaderWriter *source, DtRwVariableBindings *toBindings) const |
| virtual void | cleanup () |
| virtual bool | saveForceHostility (const DtFilename &filename) |
| virtual bool | warned (const DtFilename &) |
| virtual void | removeEntityFromSubObjects (const DtObjectType &) |
| virtual void | mergeFavoritesIntoModelSet (DtModelSet *favorites, DtModelSet *set) |
| virtual DtVariableBindingsList * | copyBindingsList (const DtVariableBindingsList *orig) const |
| virtual EntityData * | createParameterDataFrom (DtVrfObjectParameters *) const |
| virtual bool | updateFromPlatform (EntityData *data, const DtReaderWriter *oldRegData, DtEnvironmentSP env, DtEnvValueSP objectNode) const |
| Add any new variables. Returns true if variable added. | |
| virtual bool | traverseRwObject (const DtReaderWriter *rwObject, DtEnvironmentSP env, DtEnvValueSP objectNode) const |
| Check for adding in system and other missing variables. | |
| virtual void | addElementFromSystemBinding (DtEnvironmentSP env, DtEnvValueSP parentElement, DtSystemParameterData *paramData) const |
| virtual DtFormationTable * | formationTableFor (DtEnvironmentSP, DtEnvValueSP objectNode) const |
| virtual void | updateFormationTable (DtEnvironmentSP, DtEnvValueSP objectNode, const DtFormationTable &) |
| Will also write out formation files. | |
| virtual std::vector< EntityData * > | addDataFromFile (const DtString &file, DtSimulationModelSet *set, bool isMasterSMS, bool signalAddition=true, bool isTemplate=false) |
| virtual DtModelSetEntry * | addModelSetEntryFromEnvironment (DtEnvironmentSP, DtEnvValueSP node) |
| virtual DtModelSetEntry * | addModelSetEntryFromSimulationObjectGroup (EntityData *) |
| virtual void | addToInternalCategories (DtModelSetEntry *entry, bool isInMasterSMS) |
| virtual void | addEntityDataEntry (EntityData *, bool signal=true) |
| virtual void | removeEntityDataEntry (EntityData *, bool signal=true) |
| virtual ParametersMap::const_iterator | findAvailablePlatform (const DtString &platform) const |
| Platform is fullname with directory or just name. | |
| virtual ParametersData::const_iterator | findAvailableParameter (const DtString &platform) const |
| virtual ParametersData::const_iterator | findAvailableParameterFromFile (const DtFilename &platform) const |
| virtual ParametersData::const_iterator | findAvailableParameterType (const DtString ¶meterType) const |
| virtual void | swapCurrentEntry (EntityData *, DtModelSetEntry *) |
| Removes old value from internal entity data to entry map and replaces with new. | |
| virtual DtString | filenameFromEntityName (const DtString &name) const |
| Converts an entity name to a file name. | |
| virtual DtString | uniqueEntityFilename (const DtString &name) const |
| Gives a unique name given the filenameFromEntityName. | |
| virtual void | loadVisuals (DtSimulationModelSet *, bool createIfDoesNotExist=false) |
| Loads visual files from simulation model set. If does not exist loads default element definitions and then creates local visual files. | |
| virtual bool | updateAndAddMatchTypeVisuals (EntityData *baseType, const DtEntityType &matchType) |
| Adds in visuals from the base type given the match type, if the match type does not exist in the visuals. | |
| virtual bool | removeMatchingTypeFromVisuals (const DtEntityType &matchType) |
| Removes the matching type from the visuals, if it exists in the map. Will not fully remove until all match types have been removed. | |
Private Member Functions | |
| DtSimulationModelSetLoader (const DtSimulationModelSetLoader &) | |
| DtSimulationModelSetLoader & | operator= (const DtSimulationModelSetLoader &) |
| typedef std::map<DtString, DtVrfObjectParameters*> DtSimulationModelSetLoader::ParametersMap |
| typedef boost::shared_ptr<EnvironmentContainer> DtSimulationModelSetLoader::EnvironmentContainerSP |
| typedef std::map<std::string, EntityData*> DtSimulationModelSetLoader::ParametersData |
|
protected |
| DtSimulationModelSetLoader::DtSimulationModelSetLoader | ( | makVrv::DtDe & | ) |
default constructor
|
virtual |
|
private |
|
virtual |
|
virtual |
|
static |
|
static |
|
virtual |
|
virtual |
|
private |
|
virtual |
Whether or not to deal with visuals.
|
virtual |
Returns true if there is a file named with the supplied file. Strips paths and such.
|
virtual |
Copies the data file from the specified location into the simulation model set data directory and loads it into the gui.
If there is a matching named file then it will not be added
|
virtual |
Adds a new simulation object group file (blank) to the system. If group exists returns false.
|
virtual |
Adds a new randomized object with the given name to the system.
|
virtual |
Whether or not SMS is read only.
|
virtual |
|
virtual |
Set to false to not save the state of the read only flag into the simulation model set on save.
|
virtual |
|
virtual |
Checks to see if simulation object group exists.
|
virtual |
Checks to see if randomized object exists.
|
virtual |
Adds a new simulation object group based on an existing one and copies all object group files.
If the newName already exists returns false
|
virtual |
|
virtual |
Returns the platform of the particular item.
|
virtual |
Returns the ui filename of the individual entityType.
|
virtual |
Returns the simulation model set this entity type is in.
|
virtual |
Returns the platform file.
|
virtual |
Returns the platform key for the given entity key.
|
virtual |
Returns the display name of the platform, if it exists, else returns the platformFileType.
|
virtual |
Returns the display description of the platform, if it exists, else returns the platform file name.
|
virtual |
Given platforms and systems, attempt to add missing variables to the correct sections. Returns true if any changes made.
|
virtual |
| DtFilename DtSimulationModelSetLoader::getSystemDirectory | ( | ) | const |
| DtFilename DtSimulationModelSetLoader::getNavDataDirectory | ( | ) | const |
| DtFilename DtSimulationModelSetLoader::getFormationDirectory | ( | ) | const |
| DtFilename DtSimulationModelSetLoader::getGuiDirectory | ( | ) | const |
| DtFilename DtSimulationModelSetLoader::path | ( | ) | const |
|
inline |
Returns the filename of the current simulation model set file.
References DtSimulationModelSet::filename(), and mySimulationModelSet.
|
virtual |
|
virtual |
|
virtual |
Loads all the data files in the data directory of the simulation model set.
If fromMasterSMS is true this is being loaded from the main containing SMS
|
virtual |
Loads the simulation object group files.
|
virtual |
Reloads the existing simulation object group. If the simulation object group does not exist will do nothing.
|
virtual |
Loads template files from the given directory. Templates are used in the new model dialog if not created from existing.
|
virtual |
Adds a new template the the internal list and immediately saves it to the templates directory.
|
virtual |
|
virtual |
Loads all the parameter files in the parameter directory of the simulation model set.
|
virtual |
Creates the model set list from the loaded data files.
|
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 |
Returns the simulation model set file that this entity would come from if loaded into a scenario.
|
virtual |
Returns a model set entry based on the environment that contains a guiInformation entry.
|
virtual |
|
virtual |
Returns true if the model set entry has the given keyword.
|
virtual |
Reverts the data to previous settings.
|
virtual |
Returns the variable bindings for the given object type.
|
virtual |
Returns the data for the entity data that has the exact model set entry address.
|
virtual |
Returns true if an original (unmodified) model contains the object type or if a modified version does.
|
virtual |
Returns true if this item is a simulation object group.
|
virtual |
Returns true if an original (unmodified) model contains the object name or if a modified version does.
|
virtual |
|
virtual |
|
inlinevirtual |
|
virtual |
Given an object type create source an backup variables of the given RW type (if it exists).
Returns false if no rw type to match or named item already exists
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Schedules the model for "deletion".
|
virtual |
|
virtual |
|
virtual |
Changes object type on model and data. Returns true if successful.
|
virtual |
Changes match type on data. Returns true if successful.
|
virtual |
|
virtual |
Updates the model set entry information into the modified model data's gui information section.
If one does not exist, creates one
|
virtual |
Updates data about systems (adds, removes or modifies)
|
virtual |
Returns all the model set entries that share the given system.
|
virtual |
Loads the specified system file into the system database.
|
virtual |
Updates all the data from the bindings into the modified data.
|
virtual |
Converts the registry data to the XML environment format.
|
virtual |
Removes the system of the given name from the supplied environment.
|
virtual |
Adds the given system to the environment.
|
virtual |
|
virtual |
|
inline |
References myDefaultCategories.
|
inline |
References myDefaultCategories.
|
virtual |
|
inline |
References myAutoTagInformation.
|
inline |
References myAutoTagInformation.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inline |
References myDefaultOverlayLayers.
|
inline |
References myDefaultOverlayLayers.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inline |
References myDefaultOverlayLayers.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inline |
References myDefaultDeployedCountries.
|
inline |
References myDefaultDeployedCountries.
|
inline |
References myDefaultDeployedCountries.
|
virtual |
|
virtual |
|
virtual |
Tells the system to reset all visuals.
|
virtual |
Returns new variable bindings for the specified system.
|
virtual |
Returns a list of templates that can be used for the given entity kind. The key is the label.
|
virtual |
|
virtual |
Adds a new entity of the given type based on the supplied type.
Will create a clone of the data found. If no data exists no entity will be created
|
virtual |
Adds a new entity of the given the supplied platform type.
Will add all the variables from the platform as starting points for the new entity
| DtModelSetEntry* DtSimulationModelSetLoader::addNewEntity | ( | EntityData * | baseData, |
| const DtObjectType & | newType, | ||
| const DtString & | name, | ||
| const DtRwNLengthStringVector & | categories, | ||
| const DtString & | uniqueID, | ||
| const makVrv::DtUnicode & | elementDefinition = makVrv::DtUnicode::fromAscii("") |
||
| ) |
Adds a new entity given the base data. Will clone the data and add new based on it.
|
virtual |
Removes the current system from the system database.
|
virtual |
|
virtual |
|
virtual |
|
static |
|
virtual |
Scans all subordinate lists for the old type and changes it to the new type.
|
virtual |
|
virtual |
|
virtual |
Returns the element definition for the given type.
|
virtual |
Returns a list of subordinate objects associated with the given entity type modified environment.
|
virtual |
|
virtual |
Updates the subordinate objects into the given object's modified environment.
|
virtual |
|
virtual |
Updates modified formation table.
|
virtual |
Returns a list of embarkation slots and all relevant information about embarkation.
|
virtual |
|
virtual |
Updates the embarkation slots into the given object's modified environment.
|
virtual |
|
virtual |
Returns di-guy information for the specified object.
|
virtual |
Updates di-guy information for the specified object.
|
virtual |
Returns sensor signature information for the specified object.
|
virtual |
|
virtual |
Updates sensor signature information information for the specified object.
|
virtual |
|
virtual |
Returns a list of formation table objects associated with the given entity type modified environment.
|
virtual |
|
virtual |
Returns bounding volume for the given object.
|
virtual |
Returns true if this object is an aggregate.
|
inline |
|
inline |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Walks through all the data and saves it out. Will make current data the modified data.
|
virtual |
Saves out the favorites file.
|
virtual |
Given the parameter type, returns the first item that matches that type's object type.
|
virtual |
Adds a new item to the internal items list. This is the name of the reader/writer variable.
|
virtual |
Returns a list of support points (left/right/other) for the given entity.
Changing the reader/writer values supplied will change the modified values of the entity
|
virtual |
Returns a new entity type that is unique based on the supplied type.
|
virtual |
Returns the system name (from the meta data) for the give system.
|
virtual |
Returns true if the loaded SMS has factory checksums associated with it.
|
virtual |
Returns the factory checksums.
|
inline |
References myModelSet.
|
inline |
References myModelSet.
|
virtual |
|
inline |
References mySimulationModelSet.
|
inline |
References mySimulationModelSet.
|
inline |
References mySimulationModelSet.
|
inline |
References myParameterFilename.
| const DtComponentSystemDatabase* DtSimulationModelSetLoader::systemDatabase | ( | ) | const |
| DtFilename DtSimulationModelSetLoader::modelSetDirectory | ( | ) | const |
|
virtual |
|
inline |
References myAllForces.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protectedvirtual |
There are certain items that are kept in internal structures that are written out directly to the environment.
These items also appear in the bindings list. This routine will find those items and mark them as read-only. Items can be added to this list by calling the "addInternalItem" method
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Add any new variables. Returns true if variable added.
|
protectedvirtual |
Check for adding in system and other missing variables.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Will also write out formation files.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Platform is fullname with directory or just name.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Removes old value from internal entity data to entry map and replaces with new.
|
protectedvirtual |
Converts an entity name to a file name.
|
protectedvirtual |
Gives a unique name given the filenameFromEntityName.
|
protectedvirtual |
Loads visual files from simulation model set. If does not exist loads default element definitions and then creates local visual files.
|
protectedvirtual |
Adds in visuals from the base type given the match type, if the match type does not exist in the visuals.
|
protectedvirtual |
Removes the matching type from the visuals, if it exists in the map. Will not fully remove until all match types have been removed.
| boost::signal<void ()> DtSimulationModelSetLoader::signal_preloadSimulationModelSet |
| boost::signal<void ()> DtSimulationModelSetLoader::signal_simulationModelSetLoaded |
| boost::signal<void (std::vector<EntityData*>)> DtSimulationModelSetLoader::signal_newDataFileAdded |
| boost::signal<void (EntityData*)> DtSimulationModelSetLoader::signal_entityEntryAboutToBeRemoved |
| boost::signal<void (EntityData*)> DtSimulationModelSetLoader::signal_entityEntryAdded |
| boost::signal<void (EntityData*)> DtSimulationModelSetLoader::signal_visualMappingsModified |
| boost::signal<void ()> DtSimulationModelSetLoader::signal_resetVisuals |
| boost::signal<void (bool)> DtSimulationModelSetLoader::signal_readOnlyChanged |
|
protected |
|
protected |
Referenced by hasSimulationModelSet(), simulationModelSet(), and simulationModelSetFilename().
|
protected |
|
protected |
Referenced by parameterFilename().
|
protected |
Referenced by modelSet().
|
protected |
Referenced by allForces().
|
protected |
Referenced by defaultCategories().
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by addDefaultOverlayLayer(), defaultOverlayLayers(), and setDefaultOverlayLayers().
|
protected |
Referenced by addDefaultDeployedCountry(), defaultDeployedCountries(), and setDefaultDeployedCountries().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by autoTagInformation().
|
protected |
|
protected |
|
protected |