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

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

Loading...
Searching...
No Matches
eyedisplayform.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2020 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#ifndef EYE_DISPLAY_FORM_H
11#define EYE_DISPLAY_FORM_H
12
13#include <gnuradio/qtgui/EyeDisplayPlot.h>
14#include <gnuradio/qtgui/eyedisplaysform.h>
15#include <gnuradio/qtgui/spectrumUpdateEvents.h>
16#include <QtGui/QtGui>
17#include <vector>
18
19class EyeControlPanel;
20
21/*!
22 * \brief EyeDisplaysForm child for managing eye pattern plots.
23 * \ingroup qtgui_blk
24 */
25 class EyeDisplayForm : public EyeDisplaysForm
26{
27 Q_OBJECT
28
29public:
30 EyeDisplayForm(int nplots = 1, bool cmplx = false, QWidget* parent = 0);
31 ~EyeDisplayForm() override;
32
33 EyeDisplayPlot* getPlot();
34 EyeDisplayPlot* getSinglePlot(unsigned int);
35
36 int getNPoints() const;
37 int getSamplesPerSymbol() const;
38
39 gr::qtgui::trigger_mode getTriggerMode() const;
40 gr::qtgui::trigger_slope getTriggerSlope() const;
41 float getTriggerLevel() const;
42 float getTriggerDelay() const;
43 int getTriggerChannel() const;
44 std::string getTriggerTagKey() const;
45 void setAxisLabels(bool en);
46
47public slots:
48 void customEvent(QEvent* e) override;
49
50 void setSampleRate(const double samprate);
51 void setSampleRate(const QString& samprate) override;
52 void setYaxis(double min, double max);
53 void setYLabel(const std::string& label, const std::string& unit = "");
54 void setNPoints(const int);
55 void autoScale(bool en) override;
56 void autoScaleShot();
57 void tagMenuSlot(bool en);
58 void setTagMenu(unsigned int which, bool en);
59
60 void updateTrigger(gr::qtgui::trigger_mode mode);
61 void setTriggerMode(gr::qtgui::trigger_mode mode);
62 void setTriggerSlope(gr::qtgui::trigger_slope slope);
63 void setTriggerLevel(float level);
64 void setTriggerDelay(float delay);
65 void setTriggerChannel(int chan);
66 void setTriggerTagKey(QString s);
67 void setTriggerTagKey(const std::string& s);
68
69 void setupControlPanel(bool en);
70 void setupControlPanel();
71 void teardownControlPanel();
72
73private slots:
74 void newData(const QEvent*) override;
75 void notifyYAxisPlus();
76 void notifyYAxisMinus();
77 void notifyYRangePlus();
78 void notifyYRangeMinus();
79 void notifyTriggerMode(const QString& mode);
80 void notifyTriggerSlope(const QString& slope);
81 void notifyTriggerLevelPlus();
82 void notifyTriggerLevelMinus();
83 void notifyTriggerDelayPlus();
84 void notifyTriggerDelayMinus();
85
86signals:
87 void signalTriggerMode(gr::qtgui::trigger_mode mode);
88 void signalTriggerSlope(gr::qtgui::trigger_slope slope);
89 void signalTriggerLevel(float level);
90 void signalTriggerDelay(float delay);
91 void signalReplot();
92 void signalNPoints(const int npts);
93
94private:
95 double d_start_frequency;
96 double d_stop_frequency;
97 double d_current_units;
98 int d_npoints;
99 unsigned int d_rows;
100 unsigned int d_cols;
101 NPointsMenu* d_nptsmenu;
102
103 QAction* d_controlpanelmenu;
104 std::vector<QAction*> d_tagsmenu;
105
106 QMenu* d_triggermenu;
107 TriggerModeMenu* d_tr_mode_menu;
108 TriggerSlopeMenu* d_tr_slope_menu;
109 TriggerChannelMenu* d_tr_channel_menu;
110 PopupMenu* d_tr_tag_key_act;
111
112 gr::qtgui::trigger_mode d_trig_mode;
113 gr::qtgui::trigger_slope d_trig_slope;
114 float d_trig_level;
115 float d_trig_delay;
116 int d_trig_channel;
117 std::string d_trig_tag_key;
118
119 EyeControlPanel* d_controlpanel;
120};
121
122#endif /* EYE_DISPLAY_FORM_H */
EyeDisplayPlot.h
EyeControlPanel
Definition eyecontrolpanel.h:25
EyeDisplayForm::getTriggerMode
gr::qtgui::trigger_mode getTriggerMode() const
EyeDisplayForm::setSampleRate
void setSampleRate(const QString &samprate) override
EyeDisplayForm::setupControlPanel
void setupControlPanel(bool en)
EyeDisplayForm::teardownControlPanel
void teardownControlPanel()
EyeDisplayForm::getTriggerLevel
float getTriggerLevel() const
EyeDisplayForm::setTriggerTagKey
void setTriggerTagKey(QString s)
EyeDisplayForm::autoScale
void autoScale(bool en) override
EyeDisplayForm::signalTriggerLevel
void signalTriggerLevel(float level)
EyeDisplayForm::getTriggerTagKey
std::string getTriggerTagKey() const
EyeDisplayForm::getTriggerDelay
float getTriggerDelay() const
EyeDisplayForm::getTriggerChannel
int getTriggerChannel() const
EyeDisplayForm::setTriggerMode
void setTriggerMode(gr::qtgui::trigger_mode mode)
EyeDisplayForm::signalTriggerMode
void signalTriggerMode(gr::qtgui::trigger_mode mode)
EyeDisplayForm::signalTriggerSlope
void signalTriggerSlope(gr::qtgui::trigger_slope slope)
EyeDisplayForm::setYaxis
void setYaxis(double min, double max)
EyeDisplayForm::setTriggerChannel
void setTriggerChannel(int chan)
EyeDisplayForm::setAxisLabels
void setAxisLabels(bool en)
EyeDisplayForm::tagMenuSlot
void tagMenuSlot(bool en)
EyeDisplayForm::updateTrigger
void updateTrigger(gr::qtgui::trigger_mode mode)
EyeDisplayForm::setYLabel
void setYLabel(const std::string &label, const std::string &unit="")
EyeDisplayForm::getTriggerSlope
gr::qtgui::trigger_slope getTriggerSlope() const
EyeDisplayForm::setTriggerTagKey
void setTriggerTagKey(const std::string &s)
EyeDisplayForm::signalReplot
void signalReplot()
EyeDisplayForm::getNPoints
int getNPoints() const
EyeDisplayForm::getPlot
EyeDisplayPlot * getPlot()
EyeDisplayForm::getSamplesPerSymbol
int getSamplesPerSymbol() const
EyeDisplayForm::setSampleRate
void setSampleRate(const double samprate)
EyeDisplayForm::setTriggerLevel
void setTriggerLevel(float level)
EyeDisplayForm::customEvent
void customEvent(QEvent *e) override
EyeDisplayForm::signalTriggerDelay
void signalTriggerDelay(float delay)
EyeDisplayForm::setTagMenu
void setTagMenu(unsigned int which, bool en)
EyeDisplayForm::setupControlPanel
void setupControlPanel()
EyeDisplayForm::EyeDisplayForm
EyeDisplayForm(int nplots=1, bool cmplx=false, QWidget *parent=0)
EyeDisplayForm::setTriggerDelay
void setTriggerDelay(float delay)
EyeDisplayForm::getSinglePlot
EyeDisplayPlot * getSinglePlot(unsigned int)
EyeDisplayForm::signalNPoints
void signalNPoints(const int npts)
EyeDisplayForm::~EyeDisplayForm
~EyeDisplayForm() override
EyeDisplayForm::setNPoints
void setNPoints(const int)
EyeDisplayForm::setTriggerSlope
void setTriggerSlope(gr::qtgui::trigger_slope slope)
EyeDisplayForm::autoScaleShot
void autoScaleShot()
EyeDisplayPlot
QWidget for displaying eye pattern plots.
Definition EyeDisplayPlot.h:24
EyeDisplaysForm::EyeDisplaysForm
EyeDisplaysForm(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
eyedisplaysform.h
gr::qtgui::trigger_mode
trigger_mode
Definition trigger_mode.h:17
gr::qtgui::trigger_slope
trigger_slope
Definition trigger_mode.h:24
spectrumUpdateEvents.h