VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 
52  virtual void getSplitRecord(std::vector<DtTerrainProfileSettingsRecord>& rec,
53  std::vector<std::string>& fileNames) {};
54 
57  virtual void addRecords(DtTerrainProfileSettingsRecord& recs,
58  DtTerrainProfileSettingsRecord& combinedRec) {};
59 
60  public:
61  //{@
65 
66  public:
68  virtual void loadDefaults(bool fromFactory = false);
69 
71  virtual void saveAsDefaults();
72 
73  const makVrv::DtRecordSettingsBackupInterface* settingsBackup() const
74  {
75  return mySettingsBackup;
76  }
77 
79  {
80  return mySettingsBackup;
81  }
85  void setShowObjectsNearLine(bool);
86  bool showObjectsNearLine() const;
87 
89  void setShowVertices(bool);
90  bool showVertices() const;
91 
93  void setShowObjectsWithinRange(double);
94  double showObjectsWithinRange() const;
95 
97  void setSamplingRate(double);
98  double samplingRate() const;
99 
101  void setMaximumNumberOfSamplePoints(int);
102  int maximumNumberOfSamplePoints() const;
103 
104  void setShowWhenCreatingIntervisibilityLine(bool);
105  bool showWhenCreatingIntervisibilityLine() const;
106 
107  void setShowWhenCreatingRoute(bool);
108  bool showWhenCreatingRoute() const;
109 
110  void setShowWhenEditingRoute(bool);
111  bool showWhenEditingRoute() const;
113 
115  void exportSettings(const std::string& fileName);
116 
118  void importSettings(const std::string& fileName);
119 
120  public:
122  boost::signal<void (const DtTerrainProfileSettingsRecord&)> signal_terrainProfileSettingsChanged;
123 
124  protected:
128  };
129 }

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)