VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
terrainProfileSettingsManager.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2011 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include <vrfGuiCore/vrfGuiCore.h>
14 #include <vrvUtil/signalslib.h>
15 
17 
18 #include <boost/signal.hpp>
19 
20 namespace makVrv
21 {
22  class DtDe;
23  class DtRecordSettingsBackupInterface;
24  class DtSharedSettingsManager;
25 }
26 
27 namespace makVrf
28 {
35  {
36  public:
39 
41  static DtTerrainProfileSettingsManager& instance(makVrv::DtDe& de);
42  static void registerInstance(makVrv::DtDe&, DtTerrainProfileSettingsManager*);
43 
44  void setAutoSave(bool b);
45  bool autoSave() const;
46 
47  virtual void getRecord(DtTerrainProfileSettingsRecord& rec) const;
48  virtual void setFromRecord(const DtTerrainProfileSettingsRecord& rec);
49 
50  public:
51  //{@
55 
56  public:
58  virtual void loadDefaults(bool fromFactory = false);
59 
61  virtual void saveAsDefaults();
62 
63  const makVrv::DtRecordSettingsBackupInterface* settingsBackup() const
64  {
65  return mySettingsBackup;
66  }
67 
69  {
70  return mySettingsBackup;
71  }
75  void setShowObjectsNearLine(bool);
76  bool showObjectsNearLine() const;
77 
79  void setShowVertices(bool);
80  bool showVertices() const;
81 
83  void setShowObjectsWithinRange(double);
84  double showObjectsWithinRange() const;
85 
87  void setSamplingRate(double);
88  double samplingRate() const;
89 
91  void setMaximumNumberOfSamplePoints(int);
92  int maximumNumberOfSamplePoints() const;
93 
94  void setShowWhenCreatingIntervisibilityLine(bool);
95  bool showWhenCreatingIntervisibilityLine() const;
96 
97  void setShowWhenCreatingRoute(bool);
98  bool showWhenCreatingRoute() const;
99 
100  void setShowWhenEditingRoute(bool);
101  bool showWhenEditingRoute() const;
103 
105  void exportSettings(const std::string& fileName);
106 
108  void importSettings(const std::string& fileName);
109 
110  public:
112  boost::signal<void (const DtTerrainProfileSettingsRecord&)> signal_terrainProfileSettingsChanged;
113 
114  protected:
118  };
119 }

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)