VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
terrainProfileSettingsWidget.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 
13 #if !defined(Q_MOC_RUN)
14 
16 #include "terrainProfileSettingsWidget.hpp"
18 #endif
19 #include <boost/signals2.hpp>
20 
21 #include <QtWidgets/QWidget>
22 namespace makVrv
23 {
24  class DtDe;
25  class DtPersistenceControlsInterface;
26 }
27 
28 namespace makVrf
29 {
30  class DtSpotReportOptionsWidgetLogic;
31  class DtTerrainProfileSettingsRecord;
32 
37  {
38  Q_OBJECT
39 
40  public:
41 
42  enum Types
43  {
44  IntervisibilityLine = 1,
45  Route = 2,
46  NearLine = 3,
47  ShowVertices = 4,
48  UseBackend = 5
49  };
50 
52  DtTerrainProfileSettingsWidget(makVrv::DtDe& de, QWidget* parent = NULL, const Qt::WindowFlags& flags = 0 );
53 
56 
57  virtual void setShowObjectsNearLine(bool);
58  virtual void setShowVertices(bool);
59  virtual void setShowObjectsWithinRange(double);
60  virtual void setShowObjectsWithinRangeUnitsLabel(const QString&);
61 
62  virtual void setSamplingRate(double);
63  virtual void setSamplingRateLabel(const QString&);
64 
65  virtual void setMaximumPointsPerLine(int);
66  virtual void setShowWhenCreatingIntervisibilityLine(bool);
67  virtual void setShowWhenCreatingRoute(bool);
68  virtual void setShowWhenEditingRoute(bool);
69  virtual void setUseBackendForTerrainProfileInformation(bool);
70 
73  boost::signals2::signal<void (int, bool, bool)> signal_optionChanged;
74 
78  boost::signals2::signal<void (double)> signal_showObjectsWithinRangeChanged;
79  boost::signals2::signal<void (double)> signal_samplingRateChanged;
80  boost::signals2::signal<void (int)> signal_maximumPointsPerLineValueChanged;
81 
82  protected:
83 
84  void setupGui();
85 
86  protected slots:
88  virtual void onOptionChanged();
89 
92  virtual void onShowObjectsNearLineValueChanged();
93 
95  virtual void onSamplingRateValueChanged();
96 
98  virtual void onMaximumPointsPerLineValueChanged();
99 
100  private:
103 
106 
107  public:
108  Ui_DtTerrainProfileSettingsWidgetUi myUiImpl;
109 
110  protected:
112  };
113 
116  {
117 
118  public:
119 
123 
126 
128  virtual void setupFromOptions(const DtTerrainProfileSettingsRecord& rec);
129 
131  virtual void on_import();
132  virtual void on_export();
133  virtual void on_importFilePathChosen(const std::string& filePath);
134  virtual void on_exportFilePathChosen(const std::string& filePath);
135 
136  protected:
138  virtual void onOptionChanged(int type, bool editing, bool value);
139 
141  virtual void slot_onUnitChanged(const makVrv::DtUnicode& category, const makVrv::DtUnicode& type, int);
142 
144  virtual void onShowObjectsWithinRangeChanged(double);
145 
147  virtual void onSamplingRateValueChanged(double);
148 
150  virtual void onMaximumPointsPerLineValueChanged(int);
151 
152  protected:
157 
160  };
161 }
DtTerrainProfileSettingsWidget & myInterface
Definition: terrainProfileSettingsWidget.h:154
Instances of DtTerrainProfileSettingsWidget will allow the user to set options for terrain profile gr...
Definition: terrainProfileSettingsWidget.h:36
boost::signals2::signal< void(double)> signal_showObjectsWithinRangeChanged
objects within range and sampling rate are only changed on return key press or focus lost (if value i...
Definition: terrainProfileSettingsWidget.h:78
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
makVrv::DtDe & myDe
Definition: terrainProfileSettingsWidget.h:153
#define DT_DLL_VRFGUISETTINGSWIDGETS
Definition: vrfGuiSettingsWidgets.h:22
boost::signals2::signal< void(double)> signal_samplingRateChanged
Definition: terrainProfileSettingsWidget.h:79
makVrv::DtPersistenceControlsInterface & myToolbarInterface
Definition: terrainProfileSettingsWidget.h:155
Abstract interface for controlling persistence of state in a dialog.
Definition: DtPersistenceControlsInterface.h:20
makVrv::DtDisplayUnitsConverter::DistanceUnits myDistanceUnits
Current units for distance and altitude. Used to check to see if units need to be changed...
Definition: terrainProfileSettingsWidget.h:159
Contains the DtDisplayUnitsSettingsManager class declaration.
DistanceUnits
Enumeration of the different distance units.
Definition: DtDisplayUnitsSettingsRecord.h:56
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
makVrv::DtSignalConnectionManager myConnectionManager
Definition: terrainProfileSettingsWidget.h:156
boost::signals2::signal< void(int)> signal_maximumPointsPerLineValueChanged
Definition: terrainProfileSettingsWidget.h:80
boost::signals2::signal< void(int, bool, bool)> signal_optionChanged
For convenience, rather than having a signal for each item, one signal and send the type and whether ...
Definition: terrainProfileSettingsWidget.h:73
Base class to provide boost signal/slot management.
Ui_DtTerrainProfileSettingsWidgetUi myUiImpl
Definition: terrainProfileSettingsWidget.h:108
Logic for the terrain profile settings page.
Definition: terrainProfileSettingsWidget.h:115
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
Contains makVrf::DtTerrainProfileSettingsRecord class. This class holds options for terrain profiles...
Definition: terrainProfileSettingsRecord.h:26
Types
Definition: terrainProfileSettingsWidget.h:42
makVrv::DtDe & myDe
Definition: terrainProfileSettingsWidget.h:111

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)