VR-Forces 4.0.4 Class Documentation
include/vrfGuiCore/DtTerrainProfileSettingsManager.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2011 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 
00008 
00009 #pragma once
00010 
00011 #include <vrfGuiCore/vrfGuiCore.h>
00012 #include <vrfGuiCore/DtVrfGuiApplication.h>
00013 #include <vrfGuiCore/DtTerrainProfileSettingsRecord.h>
00014 #include <vrvUtil/signalslib.h>
00015 
00016 #include <vrvUtil/DtVirtualBaseClass.h>
00017 
00018 #include <boost/signal.hpp>
00019 
00020 namespace makVrv
00021 {
00022    class DtDe;
00023    class DtRecordSettingsBackupInterface;
00024    class DtSharedSettingsManager;
00025 }
00026 
00027 namespace makVrf
00028 {
00034    class DT_DLL_VRFGUICORE DtTerrainProfileSettingsManager : public makVrv::DtVirtualBaseClass
00035    {
00036    public:
00037       DtTerrainProfileSettingsManager(makVrv::DtDe&);
00038       virtual ~DtTerrainProfileSettingsManager();
00039 
00041       static DtTerrainProfileSettingsManager& instance(makVrv::DtDe& de);
00042       static void registerInstance(makVrv::DtDe&, DtTerrainProfileSettingsManager*);
00043 
00044       void setAutoSave(bool b);
00045       bool autoSave() const;
00046 
00047       virtual void getRecord(DtTerrainProfileSettingsRecord& rec) const;
00048       virtual void setFromRecord(const DtTerrainProfileSettingsRecord& rec);
00049 
00050    public:
00051       //{@
00055 
00056    public:
00058       virtual void loadDefaults(bool fromFactory = false);
00059 
00061       virtual void saveAsDefaults();
00062 
00063       const makVrv::DtRecordSettingsBackupInterface* settingsBackup() const
00064       {
00065          return mySettingsBackup;
00066       }
00067 
00068       makVrv::DtRecordSettingsBackupInterface* settingsBackup()
00069       {
00070          return mySettingsBackup;
00071       }
00075       void setShowObjectsNearLine(bool);
00076       bool showObjectsNearLine() const;
00077 
00079       void setShowVertices(bool);
00080       bool showVertices() const;
00081 
00083       void setShowObjectsWithinRange(double);
00084       double showObjectsWithinRange() const;
00085 
00087       void setSamplingRate(double);
00088       double samplingRate() const;
00089 
00091       void setMaximumNumberOfSamplePoints(int);
00092       int maximumNumberOfSamplePoints() const;
00093 
00094       void setShowWhenCreatingIntervisibilityLine(bool);
00095       bool showWhenCreatingIntervisibilityLine() const;
00096 
00097       void setShowWhenCreatingRoute(bool);
00098       bool showWhenCreatingRoute() const;
00099 
00100       void setShowWhenEditingRoute(bool);
00101       bool showWhenEditingRoute() const;
00103 
00105       void exportSettings(const std::string& fileName);
00106 
00108       void importSettings(const std::string& fileName);
00109 
00110    public:
00112       boost::signal<void (const DtTerrainProfileSettingsRecord&)> signal_terrainProfileSettingsChanged;
00113 
00114    protected:
00115       makVrv::DtDe&           myDe;
00116       makVrv::DtRecordSettingsBackupInterface* mySettingsBackup;
00117       DtTerrainProfileSettingsRecord myTerrainProfileSettings;
00118    };
00119 }

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)