![]() |
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 <vrvUtil/DtSignalConnectionManager.h> 00013 #include <vrvCoreQt/vrvCoreQt.h> 00014 #include <vrvUtil/DtChannelConfiguration.h> 00015 #include <vector> 00016 00017 namespace makVrv 00018 { 00019 class DtRenderSettingsInterface; 00020 class DtPersistenceControlsInterface; 00021 class DtModel; 00022 class DtDe; 00023 class DtSettingsBackup; 00024 00027 class DT_DLL_VRVCOREQT DtRenderSettingsLogic 00028 { 00029 public: 00031 DtRenderSettingsLogic(DtDe& de, 00032 DtPersistenceControlsInterface& persistenceControls, 00033 DtRenderSettingsInterface& widget); 00034 00036 ~DtRenderSettingsLogic(); 00037 00038 protected: 00039 00041 void sendSettingsToGui(); 00042 00044 void updateChannelProjectionResizePolicy(); 00045 00047 //@ { 00048 00050 void slot_wireframeEnabled(bool enabled); 00051 00053 void slot_showPerformanceOverlay(bool show); 00054 00056 void slot_channelProjectionResizePolicySet(DtChannelConfiguration::ProjectionResizePolicy policy); 00057 00059 void slot_shadowsSet(bool show); 00060 00062 void slot_shadowQualitySet(int val); 00063 00065 void slot_entitiesCastsShadowsSet(bool show); 00066 00068 void slot_propsCastsShadowsSet(bool show); 00069 00071 void slot_terrainCastsShadowsSet(bool show); 00072 00074 void slot_planViewGeocentricOccludedTransparencyChanged( int scale ); 00075 00077 void slot_planViewGeocentricOccludedTransparencySet( float value ); 00078 00080 void slot_ddsFlipSet(bool flip); 00081 00083 void slot_terrainScalingEnabledSet(bool enabled); 00084 00086 void slot_terrainScaleFactorSet(double scaleFactor); 00087 00090 void slot_clearTrackHistoriesOnTerrainScaleChangedSet(bool clear); 00091 00093 void slot_activeStatsSetChanged(const std::string& activeSetName); 00094 00095 //@ } 00096 00098 //@ { 00099 void on_import(); 00100 void on_export(); 00101 void on_importFilePathChosen(const std::string& filePath); 00102 void on_exportFilePathChosen(const std::string& filePath); 00103 //@ } 00104 00107 virtual void settingsRestored(const DtSettingsBackup*); 00108 00109 protected: 00110 DtSignalConnectionManager myConnections; 00111 DtRenderSettingsInterface& myInterface; 00112 DtPersistenceControlsInterface& myPersistenceControls; 00113 DtDe& myDe; 00114 }; 00115 }