Changeset 15 in flair-src for trunk/tools/FlairGCS/src/DataPlot2D.h


Ignore:
Timestamp:
04/08/16 15:40:57 (8 years ago)
Author:
Bayard Gildas
Message:

sources reformatted with flair-format-dir script

File:
1 edited

Legend:

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

    r10 r15  
    1616class QMouseEvent;
    1717
    18 class DataPlot2D :  public DataRemote
    19 {
    20     Q_OBJECT
     18class DataPlot2D : public DataRemote {
     19  Q_OBJECT
    2120
    22     public:
    23         DataPlot2D(Layout* parent,int row, int col,QString plot_name,QString x_name,QString y_name,float xmin, float xmax,float ymin, float ymax,bool enabled,int period);
    24         ~DataPlot2D();
    25         void addCurve(QPen pen,QString legend,QString type);
     21public:
     22  DataPlot2D(Layout *parent, int row, int col, QString plot_name,
     23             QString x_name, QString y_name, float xmin, float xmax, float ymin,
     24             float ymax, bool enabled, int period);
     25  ~DataPlot2D();
     26  void addCurve(QPen pen, QString legend, QString type);
    2627
    27     protected:
    28          void mousePressEvent(QMouseEvent *event);
     28protected:
     29  void mousePressEvent(QMouseEvent *event);
    2930
    30     private:
    31         QwtPlot* plot;
    32         void XmlEvent(QDomElement dom);
    33         void alignScales(void);
    34         void plot_data(double data_x,double data_y,int index);
    35         float xmin_orig,xmax_orig,ymin_orig,ymax_orig;
     31private:
     32  QwtPlot *plot;
     33  void XmlEvent(QDomElement dom);
     34  void alignScales(void);
     35  void plot_data(double data_x, double data_y, int index);
     36  float xmin_orig, xmax_orig, ymin_orig, ymax_orig;
    3637
    37         QList<QwtPlotCurve*> *datas;
    38         QList<QString> *datas_type;
    39         QList<bool> datas_first_update;
    40         QList<double*> d_x;
    41         QList<double*> d_y;
    42         double view_size;//en s
     38  QList<QwtPlotCurve *> *datas;
     39  QList<QString> *datas_type;
     40  QList<bool> datas_first_update;
     41  QList<double *> d_x;
     42  QList<double *> d_y;
     43  double view_size; // en s
    4344
    44         bool eventFilter(QObject *, QEvent *);
    45         void setYAxisScale(float ymin,float ymax);
    46         void setXAxisScale(float xmin,float xmax);
    47         void BufEvent(char** buf,int *buf_size,uint16_t period,bool big_endian);
    48         void showCurve(QwtPlotItem *item, bool on);
     45  bool eventFilter(QObject *, QEvent *);
     46  void setYAxisScale(float ymin, float ymax);
     47  void setXAxisScale(float xmin, float xmax);
     48  void BufEvent(char **buf, int *buf_size, uint16_t period, bool big_endian);
     49  void showCurve(QwtPlotItem *item, bool on);
    4950
    50     private slots:
    51         void legendChecked( const QVariant &itemInfo, bool on );
     51private slots:
     52  void legendChecked(const QVariant &itemInfo, bool on);
    5253};
    5354
    54 
    5555#endif // DATAPLOT2D_H_INCLUDED
Note: See TracChangeset for help on using the changeset viewer.