GNU Radio Manual and C++ API Reference  3.10.9.1
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  * SPDX-License-Identifier: GPL-3.0-or-later
8  *
9  */
10 
11 #ifndef CONSTELLATION_DISPLAY_FORM_H
12 #define CONSTELLATION_DISPLAY_FORM_H
13 
15 #include <gnuradio/qtgui/api.h>
17 #include <QtGui/QtGui>
18 #include <vector>
19 
21 
22 /*!
23  * \brief DisplayForm child for managing constellaton (I&Q) plots.
24  * \ingroup qtgui_blk
25  */
27 {
28  Q_OBJECT
29 
30 public:
31  ConstellationDisplayForm(int nplots = 1, QWidget* parent = 0);
33 
35 
36  int getNPoints() const;
39  float getTriggerLevel() const;
40  int getTriggerChannel() const;
41  std::string getTriggerTagKey() const;
42 
43 public slots:
44  void customEvent(QEvent* e) override;
45  void setNPoints(const int);
46 
47  void setSampleRate(const QString& samprate) override;
48  void setYaxis(double min, double max);
49  void setXaxis(double min, double max);
50  void autoScale(bool en) override;
51 
55  void setTriggerLevel(QString s);
56  void setTriggerLevel(float level);
57  void setTriggerChannel(int chan);
58  void setTriggerTagKey(QString s);
59  void setTriggerTagKey(const std::string& s);
60 
61 private slots:
62  void newData(const QEvent*) override;
63 
64 private:
65  QIntValidator* d_int_validator;
66  int d_npoints;
67 
68  NPointsMenu* d_nptsmenu;
69 
70  QMenu* d_triggermenu;
71  TriggerModeMenu* d_tr_mode_menu;
72  TriggerSlopeMenu* d_tr_slope_menu;
73  PopupMenu* d_tr_level_act;
74  TriggerChannelMenu* d_tr_channel_menu;
75  PopupMenu* d_tr_tag_key_act;
76 
77  gr::qtgui::trigger_mode d_trig_mode;
78  gr::qtgui::trigger_slope d_trig_slope;
79  float d_trig_level;
80  int d_trig_channel;
81  std::string d_trig_tag_key;
82 };
83 
84 #endif /* CONSTELLATION_DISPLAY_FORM_H */
DisplayForm child for managing constellaton (I&Q) plots.
Definition: constellationdisplayform.h:27
int getTriggerChannel() const
void setXaxis(double min, double max)
std::string getTriggerTagKey() const
void setTriggerSlope(gr::qtgui::trigger_slope slope)
gr::qtgui::trigger_slope getTriggerSlope() const
void setSampleRate(const QString &samprate) override
float getTriggerLevel() const
void autoScale(bool en) override
void setTriggerChannel(int chan)
ConstellationDisplayForm(int nplots=1, QWidget *parent=0)
void updateTrigger(gr::qtgui::trigger_mode mode)
void setTriggerTagKey(const std::string &s)
gr::qtgui::trigger_mode getTriggerMode() const
~ConstellationDisplayForm() override
void setTriggerMode(gr::qtgui::trigger_mode mode)
void setNPoints(const int)
void setTriggerTagKey(QString s)
void setTriggerLevel(float level)
void setTriggerLevel(QString s)
void setYaxis(double min, double max)
void customEvent(QEvent *e) override
ConstellationDisplayPlot * getPlot() override
QWidget for displaying constellaton (I&Q) plots.
Definition: ConstellationDisplayPlot.h:24
Base class for setting up and managing QTGUI plot forms.
Definition: displayform.h:30
Definition: form_menus.h:679
Definition: form_menus.h:1191
Definition: form_menus.h:986
Definition: form_menus.h:843
Definition: form_menus.h:920
#define QTGUI_API
Definition: gr-qtgui/include/gnuradio/qtgui/api.h:18
trigger_mode
Definition: trigger_mode.h:17
trigger_slope
Definition: trigger_mode.h:24
float min(float a, float b)