source: flair-dev/trunk/include/FlairCore/UsSensorPlot.h@ 88

Last change on this file since 88 was 68, checked in by Sanahuja Guillaume, 7 years ago

maj for armv5te

File size: 1.6 KB
Line 
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
19namespace flair {
20namespace core {
21class Matrix;
22}
23}
24
25namespace flair {
26namespace gui {
27
28class LayoutPosition;
29
30/*! \class UsSensorPlot
31*
32* \brief Class displaying a plot for raw us sensor
33*
34*/
35class UsSensorPlot : private DataPlot {
36public:
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
59private:
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
Note: See TracBrowser for help on using the repository browser.