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