source: flair-src/trunk/tools/FlairGCS/src/RangeFinderPlot.h@ 9

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

gcs

File size: 1.4 KB
Line 
1#ifndef RANGEFINDERPLOT_H_INCLUDED
2#define RANGEFINDERPLOT_H_INCLUDED
3
4#include "DataRemote.h"
5#include <stdint.h>
6
7class QwtPlotShapeItem;
8class Layout;
9class QwtPlot;
10class QMouseEvent;
11
12class RangeFinderPlot : public DataRemote
13{
14 Q_OBJECT
15
16 public:
17 RangeFinderPlot(Layout* parent,int row, int col,QString name,QString x_name,QString y_name,
18 float xmin, float xmax,float ymin, float ymax,
19 float start_angle,float end_angle,uint32_t nb_samples,QString data_type,
20 bool invert_axis,bool enabled,int period);
21 ~RangeFinderPlot();
22
23 protected:
24 void mousePressEvent(QMouseEvent *event);
25
26 private:
27 void setYAxisScale(float ymin,float ymax);
28 void setXAxisScale(float xmin,float xmax);
29 void addTriangle(float angle_min, float angle_max);
30 void SetTriangle(uint32_t id,float length);
31 QwtPlot* plot;
32 void XmlEvent(QDomElement dom);
33 void alignScales(void);
34 float xmin_orig,xmax_orig,ymin_orig,ymax_orig;
35 float start_angle,end_angle;
36 uint32_t nb_samples;
37 QString data_type;
38 QList<QwtPlotShapeItem*> triangles;
39 bool invert_axis;
40
41 bool eventFilter(QObject *, QEvent *);
42 void BufEvent(char** buf,int *buf_size,uint16_t period,bool big_endian);
43};
44
45
46#endif // RANGEFINDERPLOT_H_INCLUDED
Note: See TracBrowser for help on using the repository browser.