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 cvmatrix;
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  float Value(void) const;
114 
115 protected:
122 
128  gui::GroupBox *GetGroupBox(void) const;
129 
130 private:
138  void UpdateFrom(const core::io_data *data){};
139 
140  gui::Tab *main_tab;
141  gui::TabWidget *tab;
142  gui::GroupBox *setup_groupbox;
143  gui::Tab *sensor_tab;
144  gui::DataPlot1D *plot;
145  gui::Tab *plot_tab;
146 };
147 } // end namespace sensor
148 } // end namespace flair
149 #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
Class defining a matrix of kind CvMat.
Definition: cvmatrix.h:33
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::GroupBox * GetGroupBox(void) const
Setup GroupBox.
gui::Tab * GetPlotTab(void) const
Plot tab.
void UnlockUserInterface(void) const
Unlock user interface.
UsRangeFinder(std::string name)
Constructor.
gui::DataPlot1D * GetPlot(void) const
Plot.
core::cvmatrix * output
Output matrix.
Definition: UsRangeFinder.h:121
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