Changeset 15 in flair-src for trunk/tools/FlairGCS/src/RangeFinderPlot.h
- Timestamp:
- 04/08/16 15:40:57 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/FlairGCS/src/RangeFinderPlot.h
r10 r15 14 14 class QMouseEvent; 15 15 16 class RangeFinderPlot : public DataRemote 17 { 18 Q_OBJECT 16 class RangeFinderPlot : public DataRemote { 17 Q_OBJECT 19 18 20 public: 21 RangeFinderPlot(Layout* parent,int row, int col,QString name,QString x_name,QString y_name, 22 float xmin, float xmax,float ymin, float ymax, 23 float start_angle,float end_angle,uint32_t nb_samples,QString data_type, 24 bool invert_axis,bool enabled,int period); 25 ~RangeFinderPlot(); 19 public: 20 RangeFinderPlot(Layout *parent, int row, int col, QString name, 21 QString x_name, QString y_name, float xmin, float xmax, 22 float ymin, float ymax, float start_angle, float end_angle, 23 uint32_t nb_samples, QString data_type, bool invert_axis, 24 bool enabled, int period); 25 ~RangeFinderPlot(); 26 26 27 28 27 protected: 28 void mousePressEvent(QMouseEvent *event); 29 29 30 31 void setYAxisScale(float ymin,float ymax);32 void setXAxisScale(float xmin,float xmax);33 34 void SetTriangle(uint32_t id,float length);35 QwtPlot*plot;36 37 38 float xmin_orig,xmax_orig,ymin_orig,ymax_orig;39 float start_angle,end_angle;40 41 42 QList<QwtPlotShapeItem*> triangles;43 30 private: 31 void setYAxisScale(float ymin, float ymax); 32 void setXAxisScale(float xmin, float xmax); 33 void addTriangle(float angle_min, float angle_max); 34 void SetTriangle(uint32_t id, float length); 35 QwtPlot *plot; 36 void XmlEvent(QDomElement dom); 37 void alignScales(void); 38 float xmin_orig, xmax_orig, ymin_orig, ymax_orig; 39 float start_angle, end_angle; 40 uint32_t nb_samples; 41 QString data_type; 42 QList<QwtPlotShapeItem *> triangles; 43 bool invert_axis; 44 44 45 46 void BufEvent(char** buf,int *buf_size,uint16_t period,bool big_endian);45 bool eventFilter(QObject *, QEvent *); 46 void BufEvent(char **buf, int *buf_size, uint16_t period, bool big_endian); 47 47 }; 48 48 49 50 49 #endif // RANGEFINDERPLOT_H_INCLUDED
Note:
See TracChangeset
for help on using the changeset viewer.