VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSharedOceanRenderSettings.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #pragma once
11 
15 
17 
18 #include <string>
19 
20 namespace makArchives
21 {
22  class DtOceanRenderSettingsRecord;
23 }
24 
25 namespace makVrv
26 {
27 
28  class DtDe;
30 
33 
37  {
38  public:
39 
41  virtual ~DtSharedOceanRenderSettings();
42 
45 
46  bool oceanPlanarReflectionsEnabled() const;
47  void setOceanPlanarReflectionsEnabled( bool setting );
48 
49  float oceanPlanarReflectionsLODScale() const;
50  void setOceanPlanarReflectionsLODScale( float setting );
51 
52  bool oceanPlanarReflectionsSpecifyFarClip() const;
53  void setOceanPlanarReflectionsSpecifyFarClip( bool setting );
54 
55  double oceanPlanarReflectionsFarClip() const;
56  void setOceanPlanarReflectionsFarClip( double setting );
57 
58  bool waveSprayEffectEnabled() const;
59  void setWaveSprayEffectEnabled( bool setting );
60 
61  bool rotorWashDecalEnabled() const;
62  void setRotorWashDecalEnabled( bool setting );
63 
64  double oceanHeightMapResolution() const;
65  void setOceanHeightMapResolution( double setting );
66 
67  bool tidalStreamWakesEnabled() const;
68  void setTidalStreamWakesEnabled(bool setting);
69 
70  double regenerateCubeMapThreshold() const;
71  void setRegenerateCubeMapThreshold(double threshold);
72 
73  double regenerateHeightMapPercThreshold() const;
74  void setRegenerateHeightMapPercThreshold(double threshold);
75 
76  bool omitCloudInCubeMap() const;
77  void setOmitCloudInCubeMap(bool omit);
78 
79  int oceanHeightMapTextureSize() const;
80  void setOceanHeightMapTextureSize(int setting);
81 
82  double staticOceanLodRange() const;
83  void setStaticOceanLodRange( double range );
84 
85  int planarReflectionTextureWidth() const;
86  void setPlanarReflectionTextureWidth( int w );
87 
88  int planarReflectionTextureHeight() const;
89  void setPlanarReflectionTextureHeight( int h );
90 
91  unsigned int oceanQuality() const;
92  void setOceanQuality(unsigned int quality);
93 
94  unsigned int oceanSpectralModel() const;
95  void setOceanSpectralModel(unsigned int spectralModel);
96 
97  bool planarReflectionsShowSpeedTrees() const;
98  void setPlanarReflectionsShowSpeedTrees( bool setting );
100 
103 
105  void setFromRecord( const makArchives::DtOceanRenderSettingsRecord& rec );
106 
108  void getRecord( makArchives::DtOceanRenderSettingsRecord& rec ) const;
109 
111  virtual const DtOceanRenderSettingsBackup* settingsBackup() const;
112 
114  virtual DtOceanRenderSettingsBackup* settingsBackup();
115 
117  virtual void backup();
118 
120 
122  static const std::string& className();
123 
124  protected:
125 
130 
133 
134  protected:
135 
150  unsigned int myOceanQuality;
151  unsigned int myOceanSpectralModel;
154 
156 
157  };
158 
159 }
a read settings lock on a setting object. The object can only get read access aka const functions...
Definition: DtReadSettingsLock.h:48
unsigned int myOceanSpectralModel
Definition: DtSharedOceanRenderSettings.h:151
int myOceanHeightMapTextureSize
Definition: DtSharedOceanRenderSettings.h:147
bool myTidalStreamWakesEnabled
Definition: DtSharedOceanRenderSettings.h:143
DtOceanRenderSettingsBackup * mySettingsBackup
Definition: DtSharedOceanRenderSettings.h:155
bool myRotorWashDecalEnabled
Definition: DtSharedOceanRenderSettings.h:141
double myOceanPlanarReflectionsFarClip
Definition: DtSharedOceanRenderSettings.h:139
double myOceanHeightMapResolution
Definition: DtSharedOceanRenderSettings.h:142
The shared settings manager, is the global object responsible for managing any shared settings object...
Definition: DtSharedSettingsManager.h:42
The base class for all shared settings. Actual settings class should have the following members/decla...
Definition: DtSharedSettings.h:45
The shared ocean render settings.
Definition: DtSharedOceanRenderSettings.h:36
bool myWaveSprayEffectEnabled
Definition: DtSharedOceanRenderSettings.h:140
float myOceanPlanarReflectionsLODScale
Definition: DtSharedOceanRenderSettings.h:137
bool myOmitCloudInCubeMap
Definition: DtSharedOceanRenderSettings.h:146
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
Contains the DtSharedSettings class declaration.
double myRegenerateHeightMapPercThreshold
Definition: DtSharedOceanRenderSettings.h:145
int myPlanarReflectionTextureHeight
Definition: DtSharedOceanRenderSettings.h:149
a write settings lock on a setting object. The object can be read and modified, but no other threads ...
Definition: DtWriteSettingsLock.h:47
double myRegenerateCubeMapThreshold
Definition: DtSharedOceanRenderSettings.h:144
A DtOceanRenderSettingsRecord contains the information to regarding the rendering settings the applic...
Definition: DtOceanRenderSettingsRecord.h:18
double myStaticOceanLodRange
Definition: DtSharedOceanRenderSettings.h:152
int myPlanarReflectionTextureWidth
Definition: DtSharedOceanRenderSettings.h:148
bool myOceanPlanarReflectionsSpecifyFarClip
Definition: DtSharedOceanRenderSettings.h:138
unsigned int myOceanQuality
Definition: DtSharedOceanRenderSettings.h:150
The makVrv::DtSharedRecordSettingsBackup is a templaced class that settings records will use in order...
Definition: DtRecordSettingsBackup.h:197
bool myPlanarReflectionsShowSpeedTrees
Definition: DtSharedOceanRenderSettings.h:153
Contains makArchives::DtOceanRenderSettingsRecord class.
DtSharedRecordSettingsBackup< DtSharedOceanRenderSettings, makArchives::DtOceanRenderSettingsRecord > DtOceanRenderSettingsBackup
Definition: DtSharedOceanRenderSettings.h:29
bool myOceanPlanarReflectionsEnabled
Definition: DtSharedOceanRenderSettings.h:136

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)