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

DtModelPreloadManager is responsible for managing models to preload and tracking loaded models that were not in the preload list.

Inheritance diagram for makVrv::DtModelPreloadManager:
Inheritance graph
[legend]

Public Types

typedef boost::unordered_set
< std::string > 
ModelDefinitionMap
 
typedef boost::unordered_set
< std::string > 
ModelSchemaMap
 

Public Member Functions

virtual ~DtModelPreloadManager ()
 
virtual void addModelDefinitionToPreloadList (const std::string &modelDefName)
 
virtual void removeModelDefinitionFromPreloadList (const std::string &modelDefName)
 
virtual void addModelDefinitionToDiscoveredModelList (const std::string &modelDefName)
 
virtual void removeModelDefinitionFromDiscoveredModelList (const std::string &modelDefName)
 
virtual void addSchemaToValidList (const std::string &schemaName)
 
virtual void removeSchemaFromValidList (const std::string &schemaName)
 
virtual bool isValidModelDefinition (const std::string &modelDefName)
 
virtual bool isValidModelSchema (const std::string &schemaName)
 
const std::string & preloadFilename () const
 
virtual void setPreloadFilename (const std::string &filename)
 
const std::string & discoveredModelsFilename () const
 
void setDiscoveredModelsFilename (const std::string &filename)
 
virtual void clearPreloadList ()
 
virtual void loadDefaults (bool loadOnlyFactorSettings=false)
 
virtual void saveAsDefaults ()
 
virtual void exportSettings (const std::string &filename)
 
virtual void exportDiscoveredSettings (const std::string &filename)
 
virtual void importSettings (const std::string &filename)
 
virtual void mergeSettings (const std::string &filename)
 
virtual DtBackupInterfacebackup ()
 
virtual void setModelPreloadFromRecord (const makArchives::DtModelPreloadSetRecord &rec)
 
virtual void getModelPreloadRecord (makArchives::DtModelPreloadSetRecord &rec) const
 
virtual void getDiscoveredModelPreloadRecord (makArchives::DtModelPreloadSetRecord &rec) const
 
bool isInPreloadList (const std::string &modelDefName) const
 
virtual bool preloadModels ()
 
virtual void slot_modelCreated (DtModelInstance &modelInstance)
 
virtual void slot_displayEngineAdded (const DtDeRecord &deRec)
 
virtual void slot_quit ()
 
const ModelDefinitionMappreloadModelMap () const
 
void setSettingsManager (DtModelPreloadSettingsManager *settingsMgr)
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 
virtual ~DtVirtualBaseClass ()
 

Static Public Member Functions

static DtModelPreloadManagerinstance (DtDe &de)
 

Protected Member Functions

 DtModelPreloadManager (DtDe &de)
 

Protected Attributes

DtDemyDe
 
DtModelPreloaderAgent * myAgent
 
DtMetaFileManagermyMetaFileManager
 
std::string myPreloadModelFilename
 
std::string myDiscoveredModelFilename
 
ModelDefinitionMap myPreloadModelMap
 
ModelDefinitionMap myDiscoveredModelMap
 
ModelSchemaMap myModelSchemaMap
 
DtModelPreloadSettingsManager * mySettingsManager
 

Friends

class DtModelPreloadManagerCreator
 

Member Typedef Documentation

typedef boost::unordered_set<std::string> makVrv::DtModelPreloadManager::ModelDefinitionMap
typedef boost::unordered_set<std::string> makVrv::DtModelPreloadManager::ModelSchemaMap

Constructor & Destructor Documentation

virtual makVrv::DtModelPreloadManager::~DtModelPreloadManager ( )
virtual

DTOR.

makVrv::DtModelPreloadManager::DtModelPreloadManager ( DtDe de)
protected

CTOR.

Member Function Documentation

virtual void makVrv::DtModelPreloadManager::addModelDefinitionToPreloadList ( const std::string &  modelDefName)
virtual

Add the model definition to the preload list.

virtual void makVrv::DtModelPreloadManager::removeModelDefinitionFromPreloadList ( const std::string &  modelDefName)
virtual

Remove the model definition from the preload list.

virtual void makVrv::DtModelPreloadManager::addModelDefinitionToDiscoveredModelList ( const std::string &  modelDefName)
virtual

Add the model definition to the discovered model list.

virtual void makVrv::DtModelPreloadManager::removeModelDefinitionFromDiscoveredModelList ( const std::string &  modelDefName)
virtual

Remove the model definition from the discovered model list.

virtual void makVrv::DtModelPreloadManager::addSchemaToValidList ( const std::string &  schemaName)
virtual

Add schema to the list of valid schema for preloading.

virtual void makVrv::DtModelPreloadManager::removeSchemaFromValidList ( const std::string &  schemaName)
virtual

