VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
makVrf::DtVrfVisualMetaDataManager Class Reference

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.

Inheritance diagram for makVrf::DtVrfVisualMetaDataManager:
Inheritance graph
[legend]

Public Member Functions

 DtVrfVisualMetaDataManager (makVrv::DtDe &)
 
 DtVrfVisualMetaDataManager (const DtVrfVisualMetaDataManager &)
 
virtual ~DtVrfVisualMetaDataManager ()
 
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::vector< makVrv::DtSimEntry * > &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 makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 
virtual ~DtVirtualBaseClass ()
 

Static Public Member Functions

static DtVrfVisualMetaDataManagerinstance (makVrv::DtDe &de)
 
static void registerInstance (makVrv::DtDe &de, DtVrfVisualMetaDataManager *object)
 
static std::string uncategorizedCode ()
 
static std::string allCode ()
 

Protected Types

typedef std::map< std::string,
std::string > 
SelectionsByLinkage
 

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 Attributes

makVrv::DtDemyDe
 
std::string mySelectedCountry
 
SelectionsByLinkage mySelectionsByLinkage
 

Additional Inherited Members

Member Typedef Documentation

typedef std::map<std::string, std::string> makVrf::DtVrfVisualMetaDataManager::SelectionsByLinkage
protected

Constructor & Destructor Documentation

makVrf::DtVrfVisualMetaDataManager::DtVrfVisualMetaDataManager ( makVrv::DtDe )
makVrf::DtVrfVisualMetaDataManager::DtVrfVisualMetaDataManager ( const DtVrfVisualMetaDataManager )
virtual makVrf::DtVrfVisualMetaDataManager::~DtVrfVisualMetaDataManager ( )
virtual

Destructor.

Member Function Documentation

static DtVrfVisualMetaDataManager& makVrf::DtVrfVisualMetaDataManager::instance ( makVrv::DtDe de)
static

Returns instance of the DtActiveSonarModeRequestor.

static void makVrf::DtVrfVisualMetaDataManager::registerInstance ( makVrv::DtDe de,
DtVrfVisualMetaDataManager object 
)
static

Register a subclass version of this class. the instance() function will return the newly registered version once this has been called.

virtual Markings makVrf::DtVrfVisualMetaDataManager::visualMetaDataFor ( const DtEntityType &  )
virtual
virtual std::vector<DtVrfModelManager::ModelInformation> makVrf::DtVrfVisualMetaDataManager::modelDefinitionsFor ( const DtEntityType &  objectType) const
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 DtFilename makVrf::DtVrfVisualMetaDataManager::metaDataFileFor ( const DtEntityType &  ) const
virtual

Returns the meta data file that is used for the given entity type.

virtual std::map<std::string, std::string> makVrf::DtVrfVisualMetaDataManager::markingsFromVisualMetaData ( const DtEntityType &  ,
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 annoation and the value for that annotation to be set.

virtual std::map<std::string, std::string> makVrf::DtVrfVisualMetaDataManager::markingsFromVisualMetaData ( const std::vector< DtEntityType > &  ,
bool  skipVariants = false,
const std::map< std::string, std::string > &  variantSelections = std::map< std::string, std::string >() 
)
virtual
virtual Markings makVrf::DtVrfVisualMetaDataManager::visualMetaDataFor ( const std::vector< DtEntityType > &  types,
bool  unionOf = true 
)
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 Markings makVrf::DtVrfVisualMetaDataManager::visualMetaDataFor ( const DtEntityType &  types,
bool  unionOf 
)
virtual
virtual std::map<std::string, std::string> makVrf::DtVrfVisualMetaDataManager::subvariantToVariantMap ( const std::vector< DtEntityType > &  ) const
virtual

Returns a map of all subvariants to variants in the given entity type list.

virtual std::map<std::string, std::string> makVrf::DtVrfVisualMetaDataManager::subvariantToVariantMap ( const DtEntityType &  ) const
virtual
virtual bool makVrf::DtVrfVisualMetaDataManager::isCountryLinkage ( const std::string &  ) const
virtual

Returns true if the curreent linkage can be considered a country linkage.

virtual void makVrf::DtVrfVisualMetaDataManager::setSelectedCountry ( const std::string &  )
virtual

Special case for variant selection. Will set the country that should be used if there is no country by force.

virtual std::string makVrf::DtVrfVisualMetaDataManager::selectedCountry ( int  force,
std::string &  forceCountry 
) const
virtual

Force country will be filled in for the country selected by the force. This might be different than the last selected country.

virtual void makVrf::DtVrfVisualMetaDataManager::setSelectionByLinkage ( const std::string &  linkage,
const std::string &  marking 
)
virtual

Sets a selection by the linkage name.

virtual std::string makVrf::DtVrfVisualMetaDataManager::selectionByLinkage ( const std::string &  linkage) const
virtual
static std::string makVrf::DtVrfVisualMetaDataManager::uncategorizedCode ( )
static

The internal code that will select "Uncategorized".

static std::string makVrf::DtVrfVisualMetaDataManager::allCode ( )
static

The internal code that will select "All".

virtual std::map<std::string, std::string> makVrf::DtVrfVisualMetaDataManager::markingsFor ( const std::vector< makVrv::DtSimEntry * > &  data) const
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 std::map<std::string, std::string> makVrf::DtVrfVisualMetaDataManager::markingsFor ( makVrv::DtUniqueID  id) const
virtual
virtual std::map<std::string, std::string> makVrf::DtVrfVisualMetaDataManager::markingsFor ( const std::vector< makVrv::DtUniqueID > &  ) const
virtual
virtual bool makVrf::DtVrfVisualMetaDataManager::intersectMarkings ( Markings result,
const Markings source 
) const
protectedvirtual

Returns false if intersection should stop.

virtual void makVrf::DtVrfVisualMetaDataManager::unionMarkings ( Markings result,
const Markings source 
) const
protectedvirtual
virtual std::vector<DtEntityType> makVrf::DtVrfVisualMetaDataManager::typesToCheck ( const std::vector< DtEntityType > &  ) const
protectedvirtual

Member Data Documentation

makVrv::DtDe& makVrf::DtVrfVisualMetaDataManager::myDe
protected
std::string makVrf::DtVrfVisualMetaDataManager::mySelectedCountry
protected
SelectionsByLinkage makVrf::DtVrfVisualMetaDataManager::mySelectionsByLinkage
protected

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

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)