VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes
DtVisualMetaDataManager Class Reference

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. More...

Inheritance diagram for DtVisualMetaDataManager:
Inheritance graph
[legend]

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 ()
 CTOR. More...
 
 DtVisualMetaDataManager (const DtVisualMetaDataManager &)
 Copy Constructor. More...
 
virtual ~DtVisualMetaDataManager ()
 Destructor. More...
 
virtual Markings visualMetaDataFor (const DtFilename &metaDataFile, const DtRwVisualMetaData &vmd=DtRwVisualMetaData(""))
 
virtual void clear ()
 Clears out markings. More...
 
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 >())
 Given the variable data rules, return a map that contains the linkage and the value for that linkage to be set. More...
 

Static Public Member Functions

static DtVisualMetaDataManagersetInstance (DtVisualMetaDataManager *)
 Returns the current instance. More...
 
static DtVisualMetaDataManagerinstance ()
 If instance does not exist will create a new version of this class. More...
 

Protected Types

typedef std::map< std::string,
Markings
StoredMarkings
 

Protected Member Functions

virtual std::vector< OrderedInfoorderFromSelection (const MarkingMappings &, const DtRwNLengthStringVector &) const
 Given the list of potential items to select from, return an in order list of the items to select. More...
 
virtual std::string randomlySelect (const std::vector< OrderedInfo > &, double topPercentToChoose, double topRandomPrecent) const
 Given the ordered list return an randomly selected item. More...
 
virtual std::string weightedExponential (const std::vector< OrderedInfo > &) const
 Given the ordered list return an randomly selected item as an exponential floor(num_items * pow(rand(0 ... 1), 2));. More...
 
virtual void * loadMetaFile (const DtFilename &) const
 Returns the document for the given filename. User must close the document handle returned to prevent leak. More...
 
virtual std::string variantSelection (const std::string &linkage, const Markings &, const DtRwVisualMetaDataEntry &) const
 Assuming a variant, given the linkage, return the first item. More...
 
virtual std::string subvariantSelection (const std::string &linkage, const Markings &, const DtRwVisualMetaData &, const std::map< std::string, std::string > &variantSelections) const
 Assuming a subvariant, given the linkage, return the first item that satisfies the parent variant. More...
 

Protected Attributes

StoredMarkings myStoredMarkings
 

Static Protected Attributes

static DtVisualMetaDataManagertheInstance
 

Detailed Description

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.

Member Typedef Documentation

typedef std::map<std::string, Mapping> DtVisualMetaDataManager::MarkingMappings
typedef std::map<std::string, Marking> DtVisualMetaDataManager::Markings
typedef std::map<std::string, Markings> DtVisualMetaDataManager::StoredMarkings
protected

Constructor & Destructor Documentation

DtVisualMetaDataManager::DtVisualMetaDataManager ( )

CTOR.

DtVisualMetaDataManager::DtVisualMetaDataManager ( const DtVisualMetaDataManager )

Copy Constructor.

virtual DtVisualMetaDataManager::~DtVisualMetaDataManager ( )
virtual

Destructor.

Member Function Documentation

virtual Markings DtVisualMetaDataManager::visualMetaDataFor ( const DtFilename &  metaDataFile,
const DtRwVisualMetaData vmd = DtRwVisualMetaData("") 
)
virtual
virtual void DtVisualMetaDataManager::clear ( )
virtual

Clears out markings.

virtual std::map<std::string, std::string> DtVisualMetaDataManager::markingsFromVisualMetaData ( const DtFilename &  metaDataFile,
const DtRwVisualMetaData ,
bool  skipVariants = false,
const std::map< std::string, std::string > &  variantSelections = std::map< std::string, std::string >() 
)
virtual

Given the variable data rules, return a map that contains the linkage and the value for that linkage to be set.

static DtVisualMetaDataManager* DtVisualMetaDataManager::setInstance ( DtVisualMetaDataManager )
static

Returns the current instance.

static DtVisualMetaDataManager* DtVisualMetaDataManager::instance ( )
static

If instance does not exist will create a new version of this class.

virtual std::vector<OrderedInfo> DtVisualMetaDataManager::orderFromSelection ( const MarkingMappings ,
const DtRwNLengthStringVector  
) const
protectedvirtual

Given the list of potential items to select from, return an in order list of the items to select.

virtual std::string DtVisualMetaDataManager::randomlySelect ( const std::vector< OrderedInfo > &  ,
double  topPercentToChoose,
double  topRandomPrecent 
) const
protectedvirtual

Given the ordered list return an randomly selected item.

virtual std::string DtVisualMetaDataManager::weightedExponential ( const std::vector< OrderedInfo > &  ) const
protectedvirtual

Given the ordered list return an randomly selected item as an exponential floor(num_items * pow(rand(0 ... 1), 2));.

virtual void* DtVisualMetaDataManager::loadMetaFile ( const DtFilename &  ) const
protectedvirtual

Returns the document for the given filename. User must close the document handle returned to prevent leak.

virtual std::string DtVisualMetaDataManager::variantSelection ( const std::string &  linkage,
const Markings ,
const DtRwVisualMetaDataEntry  
) const
protectedvirtual

Assuming a variant, given the linkage, return the first item.

virtual std::string DtVisualMetaDataManager::subvariantSelection ( const std::string &  linkage,
const Markings ,
const DtRwVisualMetaData ,
const std::map< std::string, std::string > &  variantSelections 
) const
protectedvirtual

Assuming a subvariant, given the linkage, return the first item that satisfies the parent variant.

If no parent variant returns the first selection

Member Data Documentation

DtVisualMetaDataManager* DtVisualMetaDataManager::theInstance
staticprotected
StoredMarkings DtVisualMetaDataManager::myStoredMarkings
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)