Remove schema from the list of valid schema for preloading.

virtual bool makVrv::DtModelPreloadManager::isValidModelDefinition ( const std::string &  modelDefName)
virtual

Return true if schema of the model definition is a valid one for preloading.

virtual bool makVrv::DtModelPreloadManager::isValidModelSchema ( const std::string &  schemaName)
virtual

Return true if schema is a valid one for preloading.

const std::string& makVrv::DtModelPreloadManager::preloadFilename ( ) const

Get the filename containing the model definitions to preload.

virtual void makVrv::DtModelPreloadManager::setPreloadFilename ( const std::string &  filename)
virtual

Set the filename containing the model definitions to preload.

const std::string& makVrv::DtModelPreloadManager::discoveredModelsFilename ( ) const

Get the filename containing the models loaded that were not in the preload model list.

void makVrv::DtModelPreloadManager::setDiscoveredModelsFilename ( const std::string &  filename)

Set the filename containing the models loaded that were not in the preload model list.

virtual void makVrv::DtModelPreloadManager::clearPreloadList ( )
virtual

Clears the preload model list.

virtual void makVrv::DtModelPreloadManager::loadDefaults ( bool  loadOnlyFactorSettings = false)
virtual

Load the default settings.

virtual void makVrv::DtModelPreloadManager::saveAsDefaults ( )
virtual

Called to save the current settings as the default settings.

virtual void makVrv::DtModelPreloadManager::exportSettings ( const std::string &  filename)
virtual

Exports the current settings to a file.

virtual void makVrv::DtModelPreloadManager::exportDiscoveredSettings ( const std::string &  filename)
virtual

Exports the current discovered settings to a file.

virtual void makVrv::DtModelPreloadManager::importSettings ( const std::string &  filename)
virtual

Imports the current settings from a file.

virtual void makVrv::DtModelPreloadManager::mergeSettings ( const std::string &  filename)
virtual

Imports settings from a file merging with the current settings.

virtual DtBackupInterface* makVrv::DtModelPreloadManager::backup ( )
virtual

Get the settings back for the preload model list.

virtual void makVrv::DtModelPreloadManager::setModelPreloadFromRecord ( const makArchives::DtModelPreloadSetRecord rec)
virtual

Set the model preload list in the manager from a record.

virtual void makVrv::DtModelPreloadManager::getModelPreloadRecord ( makArchives::DtModelPreloadSetRecord rec) const
virtual

Get a record containing the model preload list in the manager.

virtual void makVrv::DtModelPreloadManager::getDiscoveredModelPreloadRecord ( makArchives::DtModelPreloadSetRecord rec) const
virtual

Get a record containing the model preload list in the manager.

bool makVrv::DtModelPreloadManager::isInPreloadList ( const std::string &  modelDefName) const

Returns true of model is in the model preload list.

virtual bool makVrv::DtModelPreloadManager::preloadModels ( )
virtual

Preload all models in the preload model list.

virtual void makVrv::DtModelPreloadManager::slot_modelCreated ( DtModelInstance modelInstance)
virtual

Called when a model instance is created.

virtual void makVrv::DtModelPreloadManager::slot_displayEngineAdded ( const DtDeRecord deRec)
virtual

Receives notification that a new De has been connected for propagation of preloaded models display engines.

virtual void makVrv::DtModelPreloadManager::slot_quit ( )
virtual

Receives notification that a new De has been connected.

static DtModelPreloadManager& makVrv::DtModelPreloadManager::instance ( DtDe de)
static

Create and register the DtPreloadModelManager.

const ModelDefinitionMap& makVrv::DtModelPreloadManager::preloadModelMap ( ) const

Get the container of preload models.

void makVrv::DtModelPreloadManager::setSettingsManager ( DtModelPreloadSettingsManager *  settingsMgr)

Friends And Related Function Documentation

friend class DtModelPreloadManagerCreator
friend

Member Data Documentation

DtDe& makVrv::DtModelPreloadManager::myDe
protected
DtModelPreloaderAgent* makVrv::DtModelPreloadManager::myAgent
protected
DtMetaFileManager* makVrv::DtModelPreloadManager::myMetaFileManager
protected
std::string makVrv::DtModelPreloadManager::myPreloadModelFilename
protected
std::string makVrv::DtModelPreloadManager::myDiscoveredModelFilename
protected
ModelDefinitionMap makVrv::DtModelPreloadManager::myPreloadModelMap
protected
ModelDefinitionMap makVrv::DtModelPreloadManager::myDiscoveredModelMap
protected
ModelSchemaMap makVrv::DtModelPreloadManager::myModelSchemaMap
protected
DtModelPreloadSettingsManager* makVrv::DtModelPreloadManager::mySettingsManager
protected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)