Flair
Framework Libre Air
LaserRangeFinder.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 LASERRANGEFINDER_H
14 #define LASERRANGEFINDER_H
15 
16 #include <IODevice.h>
17 
18 namespace flair {
19 namespace core {
20 class FrameworkManager;
21 class cvmatrix;
22 }
23 namespace gui {
24 class Tab;
25 class TabWidget;
26 class GroupBox;
27 class Layout;
28 class RangeFinderPlot;
29 }
30 }
31 
32 namespace flair {
33 namespace sensor {
39 public:
48  LaserRangeFinder(const core::FrameworkManager *parent, std::string name);
57  LaserRangeFinder(const core::IODevice *parent, std::string name);
63 
68  void UseDefaultPlot(void);
69 
75  gui::RangeFinderPlot *GetPlot(void) const;
76 
82  gui::Layout *GetLayout(void) const;
83 
89  gui::Tab *GetPlotTab(void) const;
90 
96  float Value(void) const;
97 
98 protected:
105 
111  gui::GroupBox *GetGroupBox(void) const;
112 
113 private:
121  void UpdateFrom(const core::io_data *data){};
122 
123  gui::Tab *main_tab;
124  gui::TabWidget *tab;
125  gui::GroupBox *setup_groupbox;
126  gui::Tab *sensor_tab;
127  gui::RangeFinderPlot *plot;
128  gui::Tab *plot_tab;
129 };
130 } // end namespace sensor
131 } // end namespace framewor
132 #endif // LASERRANGEFINDER_H
Abstract class for data types.
Definition: io_data.h:94
Abstract class for input/ouput system.
Definition: IODevice.h:44
Classe generique int├ęgrant les telemetres laser.
Definition: LaserRangeFinder.h:38
namespace of the flair Framework
Definition: Ahrs.h:19
Class defining a matrix of kind CvMat.
Definition: cvmatrix.h:33
Class displaying a QGroupBox on the ground station.
Definition: GroupBox.h:27
gui::Layout * GetLayout(void) const
Setup Layout.
core::cvmatrix * output
Output matrix.
Definition: LaserRangeFinder.h:104
Abstract class for input/ouput system.
gui::Tab * GetPlotTab(void) const
Plot tab.
LaserRangeFinder(const core::FrameworkManager *parent, std::string name)
Constructor.
Abstract class to display a layout on the ground station.
Definition: Layout.h:33
gui::RangeFinderPlot * GetPlot(void) const
Plot.
Main class of the Framework library.
Definition: FrameworkManager.h:45
gui::GroupBox * GetGroupBox(void) const
Setup GroupBox.
Class displaying a QTabWidget on the ground station.
Definition: TabWidget.h:29
float Value(void) const
Value.
Class displaying a 2D plot on the ground station for laser range finder like Hokuyo.
Definition: RangeFinderPlot.h:37
void UseDefaultPlot(void)
Use default plot.
Class displaying a QTab on the ground station.
Definition: Tab.h:29