![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 * Copyright (c) 2012 MAK Technologies, Inc. 00003 * All rights reserved. 00004 *****************************************************************************/ 00005 00009 00010 #pragma once 00011 00012 #include <vrvCore/DtSharedSettings.h> 00013 #include <vrvCore/DtSettingsBackupManager.h> 00014 #include <makArchives/DtRenderSettingsRecord.h> 00015 00016 #include <vrvCore/DtRecordSettingsBackup.h> 00017 00018 #include <string> 00019 #include <vector> 00020 00021 namespace makArchives 00022 { 00023 class DtRenderSettingsRecord; 00024 } 00025 00026 namespace makVrv 00027 { 00028 00029 class DtDe; 00030 class DtSharedRenderSettings; 00031 00032 typedef DtSharedRecordSettingsBackup<DtSharedRenderSettings, 00033 makArchives::DtRenderSettingsRecord> DtRenderSettingsBackup; 00034 00037 class DT_DLL_VRVCORE DtSharedRenderSettings : public DtSharedSettings 00038 { 00039 public: 00040 00042 virtual ~DtSharedRenderSettings(); 00043 00046 00047 bool wireframeMode() const; 00048 void setWireframeMode(bool setting); 00049 00050 bool terrainScalingEnabled() const; 00051 void setTerrainScalingEnabled(bool enabled); 00052 00053 double terrainScaleFactor() const; 00054 void setTerrainScaleFactor(double scaleFactor); 00055 00056 bool clearTrackHistoryOnTerrainScaleChanged() const; 00057 void setClearTrackHistoryOnTerrainScaleChanged(bool clear); 00058 00059 void setPlanViewGeocentricOccludedTransparency(float f); 00060 float planViewGeocentricOccludedTransparency() const; 00061 00062 bool shadowMode() const; 00063 void setShadowMode(bool setting); 00064 00065 int shadowQuality() const; 00066 void setShadowQuality(int setting); 00067 00068 bool entityShadowMode() const; 00069 void setEntityShadowMode(bool setting); 00070 00071 bool propShadowMode() const; 00072 void setPropShadowMode(bool setting); 00073 00074 bool terrainShadowMode() const; 00075 void setTerrainShadowMode(bool setting); 00076 00077 bool performanceOverlayEnabled() const; 00078 void setPerformanceOverlayEnabled(bool enabled); 00079 00081 00084 00086 void setFromRecord( const makArchives::DtRenderSettingsRecord& rec ); 00087 00089 void getRecord( makArchives::DtRenderSettingsRecord& rec ) const; 00090 00092 virtual const DtRenderSettingsBackup* settingsBackup() const; 00093 00095 virtual DtRenderSettingsBackup* settingsBackup(); 00096 00098 virtual void backup(); 00099 00101 00103 static std::string className(); 00104 00105 protected: 00106 00108 friend class DtReadSettingsLock<DtSharedRenderSettings>; 00110 friend class DtWriteSettingsLock<DtSharedRenderSettings>; 00111 00113 DtSharedRenderSettings( DtSharedSettingsManager& manager ); 00114 00115 protected: 00116 00117 bool myWireframeMode; 00118 bool myTerrainScalingEnabled; 00119 double myTerrainScaleFactor; 00120 bool myClearTrackHistoryOnTerrainScaleChanged; 00121 float myPlanViewGeocentricOccludedTransparency; 00122 bool myShadowMode; 00123 int myShadowQuality; 00124 bool myEntityShadowMode; 00125 bool myPropShadowMode; 00126 bool myTerrainShadowMode; 00127 bool myPerformanceOverlayEnabled; 00128 00129 DtRenderSettingsBackup* mySettingsBackup; 00130 00131 }; 00132 00133 }