![]() |
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 <vrvVrlQt/vrvVrlQt.h> 00013 00014 #include <vrvVrl/DtSharedEntityDisplaySettings.h> 00015 #include <vrvUtil/DtSignalConnectionManager.h> 00016 00017 namespace makVrv 00018 { 00019 00020 class DtDe; 00021 class DtEntityDisplaySettingsInterface; 00022 class DtPersistenceControlsInterface; 00023 class DtSettingsBackup; 00024 00027 class DT_DLL_VRVVRLQT DtEntityDisplaySettingsLogic 00028 { 00029 public: 00030 00032 DtEntityDisplaySettingsLogic( DtDe& de, 00033 DtPersistenceControlsInterface& persistenceControls, 00034 DtEntityDisplaySettingsInterface& widget ); 00035 00037 ~DtEntityDisplaySettingsLogic(); 00038 00039 protected: 00040 00042 void sendSettingsToGui(); 00043 00045 //@ { 00046 00047 void slot_entityLabelsShown(bool enabled); 00048 00051 void slot_infoPopupsOnSelectSet(bool enabled); 00052 00054 void slot_groundClampingEnabled(bool enabled); 00055 00057 void slot_smoothingEnabled(bool enabled); 00058 00060 void slot_smoothingPeriodSet(float time); 00061 00063 void slot_lifeformsUprightEnabled(bool enabled); 00064 00066 void slot_iconScaleChanged(float iconScale); 00067 00070 void slot_groundClampingDistanceSet(float distance); 00071 00073 void slot_orientationClampingEnabled(bool enabled); 00074 00076 void slot_clearHistory(); 00077 00079 void slot_showStealthsSet(bool enabled); 00080 00082 void slot_showSensorVolumesSet(bool enabled); 00083 00085 void slot_heightAboveTerrainEnabled(bool enabled); 00086 00088 void slot_heightAboveTerrainSelectedOnlySet(bool enabled); 00089 00090 void slot_useModelColorType( 00091 DtSharedEntityDisplaySettings::ColorizedModelColorType colorType ); 00092 00094 void slot_iconScaleSet(int scale); 00095 00098 void slot_entitySettingsRestored(const DtSettingsBackup* s); 00099 00102 00103 void on_import(); 00104 void on_export(); 00105 void on_importFilePathChosen( const std::string& filePath ); 00106 void on_exportFilePathChosen( const std::string& filePath ); 00107 00109 00110 protected: 00111 00112 DtDe& myDe; 00113 DtSignalConnectionManager myConnections; 00114 DtEntityDisplaySettingsInterface& myInterface; 00115 DtPersistenceControlsInterface& myPersistenceControls; 00116 00117 }; 00118 00119 }