GNU Radio C++ API Reference: constellationdisplayform.h Source File

| GNU Radio C++ API Reference 3.10.12.0 The Free & Open Software Radio Ecosystem |

Loading...
Searching...
No Matches
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
14#include <gnuradio/qtgui/ConstellationDisplayPlot.h>
15#include <gnuradio/qtgui/api.h>
16#include <gnuradio/qtgui/spectrumUpdateEvents.h>
17#include <QtGui/QtGui>
18#include <vector>
19
20#include <gnuradio/qtgui/displayform.h>
21
22/*!
23 * \brief DisplayForm child for managing constellaton (I&Q) plots.
24 * \ingroup qtgui_blk
25 */
26 class QTGUI_API ConstellationDisplayForm : public DisplayForm
27{
28 Q_OBJECT
29
30public:
31 ConstellationDisplayForm(int nplots = 1, QWidget* parent = 0);
32 ~ConstellationDisplayForm() override;
33
34 ConstellationDisplayPlot* getPlot() override;
35
36 int getNPoints() const;
37 gr::qtgui::trigger_mode getTriggerMode() const;
38 gr::qtgui::trigger_slope getTriggerSlope() const;
39 float getTriggerLevel() const;
40 int getTriggerChannel() const;
41 std::string getTriggerTagKey() const;
42
43public 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
52 void updateTrigger(gr::qtgui::trigger_mode mode);
53 void setTriggerMode(gr::qtgui::trigger_mode mode);
54 void setTriggerSlope(gr::qtgui::trigger_slope slope);
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
61private slots:
62 void newData(const QEvent*) override;
63
64private:
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 */
ConstellationDisplayPlot.h
ConstellationDisplayForm::getTriggerChannel
int getTriggerChannel() const
ConstellationDisplayForm::setXaxis
void setXaxis(double min, double max)
ConstellationDisplayForm::getTriggerTagKey
std::string getTriggerTagKey() const
ConstellationDisplayForm::setTriggerSlope
void setTriggerSlope(gr::qtgui::trigger_slope slope)
ConstellationDisplayForm::getTriggerSlope
gr::qtgui::trigger_slope getTriggerSlope() const
ConstellationDisplayForm::getNPoints
int getNPoints() const
ConstellationDisplayForm::setSampleRate
void setSampleRate(const QString &samprate) override
ConstellationDisplayForm::getTriggerLevel
float getTriggerLevel() const
ConstellationDisplayForm::autoScale
void autoScale(bool en) override
ConstellationDisplayForm::setTriggerChannel
void setTriggerChannel(int chan)
ConstellationDisplayForm::getPlot
ConstellationDisplayPlot * getPlot() override
ConstellationDisplayForm::ConstellationDisplayForm
ConstellationDisplayForm(int nplots=1, QWidget *parent=0)
ConstellationDisplayForm::updateTrigger
void updateTrigger(gr::qtgui::trigger_mode mode)
ConstellationDisplayForm::setTriggerTagKey
void setTriggerTagKey(const std::string &s)
ConstellationDisplayForm::getTriggerMode
gr::qtgui::trigger_mode getTriggerMode() const
ConstellationDisplayForm::~ConstellationDisplayForm
~ConstellationDisplayForm() override
ConstellationDisplayForm::setTriggerMode
void setTriggerMode(gr::qtgui::trigger_mode mode)
ConstellationDisplayForm::setNPoints
void setNPoints(const int)
ConstellationDisplayForm::setTriggerTagKey
void setTriggerTagKey(QString s)
ConstellationDisplayForm::setTriggerLevel
void setTriggerLevel(float level)
ConstellationDisplayForm::setTriggerLevel
void setTriggerLevel(QString s)
ConstellationDisplayForm::setYaxis
void setYaxis(double min, double max)
ConstellationDisplayForm::customEvent
void customEvent(QEvent *e) override
ConstellationDisplayPlot
QWidget for displaying constellaton (I&Q) plots.
Definition ConstellationDisplayPlot.h:24
DisplayForm::DisplayForm
DisplayForm(int nplots=1, QWidget *parent=0)
NPointsMenu
Definition form_menus.h:679
PopupMenu
Definition form_menus.h:1191
TriggerChannelMenu
Definition form_menus.h:986
TriggerModeMenu
Definition form_menus.h:843
TriggerSlopeMenu
Definition form_menus.h:920
displayform.h
api.h
QTGUI_API
#define QTGUI_API
Definition gr-qtgui/include/gnuradio/qtgui/api.h:18
gr::qtgui::trigger_mode
trigger_mode
Definition trigger_mode.h:17
gr::qtgui::trigger_slope
trigger_slope
Definition trigger_mode.h:24
spectrumUpdateEvents.h