VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
sensorControlDialog.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
10 
11 #pragma once
12 
16 #include <vrfutil/rwUUID.h>
19 
21 
22 #include <QDialog>
23 
24 #include <matrix/vlVector.h>
25 
26 class QGridLayout;
27 class QVBoxLayout;
28 class QLabel;
29 class QPushButton;
30 class QSlider;
31 class QSignalMapper;
32 class QDialogButtonBox;
33 
34 namespace makVrf
35 {
36  class DtVrfFilteredListView;
37  class DtLocationEntryWidget;
38 
39  class DtSensorTrackEntityDialog;
40  class DtSensorTrackLocationDialog;
41 
43  {
44  Q_OBJECT
45  public:
46  //CTOR
47  DtSensorControlDialog(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
48 
49  //DTOR
50  virtual ~DtSensorControlDialog();
51 
52  virtual void setupGui(const std::string& sensorFieldOfViewId,
53  makVrv::DtSimEntry* simEntry);
54 
55  virtual QSize sizeHint() const;
56 
58  virtual DtUUID entityUUID() const;
59 
62  virtual const std::string& sensorFieldOfViewId() const;
63 
64  protected:
65 
67  virtual void sendRequest();
68 
70  virtual void sendManualControl(bool on);
71 
72  virtual void addFiltersFromCollection(const std::string& filterCollection);
73 
76  virtual void checkJoystickAvailablity();
77 
80  virtual void takeJoystickControl();
81 
83  virtual void releaseJoystickControl();
84 
86  virtual void updateZoomFromState(const makVrv::DtVrlinkSensorFieldOfViewState& s);
87 
89  virtual void updateModeFromState(const makVrv::DtVrlinkSensorFieldOfViewState& s);
90 
92  virtual void slot_onStateViewUpdated(makVrv::DtStateView<makVrv::DtVrlinkSensorFieldsOfView>* s);
93 
94  protected slots:
95  virtual void onUpdate();
96  virtual void onClosed();
97  virtual void onTrackEntity();
98  virtual void onTrackLocation();
99  virtual void onScan();
100  virtual void onJoystick();
101  virtual void onManualControl();
102  virtual void onZoom();
103  virtual void onRateChange();
104 
105  public:
106 
107  boost::signal<void (int, int, int, int)> signal_dialogGeometryUpdated;
108  boost::signal<void (std::vector<DtUUID> names, const DtSetDataRequest&)> signal_sendSetRequest;
109  boost::signal<void ()> signal_dialogClosed;
110 
111  protected:
112 
117  std::string myEntityGlobalId;
121  unsigned myColor;
122 
123  public:
124  QGridLayout* myMainLayout;
125 
127  QSlider* myZoomSlider;
128 
130  QSlider* myRateSlider;
131 
137 
142 
145  };
146 
148  {
149  public:
150 
151  //CTOR
152  DtSensorTrackEntityDialog(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
153 
154  //DTOR
155  virtual ~DtSensorTrackEntityDialog();
156 
157  virtual void setupGui(makVrv::DtSimEntry* simEntry);
158 
159  virtual DtUUID entityToTrack() const;
160  virtual void setEntityToTrack(const DtUUID& id);
161 
162  void addFiltersFromCollection(const std::string& filterCollection);
163 
164  protected:
165 
166  virtual void showEvent(QShowEvent* event);
167 
168  protected:
169 
171 
172  public:
173  QVBoxLayout* myMainLayout;
176  QDialogButtonBox* myButtonBox;
177  };
178 
180  {
181  public:
182 
183  //CTOR
184  DtSensorTrackLocationDialog(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
185 
186  //DTOR
187  virtual ~DtSensorTrackLocationDialog();
188 
189  virtual void setupGui(makVrv::DtSimEntry* simEntry);
190 
191  virtual DtVector locationToTrack() const;
192  virtual void setLocationToTrack(const DtVector& location);
193 
194  protected:
195 
198 
199  public:
200  QVBoxLayout* myMainLayout;
202  QDialogButtonBox* myButtonBox;
203  };
204 }

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)