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).
- See Also
- makArchives::DtCloudLayerListRecord
-
vrvCore::DtEnvironment
|
| | DtCloudLayerSettingsManager ()=delete |
| |
| | DtCloudLayerSettingsManager (const DtCloudLayerSettingsManager &orig)=delete |
| |
| DtCloudLayerSettingsManager & | operator= (const DtCloudLayerSettingsManager &orig)=delete |
| |
| virtual | ~DtCloudLayerSettingsManager () |
| |
|
| void | setDefaultLengthForCloudType (DtCloudTypeMapper::CloudType type, float defaultLength) |
| |
| float | defaultLengthForCloudType (DtCloudTypeMapper::CloudType type) const |
| |
| void | setDefaultWidthForCloudType (DtCloudTypeMapper::CloudType type, float defaultWidth) |
| |
| float | defaultWidthForCloudType (DtCloudTypeMapper::CloudType type) const |
| |
|
| void | setFromRecord (const makArchives::DtCloudLayerListRecord &rec) |
| |
| void | getRecord (makArchives::DtCloudLayerListRecord &rec) const |
| |
| | DtBaseSettingsManager (DtDe &de, const std::string &name, const std::string &displayName, const std::string &ext) |
| |
| virtual | ~DtBaseSettingsManager () |
| |
| virtual void | initializeBackup () |
| |
| | DtCommonBaseSettingsManager (DtDe &de, const std::string &name, const std::string &displayName, const std::string &ext) |
| |
| virtual | ~DtCommonBaseSettingsManager () |
| |
| virtual void | autoSaveIfNecessary () |
| |
| virtual void | setAutoSave (bool doit) |
| |
| virtual bool | autoSave () const |
| |
| virtual void | setUseDefaultSettingsRecord (bool useit) |
| |
| virtual bool | useDefaultSettingsRecord () const |
| |
| virtual DtDeSettings * | settings () |
| |
| virtual const DtDeSettings * | settings () const |
| |
| virtual DtSettingsBackup * | settingsBackup () |
| |
| virtual const DtSettingsBackup * | settingsBackup () const |
| |
| virtual void | loadDefaults () |
| |
| virtual void | saveDefaultSettings () |
| |
| virtual void | loadDefaultSettings (bool loadOnlyFactorySettings) |
| |
| virtual void | importSettings (const std::string &filePath) |
| |
| virtual void | exportSettings (const std::string &filePath) const |
| |
| virtual void | getSplitRecord (std::vector< makArchives::DtCloudLayerListRecord > &rec, std::vector< std::string > &fileNames) |
| |
| virtual void | addRecords (makArchives::DtCloudLayerListRecord &rec, makArchives::DtCloudLayerListRecord &combinedRec) |
| |
| | DtVirtualBaseClass () |
| |
| virtual | ~DtVirtualBaseClass () |
| |
template<typename ManagerClass >
| ManagerClass& defaultManagerInstanceFunction |
( |
DtDe & |
de, |
|
|
bool |
allowedInSlave |
|
) |
| |
|
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.
class Manager
{
public:
protected:
template <typename ManagerClass>
template <typename ManagerClass>
Manager(DtDe&);
};
Then simply in the implementation of instance call defaultManagerInstanceFunction with the de object and return the return value.
Manager& Manager::instance(DtDe& de)
{
return defaultManagerInstanceFunction<Manager>(de);
}