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


Ignore:
Timestamp:
Apr 8, 2016, 3:40:57 PM (5 years ago)
Author:
Bayard Gildas
Message:

sources reformatted with flair-format-dir script

File:
1 edited

Legend:

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

    r10 r15  
    1414class QMouseEvent;
    1515
    16 class RangeFinderPlot :  public DataRemote
    17 {
    18     Q_OBJECT
     16class RangeFinderPlot : public DataRemote {
     17  Q_OBJECT
    1918
    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();
     19public:
     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();
    2626
    27     protected:
    28          void mousePressEvent(QMouseEvent *event);
     27protected:
     28  void mousePressEvent(QMouseEvent *event);
    2929
    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;
     30private:
     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;
    4444
    45         bool eventFilter(QObject *, QEvent *);
    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);
    4747};
    4848
    49 
    5049#endif // RANGEFINDERPLOT_H_INCLUDED
Note: See TracChangeset for help on using the changeset viewer.