VR-Forces 4.7 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  Marking

Public Types

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

Public Member Functions

 DtVisualMetaDataManager ()
 CTOR.
 DtVisualMetaDataManager (const DtVisualMetaDataManager &)
 Copy Constructor.
virtual ~DtVisualMetaDataManager ()
 Destructor.
virtual Markings visualMetaDataFor (const DtFilename &metaDataFile)
virtual void clear ()
 Clears out markings.
virtual std::map< std::string,
std::string > 
markingsFromVisualMetaData (const DtFilename &metaDataFile, const DtRwVisualMetaData &)
 Given the variable data rules, return a map that contains the annoation and the value for that annotation to be set.

Static Public Member Functions

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

Protected Types

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

Protected Member Functions

virtual std::vector< std::string > orderFromSelection (const std::map< std::string, int > &, const DtRwNLengthStringVector &) const
 Given the list of potential items to select from, return an in order list of the items to select.
virtual std::string randomlySelect (const std::vector< std::string > &, double topPercentToChoose, double topRandomPrecent) const
 Given the ordered list return an randomly selected item.
virtual std::string weightedExponential (const std::vector< std::string > &) const
 Given the ordered list return an randomly selected item as an exponential floor(num_items * pow(rand(0 ... 1), 2));.
virtual void * loadMetaFile (const DtFilename &) const
 Returns the document for the given filename. User must close the document handle returned to prevent leak.

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, 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)
virtual
virtual void DtVisualMetaDataManager::clear ( )
virtual

Clears out markings.

virtual std::map<std::string, std::string> DtVisualMetaDataManager::markingsFromVisualMetaData ( const DtFilename &  metaDataFile,
const DtRwVisualMetaData  
)
virtual

Given the variable data rules, return a map that contains the annoation and the value for that annotation 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<std::string> DtVisualMetaDataManager::orderFromSelection ( const std::map< std::string, int > &  ,
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< std::string > &  ,
double  topPercentToChoose,
double  topRandomPrecent 
) const
protectedvirtual

Given the ordered list return an randomly selected item.

virtual std::string DtVisualMetaDataManager::weightedExponential ( const std::vector< std::string > &  ) 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.

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 Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)