![]() |
VR-Forces Developer's Guide
|
The DtVisualMetaDataManager will use Vantage classes to read meta data files based on the given entity type, and, if the data exists, return a map of linkages and values that can be applied to those linkages to change aspects of the visual model associated with the entity type.

Public Member Functions | |
| DtVrfVisualMetaDataManager (makVrv::DtDe &) | |
| DtVrfVisualMetaDataManager (const DtVrfVisualMetaDataManager &) | |
| virtual | ~DtVrfVisualMetaDataManager () override |
| virtual Markings | visualMetaDataFor (const DtEntityType &) |
| virtual std::vector < DtVrfModelManager::ModelInformation > | modelDefinitionsFor (const DtEntityType &objectType) const |
| virtual DtFilename | metaDataFileFor (const DtEntityType &) const |
| virtual std::map< std::string, std::string > | markingsFromVisualMetaData (const DtEntityType &, bool skipVariants=false, const std::map< std::string, std::string > &variantSelections=std::map< std::string, std::string >()) |
| virtual std::map< std::string, std::string > | markingsFromVisualMetaData (const std::vector< DtEntityType > &, bool skipVariants=false, const std::map< std::string, std::string > &variantSelections=std::map< std::string, std::string >()) |
| virtual Markings | visualMetaDataFor (const std::vector< DtEntityType > &types, bool unionOf=true) |
| virtual Markings | visualMetaDataFor (const DtEntityType &types, bool unionOf) |
| virtual std::map< std::string, std::string > | subvariantToVariantMap (const std::vector< DtEntityType > &) const |
| virtual std::map< std::string, std::string > | subvariantToVariantMap (const DtEntityType &) const |
| virtual bool | isCountryLinkage (const std::string &) const |
| virtual void | setSelectedCountry (const std::string &) |
| virtual std::string | selectedCountry (int force, std::string &forceCountry) const |
| virtual void | setSelectionByLinkage (const std::string &linkage, const std::string &marking) |
| virtual std::string | selectionByLinkage (const std::string &linkage) const |
| virtual std::map< std::string, std::string > | markingsFor (const std::set< makVrv::DtUniqueID > &data) const |
| virtual std::map< std::string, std::string > | markingsFor (makVrv::DtUniqueID id) const |
| virtual std::map< std::string, std::string > | markingsFor (const std::vector< makVrv::DtUniqueID > &) const |
Public Member Functions inherited from DtVisualMetaDataManager | |
| DtVisualMetaDataManager () | |
| DtVisualMetaDataManager (const DtVisualMetaDataManager &) | |
| virtual | ~DtVisualMetaDataManager () |
| virtual Markings | visualMetaDataFor (const DtFilename &metaDataFile, const DtRwVisualMetaData &vmd=DtRwVisualMetaData("")) |
| virtual void | clear () |
| virtual std::map< std::string, std::string > | markingsFromVisualMetaData (const DtFilename &metaDataFile, const DtRwVisualMetaData &, bool skipVariants=false, const std::map< std::string, std::string > &variantSelections=std::map< std::string, std::string >()) |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Static Public Member Functions | |
| static DtVrfVisualMetaDataManager & | instance (makVrv::DtDe &de) |
| static void | registerInstance (makVrv::DtDe &de, DtVrfVisualMetaDataManager *object) |
| static std::string | uncategorizedCode () |
| static std::string | allCode () |
Static Public Member Functions inherited from DtVisualMetaDataManager | |
| static DtVisualMetaDataManager * | setInstance (DtVisualMetaDataManager *) |
| static DtVisualMetaDataManager * | instance () |
| static void | DeleteInstance () |
Protected Types | |
| typedef std::map< std::string, std::string > | SelectionsByLinkage |
Protected Types inherited from DtVisualMetaDataManager | |
| typedef std::map< std::string, Markings > | StoredMarkings |
Protected Member Functions | |
| virtual bool | intersectMarkings (Markings &result, const Markings &source) const |
| virtual void | unionMarkings (Markings &result, const Markings &source) const |
| virtual std::vector< DtEntityType > | typesToCheck (const std::vector< DtEntityType > &) const |
Protected Member Functions inherited from DtVisualMetaDataManager | |
| virtual std::vector< OrderedInfo > | orderFromSelection (const MarkingMappings &, const DtRwNLengthStringVector &) const |
| virtual std::string | randomlySelect (const std::vector< OrderedInfo > &, double topPercentToChoose, double topRandomPrecent) const |
| virtual std::string | weightedExponential (const std::vector< OrderedInfo > &) const |
| virtual void * | loadMetaFile (const DtFilename &) const |
| virtual std::string | variantSelection (const std::string &linkage, const Markings &, const DtRwVisualMetaDataEntry &) const |
| virtual std::string | subvariantSelection (const std::string &linkage, const Markings &, const DtRwVisualMetaData &, const std::map< std::string, std::string > &variantSelections) const |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| std::string | mySelectedCountry |
| SelectionsByLinkage | mySelectionsByLinkage |
Protected Attributes inherited from DtVisualMetaDataManager | |
| StoredMarkings | myStoredMarkings |
| tbb::spin_rw_mutex | myStoredMarkingsMutex |
Additional Inherited Members | |
Public Types inherited from DtVisualMetaDataManager | |
| typedef std::map< std::string, Mapping > | MarkingMappings |
| typedef std::map< std::string, Marking > | Markings |
Static Protected Attributes inherited from DtVisualMetaDataManager | |
| static DtVisualMetaDataManager * | theInstance |
|
protected |
| makVrf::DtVrfVisualMetaDataManager::DtVrfVisualMetaDataManager | ( | makVrv::DtDe & | ) |
| makVrf::DtVrfVisualMetaDataManager::DtVrfVisualMetaDataManager | ( | const DtVrfVisualMetaDataManager & | ) |
|
overridevirtual |
Destructor.
|
static |
Returns instance of the DtActiveSonarModeRequestor.
|
static |
Register a subclass version of this class. the instance() function will return the newly registered version once this has been called.
|
virtual |
Reimplemented in DtSimulationVisualMetaDataManager.
|
virtual |
Returns the model definition for the given entity type. This will only return a value if the objectType represents an object that is in the entity element definition map.
|
virtual |
Returns the meta data file that is used for the given entity type.
|
virtual |
Given the variable data rules, return a map that contains the annoation and the value for that annotation to be set.
|
virtual |
|
virtual |
Returns the visual meta data for the given entity type. If it is an entity to be created will inspect the entity and see if it also has subordinates to be created and gather up those markings. The gather rule will either give intersection or union.
|
virtual |
|
virtual |
Returns a map of all subvariants to variants in the given entity type list.
|
virtual |
|
virtual |
Returns true if the curreent linkage can be considered a country linkage.
|
virtual |
Special case for variant selection. Will set the country that should be used if there is no country by force.
|
virtual |
Force country will be filled in for the country selected by the force. This might be different than the last selected country.
|
virtual |
Sets a selection by the linkage name.
|
virtual |
|
static |
The internal code that will select "Uncategorized".
|
static |
The internal code that will select "All".
|
virtual |
Goes over all the objects in the entries, and, if aggregates, their subordinates, to figure out all the markings that are set. Note that if there are mixed markings then that marking will be whatever the first subordinate or entity checked is.
|
virtual |
|
virtual |
|
protectedvirtual |
Returns false if intersection should stop.
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |