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}
|
---|
5 | /*!
|
---|
6 | * \file UsSensorPlot.h
|
---|
7 | * \brief Class displaying a plot for raw us sensor
|
---|
8 | * \author Guillaume Sanahuja, Copyright Heudiasyc UMR UTC/CNRS 7253
|
---|
9 | * \date 2018/02/21
|
---|
10 | * \version 4.0
|
---|
11 | */
|
---|
12 |
|
---|
13 | #ifndef USSENSORPLOT_H
|
---|
14 | #define USSENSORPLOT_H
|
---|
15 |
|
---|
16 | #include <DataPlot.h>
|
---|
17 | #include <stdint.h>
|
---|
18 |
|
---|
19 | namespace flair {
|
---|
20 | namespace core {
|
---|
21 | class Matrix;
|
---|
22 | }
|
---|
23 | }
|
---|
24 |
|
---|
25 | namespace flair {
|
---|
26 | namespace gui {
|
---|
27 |
|
---|
28 | class LayoutPosition;
|
---|
29 |
|
---|
30 | /*! \class UsSensorPlot
|
---|
31 | *
|
---|
32 | * \brief Class displaying a plot for raw us sensor
|
---|
33 | *
|
---|
34 | */
|
---|
35 | class UsSensorPlot : private DataPlot {
|
---|
36 | public:
|
---|
37 | /*!
|
---|
38 | * \brief Constructor
|
---|
39 | *
|
---|
40 | * Construct a plot for raw us sensor at given place position.
|
---|
41 | *
|
---|
42 | * \param position position to display the plot
|
---|
43 | * \param name name
|
---|
44 | * \param y_name name of y axis
|
---|
45 | * \param ymin default ymin of the plot
|
---|
46 | * \param ymax default ymax of the plot
|
---|
47 | * \param datas data matrix, must be 1D
|
---|
48 | * \param peakInfos peak infos, must be 1*4 (first start,first end, second start,second end)
|
---|
49 | */
|
---|
50 | UsSensorPlot(const LayoutPosition *position, std::string name,
|
---|
51 | std::string y_name,float ymin, float ymax,const core::Matrix *datas,const core::Matrix *peakInfos);
|
---|
52 |
|
---|
53 | /*!
|
---|
54 | * \brief Destructor
|
---|
55 | *
|
---|
56 | */
|
---|
57 | ~UsSensorPlot();
|
---|
58 |
|
---|
59 | private:
|
---|
60 | /*!
|
---|
61 | * \brief Copy datas to specified buffer
|
---|
62 | *
|
---|
63 | * Reimplemented from SendData.
|
---|
64 | *
|
---|
65 | * \param buf output buffer
|
---|
66 | */
|
---|
67 | void CopyDatas(char *buf) const;
|
---|
68 |
|
---|
69 | const core::Matrix *datas,*peakInfos;
|
---|
70 |
|
---|
71 |
|
---|
72 | };
|
---|
73 |
|
---|
74 | } // end namespace gui
|
---|
75 | } // end namespace flair
|
---|
76 |
|
---|
77 | #endif // USSENSORPLOT_H
|
---|