Changeset 259 in flair-src for trunk/tools/FlairGCS/src/UsSensorPlot.h


Ignore:
Timestamp:
07/25/18 17:27:17 (4 years ago)
Author:
Sanahuja Guillaume
Message:

add history to us sensor plot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/FlairGCS/src/UsSensorPlot.h

    r221 r259  
    1616class QMouseEvent;
    1717class QwtPlotMarker;
     18class QScrollBar;
    1819
    1920class UsSensorPlot : public DataRemote {
     
    3334  void alignScales(void);
    3435  float xmin_orig, xmax_orig, ymin_orig, ymax_orig;
     36  QScrollBar* scrollbar;
    3537
    3638  QwtPlotCurve *datas;
    3739  QwtPlotMarker *firstPeakStart,*firstPeakEnd,*secondPeakStart,*secondPeakEnd;
    3840  QString datasType;
    39   bool datas_first_update;
    4041  double *dx;
    41   double *dy;
     42 
     43  struct measure_t {
     44    double *dy;
     45    uint16_t firstPeakStartIndex;
     46    uint16_t firstPeakEndIndex;
     47    uint16_t secondPeakStartIndex;
     48    uint16_t secondPeakEndIndex;
     49  };
     50  QList<measure_t> measures;
     51       
     52 
    4253  uint32_t nbSamples;
     54  bool scrolling;
    4355
    4456  bool eventFilter(QObject *, QEvent *);
     
    4658  void setXAxisScale(float xmin, float xmax);
    4759  void BufEvent(char **buf, int *buf_size, uint16_t period, bool big_endian);
     60  void plotMeasure(int index);
     61 
     62 private slots:
     63    void scrollBarMoved(int value);
    4864};
    4965
Note: See TracChangeset for help on using the changeset viewer.