VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSharedLightingRenderSettings.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 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 DtLightingRenderSettingsRecord;
23 }
24 
25 namespace makVrv
26 {
27 
28  class DtDe;
30 
33 
37  {
38  public:
39 
42 
45 
47  float lightingEmissionScale() const;
48  void setLightingEmissionScale(float setting);
49 
51  float lightingDiffuseScale() const;
52  void setLightingDiffuseScale(float setting);
53 
55  float lightingAmbientScale() const;
56  void setLightingAmbientScale(float setting);
57 
58  float globalAmbientValue() const;
59  void setGlobalAmbientValue(float ambientValue);
60 
61  bool useGlobalAmbient() const;
62  void setUseGlobalAmbient(bool useGlobalAmbient);
63 
64  float globalDiffuseValue() const;
65  void setGlobalDiffuseValue(float diffuseValue);
66 
67  bool useGlobalDiffuse() const;
68  void setUseGlobalDiffuse(bool useGlobalDiffuse);
69 
70  bool perPixelLightingEnabled() const;
71  void setPerPixelLightingEnabled( bool setting );
73 
74 
76 
79 
81  void setFromRecord( const makArchives::DtLightingRenderSettingsRecord& rec );
82 
84  void getRecord( makArchives::DtLightingRenderSettingsRecord& rec ) const;
85 
87  virtual const DtLightingRenderSettingsBackup* settingsBackup() const;
88 
90  virtual DtLightingRenderSettingsBackup* settingsBackup();
91 
93  virtual void backup();
94 
96 
98  static const std::string& className();
99 
100  protected:
101 
106 
109 
110  protected:
111 
121 
122  };
123 
124 }
a read settings lock on a setting object. The object can only get read access aka const functions...
Definition: DtReadSettingsLock.h:48
float myGlobalDiffuseValue
Definition: DtSharedLightingRenderSettings.h:117
bool myPerPixelLightingEnabled
Definition: DtSharedLightingRenderSettings.h:119
The shared lighting render settings.
Definition: DtSharedLightingRenderSettings.h:36
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
float myGlobalAmbientValue
Definition: DtSharedLightingRenderSettings.h:115
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
Contains the DtSharedSettings class declaration.
DtSharedRecordSettingsBackup< DtSharedLightingRenderSettings, makArchives::DtLightingRenderSettingsRecord > DtLightingRenderSettingsBackup
Definition: DtSharedLightingRenderSettings.h:29
bool myUseGlobalAmbient
Definition: DtSharedLightingRenderSettings.h:116
a write settings lock on a setting object. The object can be read and modified, but no other threads ...
Definition: DtWriteSettingsLock.h:47
Contains makArchives::DtLightingRenderSettingsRecord class.
A DtLightingRenderSettingsRecord contains the information to regarding the lighting rendering setting...
Definition: DtLightingRenderSettingsRecord.h:18
float myLightingEmissionScale
Definition: DtSharedLightingRenderSettings.h:112
DtLightingRenderSettingsBackup * mySettingsBackup
Definition: DtSharedLightingRenderSettings.h:120
The makVrv::DtSharedRecordSettingsBackup is a templaced class that settings records will use in order...
Definition: DtRecordSettingsBackup.h:197
float myLightingAmbientScale
Definition: DtSharedLightingRenderSettings.h:114
bool myUseGlobalDiffuse
Definition: DtSharedLightingRenderSettings.h:118
float myLightingDiffuseScale
Definition: DtSharedLightingRenderSettings.h:113

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)