Flair
Framework Libre Air
PressureSensor.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 PRESSURESENSOR_H
14 #define PRESSURESENSOR_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 {
41 public:
50  PressureSensor(std::string name);
51 
60  PressureSensor(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 // PRESSURESENSOR_H
Abstract class for data types.
Definition: io_data.h:94
void UseDefaultPlot(void)
Use default plot.
Abstract class for input/ouput system.
Definition: IODevice.h:45
namespace of the flair Framework
Definition: Ahrs.h:19
Class displaying a QGroupBox on the ground station.
Definition: GroupBox.h:27
Base class for PressureSensor.
Definition: PressureSensor.h:40
float Value(void) const
Value.
core::Matrix * output
Output matrix.
Definition: PressureSensor.h:121
Abstract class for input/ouput system.
void LockUserInterface(void) const
Lock user interface.
Abstract class to display a layout on the ground station.
Definition: Layout.h:33
void UnlockUserInterface(void) const
Unlock user interface.
Class displaying a QTabWidget on the ground station.
Definition: TabWidget.h:29
gui::Tab * GetPlotTab(void) const
Plot tab.
gui::DataPlot1D * GetPlot(void) const
Plot.
PressureSensor(std::string name)
Constructor.
gui::Layout * GetLayout(void) const
Setup Layout.
Class defining a matrix.
Definition: Matrix.h:31
gui::GroupBox * GetGroupBox(void) const
Setup GroupBox.
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