![]() |
VR-Forces 5.0.1 Developer's Guide
|
The DtVisualMetaDataManager will use ead 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.

Classes | |
| struct | Mapping |
| struct | Marking |
| struct | OrderedInfo |
Public Types | |
| typedef std::map< std::string, Mapping > | MarkingMappings |
| typedef std::map< std::string, Marking > | Markings |
Public Member Functions | |
| 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 >()) |
Static Public Member Functions | |
| static DtVisualMetaDataManager * | setInstance (DtVisualMetaDataManager *) |
| static DtVisualMetaDataManager * | instance () |
Protected Types | |
| typedef std::map< std::string, Markings > | StoredMarkings |
Protected Member Functions | |
| 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 | |
| StoredMarkings | myStoredMarkings |
| tbb::spin_rw_mutex | myStoredMarkingsMutex |
Static Protected Attributes | |
| static DtVisualMetaDataManager * | theInstance |
| typedef std::map<std::string, Mapping> DtVisualMetaDataManager::MarkingMappings |
| typedef std::map<std::string, Marking> DtVisualMetaDataManager::Markings |
|
protected |
| DtVisualMetaDataManager::DtVisualMetaDataManager | ( | ) |
CTOR.
| DtVisualMetaDataManager::DtVisualMetaDataManager | ( | const DtVisualMetaDataManager & | ) |
Copy Constructor.
|
virtual |
Destructor.
|
virtual |
|
virtual |
Clears out markings.
|
virtual |
Given the variable data rules, return a map that contains the linkage and the value for that linkage to be set.
|
static |
Returns the current instance.
|
static |
If instance does not exist will create a new version of this class.
|
protectedvirtual |
Given the list of potential items to select from, return an in order list of the items to select.
|
protectedvirtual |
Given the ordered list return an randomly selected item.
|
protectedvirtual |
Given the ordered list return an randomly selected item as an exponential floor(num_items * pow(rand(0 ... 1), 2));.
|
protectedvirtual |
Returns the document for the given filename. User must close the document handle returned to prevent leak.
|
protectedvirtual |
Assuming a variant, given the linkage, return the first item.
|
protectedvirtual |
Assuming a subvariant, given the linkage, return the first item that satisfies the parent variant. If no parent variant returns the first selection.
|
staticprotected |
|
protected |
|
protected |