GNU Radio Manual and C++ API Reference  3.7.4
The Free & Open Software Radio Ecosystem
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
constellationdisplayform.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2012,2014 Free Software Foundation, Inc.
4  *
5  * This file is part of GNU Radio
6  *
7  * GNU Radio 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  * GNU Radio 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 GNU Radio; 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 CONSTELLATION_DISPLAY_FORM_H
24 #define CONSTELLATION_DISPLAY_FORM_H
25 
26 #include <gnuradio/qtgui/api.h>
29 #include <QtGui/QtGui>
30 #include <vector>
31 
33 
34 /*!
35  * \brief DisplayForm child for managing constellaton (I&Q) plots.
36  * \ingroup qtgui_blk
37  */
39 {
40  Q_OBJECT
41 
42 public:
43  ConstellationDisplayForm(int nplots=1, QWidget* parent = 0);
45 
47 
48  int getNPoints() const;
49  gr::qtgui::trigger_mode getTriggerMode() const;
50  gr::qtgui::trigger_slope getTriggerSlope() const;
51  float getTriggerLevel() const;
52  int getTriggerChannel() const;
53  std::string getTriggerTagKey() const;
54 
55 public slots:
56  void customEvent(QEvent * e);
57  void setNPoints(const int);
58 
59  void setSampleRate(const QString &samprate);
60  void setYaxis(double min, double max);
61  void setXaxis(double min, double max);
62  void autoScale(bool en);
63 
64  void updateTrigger(gr::qtgui::trigger_mode mode);
65  void setTriggerMode(gr::qtgui::trigger_mode mode);
66  void setTriggerSlope(gr::qtgui::trigger_slope slope);
67  void setTriggerLevel(QString s);
68  void setTriggerLevel(float level);
69  void setTriggerChannel(int chan);
70  void setTriggerTagKey(QString s);
71  void setTriggerTagKey(const std::string &s);
72 
73 private slots:
74  void newData(const QEvent*);
75 
76 private:
77  QIntValidator* d_int_validator;
78  int d_npoints;
79 
80  NPointsMenu *d_nptsmenu;
81 
82  QMenu *d_triggermenu;
83  TriggerModeMenu *d_tr_mode_menu;
84  TriggerSlopeMenu *d_tr_slope_menu;
85  PopupMenu *d_tr_level_act;
86  TriggerChannelMenu *d_tr_channel_menu;
87  PopupMenu *d_tr_tag_key_act;
88 
89  gr::qtgui::trigger_mode d_trig_mode;
90  gr::qtgui::trigger_slope d_trig_slope;
91  float d_trig_level;
92  int d_trig_channel;
93  std::string d_trig_tag_key;
94 };
95 
96 #endif /* CONSTELLATION_DISPLAY_FORM_H */
Base class for setting up and managing QTGUI plot forms.
Definition: displayform.h:41
Definition: form_menus.h:1115
Definition: form_menus.h:1484
virtual void setSampleRate(const QString &rate)
float min(float a, float b)
Definition: form_menus.h:962
DisplayForm child for managing constellaton (I&Q) plots.
Definition: constellationdisplayform.h:38
Definition: form_menus.h:1197
virtual DisplayPlot * getPlot()=0
#define QTGUI_API
Definition: gr-qtgui/include/gnuradio/qtgui/api.h:30
trigger_slope
Definition: gr-qtgui/include/gnuradio/qtgui/trigger_mode.h:36
trigger_mode
Definition: gr-qtgui/include/gnuradio/qtgui/trigger_mode.h:29
virtual void customEvent(QEvent *e)=0
QWidget for displaying constellaton (I&Q) plots.
Definition: ConstellationDisplayPlot.h:35
Definition: form_menus.h:1267