VR-Forces 4.0.4 Class Documentation
include/vrvCoreQt/DtEnvironmentLogic.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Copyright (c) 2011 MAK Technologies, Inc.
00003  * All rights reserved.
00004  *****************************************************************************/
00005 /*****************************************************************************
00006  * $RCSfile: DtEnvironmentLogic.h,v $ $Revision: 1.13 $ $State: Exp $
00007  *****************************************************************************/
00008 
00012 
00013 #pragma once
00014 
00015 #include <vrvCoreQt/vrvCoreQt.h>
00016 
00017 #include <vrvUtil/DtSignalConnectionManager.h>
00018 
00019 #include <string>
00020 
00021 namespace makArchives
00022 {
00023    class DtCloudLayerRecord;
00024 }
00025 
00026 namespace makVrv
00027 {
00028 
00029    class DtDe;
00030    class DtEnvironmentInterface;
00031    class DtPersistenceControlsInterface;
00032 
00035    class DT_DLL_VRVCOREQT DtEnvironmentLogic
00036    {
00037    public:
00038 
00040       DtEnvironmentLogic(DtDe& de, DtEnvironmentInterface& envInterface,
00041          DtPersistenceControlsInterface& persInterface);
00042 
00044       ~DtEnvironmentLogic();
00045 
00046    protected:
00047 
00048       void sendSettingsToGui();
00049 
00050       void remoteSettingsChanged(bool enabled);
00051 
00052       void refreshRemoteSettings();
00053 
00054       void createNewCloudLayer();
00055 
00056       void addCloudLayer( const makArchives::DtCloudLayerRecord& curIter );
00057 
00058       void deleteCloudLayer(int index);
00059 
00060       void enableCloudLayer(int index, bool enabled);
00061 
00062       //Connected to signal emitted when a cloud layer was added.
00063       void on_cloudLayerAdded(int index);
00064 
00065       //Connected to signal emitted when a cloud layer was destroyed.
00066       void on_cloudLayerDestroyed( int index );
00067 
00068       //Connected to signal emitted when a cloud layer is enabled/disabled.
00069       void on_cloudLayerEnabledChanged( int index, bool enabled );
00070 
00071       void on_displayUnitsChanged( int type );
00072 
00073       void exportSettings( const std::string& fileName );
00074       void importSettings( const std::string& fileName );
00075 
00076       void restoreFactorySettings();
00077 
00078       void enablePrecipitation( bool );
00079 
00080       void setPrecipitationType( const std::string& type );
00081 
00082       void setPrecipitationIntensity( float );
00083 
00084       void setTurbidity( float );
00085       void setVisibilityDistance( float );
00086       
00087       void addNewCloudLayer(const makArchives::DtCloudLayerRecord& cloudRec);
00088 
00089       void editCloudLayer(int index);
00090       void cloudLayerEdited(int index, const makArchives::DtCloudLayerRecord& cloudRec);
00091 
00092       void on_precipitationSettingsChanged();
00093       void on_atmosphericParametersChanged();
00094 
00095       void on_import();
00096       void on_export();
00097 
00098    protected:
00099 
00100       DtDe& myDe;
00101       DtEnvironmentInterface& myInterface;
00102       DtPersistenceControlsInterface& myPersistenceInterface;
00103       DtSignalConnectionManager mySignals;
00104 
00105    };
00106 
00107 }

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)