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 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 | 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 playforms 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 &) |
| | 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 void | changeDefaultCategory (const QString &old, const QString &newCat) |
| virtual void | addDefaultCategories (QComboBox *) |
| void | setDefaultCategories (const QStringList &) |
| void | addDefaultCategory (const QString &) |
| const QStringList & | defaultCategories () const |
| virtual void | revertCategories () |
| virtual bool | hasModifiedCategories () const |
| 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 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 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 formable 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 void | setForceManagerModified (bool) |
| virtual bool | forceManagerModified () 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.
|
| 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) |
| | DtVirtualBaseClass () |
| | Do nothing constructor.
|
| virtual | ~DtVirtualBaseClass () |
| | Virtual do nothing destructor.
|
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) |
| 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.
|