![]() |
VR-Forces 4.5 Class Documentation
|
DtModelPreloadManager is responsible for managing models to preload and tracking loaded models that were not in the preload list. More...

Public Types | |
| typedef boost::unordered_set < std::string > | ModelDefinitionMap |
| typedef boost::unordered_set < std::string > | ModelSchemaMap |
Public Member Functions | |
| ~DtModelPreloadManager () | |
| DTOR. | |
| virtual void | addModelDefinitionToPreloadList (const std::string &modelDefName) |
| Add the model definition to the preload list. | |
| virtual void | removeModelDefinitionFromPreloadList (const std::string &modelDefName) |
| Remove the model definition from the preload list. | |
| virtual void | addModelDefinitionToDiscoveredModelList (const std::string &modelDefName) |
| Add the model definition to the discovered model list. | |
| virtual void | removeModelDefinitionFromDiscoveredModelList (const std::string &modelDefName) |
| Remove the model definition from the discovered model list. | |
| virtual void | addSchemaToValidList (const std::string &schemaName) |
| Add schema to the list of valid schema for preloading. | |
| virtual void | removeSchemaFromValidList (const std::string &schemaName) |
| Remove schema from the list of valid schema for preloading. | |
| virtual bool | isValidModelDefinition (const std::string &modelDefName) |
| Return true if schema of the model definition is a valid one for preloading. | |
| virtual bool | isValidModelSchema (const std::string &schemaName) |
| Return true if schema is a valid one for preloading. | |
| const std::string & | preloadFilename () const |
| Get the filename containing the model definitions to preload. | |
| virtual void | setPreloadFilename (const std::string &filename) |
| Set the filename containing the model definitions to preload. | |
| const std::string & | discoveredModelsFilename () const |
| Get the filename containing the models loaded that were not in the preload model list. | |
| void | setDiscoveredModelsFilename (const std::string &filename) |
| Set the filename containing the models loaded that were not in the preload model list. | |
| virtual void | clearPreloadList () |
| Clears the preload model list. | |
| virtual void | loadDefaults (bool loadOnlyFactorSettings=false) |
| Load the default settings. | |
| virtual void | saveAsDefaults () |
| Called to save the current settings as the default settings. | |
| virtual void | exportSettings (const std::string &filename) |
| Exports the current settings to a file. | |
| virtual void | exportDiscoveredSettings (const std::string &filename) |
| Exports the current discovered settings to a file. | |
| virtual void | importSettings (const std::string &filename) |
| Imports the current settings from a file. | |
| virtual void | mergeSettings (const std::string &filename) |
| Imports settings from a file merging with the current settings. | |
| virtual DtBackupInterface * | backup () |
| Get the settings back for the preload model list. | |
| virtual void | setModelPreloadFromRecord (const makArchives::DtModelPreloadSetRecord &rec) |
| Set the model preload list in the manager from a record. | |
| virtual void | getModelPreloadRecord (makArchives::DtModelPreloadSetRecord &rec) const |
| Get a record containing the model preload list in the manager. | |
| virtual void | getDiscoveredModelPreloadRecord (makArchives::DtModelPreloadSetRecord &rec) const |
| Get a record containing the model preload list in the manager. | |
| bool | isInPreloadList (const std::string &modelDefName) const |
| Returns true of model is in the model preload list. | |
| virtual bool | preloadModels () |
| Preload all models in the preload model list. | |
| virtual void | slot_modelCreated (DtModelInstance &modelInstance) |
| Called when a model instance is created. | |
| virtual void | slot_displayEngineAdded (const DtDeRecord &deRec) |
| Receives notification that a new De has been connected for propagation of preloaded models display engines. | |
| virtual void | slot_quit () |
| Receives notification that a new De has been connected. | |
| const ModelDefinitionMap & | preloadModelMap () const |
| Get the container of preload models. | |
| void | setSettingsManager (DtModelPreloadSettingsManager *settingsMgr) |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. | |
Static Public Member Functions | |
| static DtModelPreloadManager & | instance (DtDe &de) |
| Create and register the DtPreloadModelManager. | |
Protected Member Functions | |
| DtModelPreloadManager (DtDe &de) | |
| CTOR. | |
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 |
DtModelPreloadManager is responsible for managing models to preload and tracking loaded models that were not in the preload list.
| typedef boost::unordered_set<std::string> makVrv::DtModelPreloadManager::ModelDefinitionMap |
| typedef boost::unordered_set<std::string> makVrv::DtModelPreloadManager::ModelSchemaMap |
| makVrv::DtModelPreloadManager::~DtModelPreloadManager | ( | ) |
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 |