Flair
Framework Libre Air
UsRangeFinder.h
Go to the documentation of this file.
1 // %flair:license{
2 // This file is part of the Flair framework distributed under the
3 // CECILL-C License, Version 1.0.
4 // %flair:license}
13 #ifndef USRANGEFINDER_H
14 #define USRANGEFINDER_H
15 
16 #include <IODevice.h>
17 
18 namespace flair {
19  namespace core {
20  class Matrix;
21  }
22  namespace gui {
23  class Tab;
24  class TabWidget;
25  class GroupBox;
26  class Layout;
27  class DataPlot1D;
28  }
29 }
30 
31 namespace flair {
32 namespace sensor {
40 class UsRangeFinder : public core::IODevice {
41 public:
50  UsRangeFinder(std::string name);
51 
60  UsRangeFinder(const core::IODevice *parent, std::string name);
61 
67 
72  void LockUserInterface(void) const;
73 
78  void UnlockUserInterface(void) const;
79 
85  void UseDefaultPlot(void);
86 
92  gui::DataPlot1D *GetPlot(void) const;
93 
99  gui::Layout *GetLayout(void) const;
100 
106  gui::Tab *GetPlotTab(void) const;
107 
113  gui::TabWidget *GetTabWidget(void) const;
114 
120  float Value(void) const;
121 
122 protected:
129 
135  gui::GroupBox *GetGroupBox(void) const;
136 
137 private:
145  void UpdateFrom(const core::io_data *data){};
146 
147  gui::Tab *main_tab;
148  gui::TabWidget *tab;
149  gui::GroupBox *setup_groupbox;
150  gui::Tab *sensor_tab;
151  gui::DataPlot1D *plot;
152  gui::Tab *plot_tab;
153 };
154 } // end namespace sensor
155 } // end namespace flair
156 #endif // USRANGEFINDER_H
Abstract class for data types.
Definition: io_data.h:94
Abstract class for input/ouput system.
Definition: IODevice.h:45
namespace of the flair Framework
Definition: Ahrs.h:19
void UseDefaultPlot(void)
Use default plot.
Class displaying a QGroupBox on the ground station.
Definition: GroupBox.h:27
Base class for UsRangeFinder.
Definition: UsRangeFinder.h:40
void LockUserInterface(void) const
Lock user interface.
Abstract class for input/ouput system.
gui::Layout * GetLayout(void) const
Setup Layout.
Abstract class to display a layout on the ground station.
Definition: Layout.h:33
float Value(void) const
Value.
Class displaying a QTabWidget on the ground station.
Definition: TabWidget.h:29
gui::TabWidget * GetTabWidget(void) const
Tab widget.
gui::GroupBox * GetGroupBox(void) const
Setup GroupBox.
gui::Tab * GetPlotTab(void) const
Plot tab.
core::Matrix * output
Output matrix.
Definition: UsRangeFinder.h:128
void UnlockUserInterface(void) const
Unlock user interface.
UsRangeFinder(std::string name)
Constructor.
gui::DataPlot1D * GetPlot(void) const
Plot.
Class defining a matrix.
Definition: Matrix.h:31
Class displaying a 1D plot on the ground station.
Definition: DataPlot1D.h:33
Class displaying a QTab on the ground station.
Definition: Tab.h:29