GNU Radio Manual and C++ API Reference  3.8.2.0
The Free & Open Software Radio Ecosystem
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 
27 #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;
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 
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 */
ConstellationDisplayForm::customEvent
void customEvent(QEvent *e)
QTGUI_API
#define QTGUI_API
Definition: gr-qtgui/include/gnuradio/qtgui/api.h:30
NPointsMenu
Definition: form_menus.h:937
TriggerSlopeMenu
Definition: form_menus.h:1165
TriggerChannelMenu
Definition: form_menus.h:1232
ConstellationDisplayForm::setTriggerSlope
void setTriggerSlope(gr::qtgui::trigger_slope slope)
ConstellationDisplayForm::setTriggerTagKey
void setTriggerTagKey(QString s)
ConstellationDisplayForm::setTriggerTagKey
void setTriggerTagKey(const std::string &s)
ConstellationDisplayForm::updateTrigger
void updateTrigger(gr::qtgui::trigger_mode mode)
displayform.h
gr::trellis::min
float min(float a, float b)
ConstellationDisplayForm::getPlot
ConstellationDisplayPlot * getPlot()
PopupMenu
Definition: form_menus.h:1439
ConstellationDisplayForm::setTriggerLevel
void setTriggerLevel(QString s)
ConstellationDisplayForm::setYaxis
void setYaxis(double min, double max)
ConstellationDisplayForm::setTriggerMode
void setTriggerMode(gr::qtgui::trigger_mode mode)
ConstellationDisplayForm::getNPoints
int getNPoints() const
api.h
ConstellationDisplayForm::autoScale
void autoScale(bool en)
ConstellationDisplayForm::getTriggerMode
gr::qtgui::trigger_mode getTriggerMode() const
ConstellationDisplayForm::getTriggerLevel
float getTriggerLevel() const
ConstellationDisplayForm::getTriggerSlope
gr::qtgui::trigger_slope getTriggerSlope() const
ConstellationDisplayForm::getTriggerTagKey
std::string getTriggerTagKey() const
ConstellationDisplayForm::getTriggerChannel
int getTriggerChannel() const
ConstellationDisplayForm::ConstellationDisplayForm
ConstellationDisplayForm(int nplots=1, QWidget *parent=0)
spectrumUpdateEvents.h
ConstellationDisplayForm::setTriggerLevel
void setTriggerLevel(float level)
ConstellationDisplayForm::setSampleRate
void setSampleRate(const QString &samprate)
ConstellationDisplayPlot.h
ConstellationDisplayForm::setXaxis
void setXaxis(double min, double max)
ConstellationDisplayForm
DisplayForm child for managing constellaton (I&Q) plots.
Definition: constellationdisplayform.h:39
ConstellationDisplayForm::~ConstellationDisplayForm
~ConstellationDisplayForm()
ConstellationDisplayForm::setNPoints
void setNPoints(const int)
DisplayForm
Base class for setting up and managing QTGUI plot forms.
Definition: displayform.h:42
ConstellationDisplayForm::setTriggerChannel
void setTriggerChannel(int chan)
gr::qtgui::trigger_slope
trigger_slope
Definition: trigger_mode.h:36
gr::qtgui::trigger_mode
trigger_mode
Definition: trigger_mode.h:29
ConstellationDisplayPlot
QWidget for displaying constellaton (I&Q) plots.
Definition: ConstellationDisplayPlot.h:36
TriggerModeMenu
Definition: form_menus.h:1087