![]() |
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 <vrvCoreQt/vrvCoreQt.h> 00013 00014 #include <vrvUtil/DtSignalConnectionManager.h> 00015 #include <vrvUtil/DtVirtualBaseClass.h> 00016 00017 #include <QtGui/QColor> 00018 00019 namespace makVrv 00020 { 00021 00022 class DtIntervisibilitySettingsInterface; 00023 class DtPersistenceControlsInterface; 00024 class DtDe; 00025 class DtSettingsBackup; 00026 00029 class DT_DLL_VRVCOREQT DtIntervisibilitySettingsLogic 00030 : public DtVirtualBaseClass 00031 { 00032 public: 00033 00035 DtIntervisibilitySettingsLogic( DtDe& de, 00036 DtPersistenceControlsInterface& persistenceControls, 00037 DtIntervisibilitySettingsInterface& widget ); 00038 00040 virtual ~DtIntervisibilitySettingsLogic(); 00041 00042 protected: 00043 00046 00047 void on_import(); 00048 void on_export(); 00049 void on_importFilePathChosen( const std::string& filePath ); 00050 void on_exportFilePathChosen( const std::string& filePath ); 00051 00053 00056 void sendSettingsToGui(); 00057 00058 virtual void updateElevationUnits(); 00059 00060 virtual void updateFanModeSamplingRate(); 00061 00064 virtual void settingsRestored(const DtSettingsBackup*); 00065 00066 virtual void slot_intervisibilityEnabledChanged( bool ); 00067 virtual void slot_leftClickMakesObjectsPermanentChanged( bool ); 00068 virtual void slot_originIntervisibilityElevationChanged( double ); 00069 virtual void slot_endPointIntervisibilityElevationChanged( double ); 00070 virtual void slot_fanModeSamplingRateChanged( double ); 00071 virtual void slot_entityFanUpdateRateChanged( double ); 00072 virtual void slot_visibleColorChanged( QColor ); 00073 virtual void slot_blockedColorChanged( QColor ); 00074 virtual void slot_circleColorChanged( QColor ); 00075 virtual void slot_hatLinesEnabledChanged( bool ); 00076 virtual void slot_hatLinesOnSelectionOnlyChanged( bool ); 00077 virtual void slot_rangeInfoLabelsEnabledChanged( bool ); 00078 virtual void slot_rangeInfoLabelBackgroundColorChanged( const QColor& c ); 00079 virtual void slot_rangeInfoBackgroundOpacityChanged( double opacity ); 00080 virtual void slot_rangeInfoAltChangeFieldEnabledChanged( bool enabled ); 00081 virtual void slot_rangeInfoLocationFieldEnabledChanged( bool enabled ); 00082 virtual void slot_rangeInfoHeadingFieldEnabledChanged( bool enabled ); 00083 virtual void slot_rangeInfoRangeFieldEnabledChanged( bool enabled ); 00084 00085 protected: 00086 00087 DtPersistenceControlsInterface& myPersistenceControls; 00088 DtDe& myDe; 00089 DtIntervisibilitySettingsInterface& myWidget; 00090 DtSignalConnectionManager myConnections; 00091 00092 }; 00093 00094 00097 class DT_DLL_VRVCOREQT DtIntervisibilitySettingsLogicCreator : public DtVirtualBaseClass 00098 { 00099 public: 00100 00102 static DtIntervisibilitySettingsLogicCreator& instance(DtDe&); 00103 00105 static void registerInstance(DtDe&,DtIntervisibilitySettingsLogicCreator* anInstance); 00106 00108 virtual DtIntervisibilitySettingsLogic* create(DtDe&, DtPersistenceControlsInterface& persistenceControls, 00109 DtIntervisibilitySettingsInterface& widget); 00110 00111 }; 00112 00113 }