![]() |
VR-Forces 5.0.1 Developer's Guide
|
DtModelPreloadManager is responsible for managing models to preload and tracking loaded models that were not in the preload list.

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 DtBackupInterface * | backup () |
| 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 ModelDefinitionMap & | preloadModelMap () const |
| void | setSettingsManager (DtModelPreloadSettingsManager *settingsMgr) |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Static Public Member Functions | |
| static DtModelPreloadManager & | instance (DtDe &de) |
Protected Member Functions | |
| DtModelPreloadManager (DtDe &de) | |
Protected Attributes | |
| DtDe & | myDe |
| DtModelPreloaderAgent * | myAgent |
| DtMetaFileManager * | myMetaFileManager |
| std::string | myPreloadModelFilename |
| std::string | myDiscoveredModelFilename |
| ModelDefinitionMap | myPreloadModelMap |
| ModelDefinitionMap | myDiscoveredModelMap |
| ModelSchemaMap | myModelSchemaMap |
| DtModelPreloadSettingsManager * | mySettingsManager |
Friends | |
| class | DtModelPreloadManagerCreator |
| typedef boost::unordered_set<std::string> makVrv::DtModelPreloadManager::ModelDefinitionMap |
| typedef boost::unordered_set<std::string> makVrv::DtModelPreloadManager::ModelSchemaMap |
|
virtual |
DTOR.
|
protected |
CTOR.
|
virtual |
Add the model definition to the preload list.
|
virtual |
Remove the model definition from the preload list.
|
virtual |
Add the model definition to the discovered model list.
|
virtual |
Remove the model definition from the discovered model list.
|
virtual |
Add schema to the list of valid schema for preloading.
|
virtual |
Remove schema from the list of valid schema for preloading.
|
virtual |
Return true if schema of the model definition is a valid one for preloading.
|
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 |
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 |
Clears the preload model list.
|
virtual |
Load the default settings.
|
virtual |
Called to save the current settings as the default settings.
|
virtual |
Exports the current settings to a file.
|
virtual |
Exports the current discovered settings to a file.
|
virtual |
Imports the current settings from a file.
|
virtual |
Imports settings from a file merging with the current settings.
|
virtual |
Get the settings back for the preload model list.
|
virtual |
Set the model preload list in the manager from a record.
|
virtual |
Get a record containing the model preload list in the manager.
|
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 |
Preload all models in the preload model list.
|
virtual |
Called when a model instance is created.
|
virtual |
Receives notification that a new De has been connected for propagation of preloaded models display engines.
|
virtual |
Receives notification that a new De has been connected.
|
static |
Create and register the DtPreloadModelManager.
| const ModelDefinitionMap& makVrv::DtModelPreloadManager::preloadModelMap | ( | ) | const |
Get the container of preload models.
| void makVrv::DtModelPreloadManager::setSettingsManager | ( | DtModelPreloadSettingsManager * | settingsMgr | ) |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |