![]() |
VR-Forces Developer's Guide
|
A singleton settings manager, rooted in the display engine, that maintains default values for some cloud layer properties, by cloud type. The properties the manager maintains default values for are length and width. This settings manager is used by the global environment to initialize these properties to their defaults whenever a cloud layer is added or when the cloud layer's type changes. These defaults are needed because clouds created in the global environment are visualized to appear 'infinite'. This effect is achieved by creating cloud layer(s) of some length and width, determined by these default settings, and rendering the cloud layer(s) in every scene view based on the position of the observer(s) we are rendering the scene view(s) for. The cloud layer being rendered with respect to the observer's in the scene make it appear as if clouds are present globally since it appears in every observer's scene view no matter where they are on the globe. Changing the default properties modifies the dimensions of the cloud layers being rendered making them either 1) appear at further distances from the observer (if increasing the dimensions) or 2) reduce the vicinity around the observer the cloud layers appear (if decreasing the dimensions).

Public Types | |
| typedef std::map < DtCloudTypeMapper::CloudType, makArchives::DtCloudLayerRecord > | DtCloudTypeToCloudLayerRecordMap |
Static Public Member Functions | |
| static DtCloudLayerSettingsManager & | instance (DtDe &de) |
Protected Member Functions | |
| DtCloudLayerSettingsManager (DtDe &de) | |
| virtual bool | applyFactoryOverrides (makArchives::DtCloudLayerListRecord &rec) const |
Protected Attributes | |
| DtCloudTypeToCloudLayerRecordMap | myCloudTypeToCloudLayerRecordMap |
Protected Attributes inherited from makVrv::DtCommonBaseSettingsManager< makArchives::DtCloudLayerListRecord > | |
| DtSignalConnectionManager | myConnections |
| std::string | myName |
| std::string | myExtension |
| std::string | myDisplayName |
| bool | myUseDefaultSettingsRecordFlag |
| bool | myAutoSaveFlag |
| DtSettingsBackup * | mySettingsBackup |
| DtDe & | myDe |
Friends | |
| template<typename ManagerClass > | |
| ManagerClass & | defaultManagerInstanceFunction (DtDe &, bool) |
| template<typename ManagerClass > | |
| void | defaultManagerRegisterInstanceFunction (DtDe &, ManagerClass *) |
Additional Inherited Members | |
Protected Types inherited from makVrv::DtBaseSettingsManager< makArchives::DtCloudLayerListRecord > | |
| typedef DtRecordSettingsBackup < DtBaseSettingsManager < makArchives::DtCloudLayerListRecord > , makArchives::DtCloudLayerListRecord > | RecordBackupType |
| typedef std::map<DtCloudTypeMapper::CloudType, makArchives::DtCloudLayerRecord> makVrv::DtCloudLayerSettingsManager::DtCloudTypeToCloudLayerRecordMap |
|
delete |
CTOR.
|
delete |
Copy CTOR.
|
virtual |
Virtual DTOR.
|
protected |
Protected CTOR ( use instance(..) ).
|
delete |
Assignment OP.
|
static |
Get an instance of the settings manager.
| [in] | de | is the display engine root for the singleton. |
| void makVrv::DtCloudLayerSettingsManager::setDefaultLengthForCloudType | ( | DtCloudTypeMapper::CloudType | type, |
| float | defaultLength | ||
| ) |
| float makVrv::DtCloudLayerSettingsManager::defaultLengthForCloudType | ( | DtCloudTypeMapper::CloudType | type | ) | const |
| void makVrv::DtCloudLayerSettingsManager::setDefaultWidthForCloudType | ( | DtCloudTypeMapper::CloudType | type, |
| float | defaultWidth | ||
| ) |
| float makVrv::DtCloudLayerSettingsManager::defaultWidthForCloudType | ( | DtCloudTypeMapper::CloudType | type | ) | const |
|
virtual |
Set the current settings' state from the given record.
Implements makVrv::DtBaseSettingsManager< makArchives::DtCloudLayerListRecord >.
|
virtual |
Store the current settings' state in the given record.
Implements makVrv::DtBaseSettingsManager< makArchives::DtCloudLayerListRecord >.
|
protectedvirtual |
Get overrides to the factory record, if any. If there are overrides, this function returns true. This is an internal utility function used by VR-Vantage engineers to update factory defaults. As a result, this function returns false in releases but can be overriden by toolkit users if desired; however, generally toolkit users can and should use DtDeInitializer::addDefaultSettingsRecord(...) instead.
Implements makVrv::DtBaseSettingsManager< makArchives::DtCloudLayerListRecord >.
|
friend |
Befriend the manager instance functions for instance retrieval/creation.
Befriend the manager instance functions for instance retreival/creation.
Befriend the manager instance functions for instance retrieval/creation.
Then simply in the implementation of instance call defaultManagerInstanceFunction with the de object and return the return value.
|
friend |
Befriend the manager instance functions for instance retrieval/creation.
Befriend the manager instance functions for instance retreival/creation.
Befriend the manager instance functions for instance retrieval/creation.
|
protected |