The Inspector (GNU Radio module gr-inspector)
signal_marker.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2016 Free Software Foundation, Inc.
4  *
5  * This file is part of GNU Radio
6  *
7  * This is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 3, or (at your option)
10  * any later version.
11  *
12  * This software is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this software; see the file COPYING. If not, write to
19  * the Free Software Foundation, Inc., 51 Franklin Street,
20  * Boston, MA 02110-1301, USA.
21  */
22 
23 #ifndef GR_INSPECTOR_SIGNAL_MARKER_H
24 #define GR_INSPECTOR_SIGNAL_MARKER_H
25 
26 #include <qwt_plot.h>
27 #include <qwt_plot_marker.h>
28 #include <qwt_plot_zoneitem.h>
29 
30 namespace gr {
31  namespace inspector {
32 
34  {
35  private:
36 
37  public:
38  QwtPlotMarker* d_center;
39  QwtPlotMarker* d_label;
40  QwtPlotZoneItem* d_zone;
41  QwtPlot* d_plot;
42  float d_freq, d_bw;
44  QString d_unittxt;
45 
46  signal_marker(int i, QwtPlot *plot);
47 
49 
50  void add_text(std::string text);
51  void set_label_y(qreal yval);
52  void set_marker(int i, float center, float bw, int unit);
53  QString basic_text();
54  void set_label_text(QString qstring);
55  };
56 
57  }
58 }
59 
60 #endif //GR_INSPECTOR_SIGNAL_MARKER_H
void set_label_text(QString qstring)
Definition: signal_marker.h:33
signal_marker(int i, QwtPlot *plot)
QwtPlotZoneItem * d_zone
Definition: signal_marker.h:40
QwtPlotMarker * d_label
Definition: signal_marker.h:39
void set_label_y(qreal yval)
void add_text(std::string text)
QString d_unittxt
Definition: signal_marker.h:44
void set_marker(int i, float center, float bw, int unit)
int d_unit
Definition: signal_marker.h:43
float d_bw
Definition: signal_marker.h:42
Definition: ofdm_bouzegzi_c.h:30
float d_freq
Definition: signal_marker.h:42
QwtPlot * d_plot
Definition: signal_marker.h:41
int d_number
Definition: signal_marker.h:43
QwtPlotMarker * d_center
Definition: signal_marker.h:38