GNU Radio Manual and C++ API Reference 3.8.5.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 * 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
42public:
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
55public 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
73private slots:
74 void newData(const QEvent*);
75
76private:
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 */
DisplayForm child for managing constellaton (I&Q) plots.
Definition constellationdisplayform.h:39
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
float getTriggerLevel() const
void setTriggerChannel(int chan)
ConstellationDisplayForm(int nplots=1, QWidget *parent=0)
void setSampleRate(const QString &samprate)
void updateTrigger(gr::qtgui::trigger_mode mode)
void setTriggerTagKey(const std::string &s)
gr::qtgui::trigger_mode getTriggerMode() const
void setTriggerMode(gr::qtgui::trigger_mode mode)
void setNPoints(const int)
ConstellationDisplayPlot * getPlot()
void setTriggerTagKey(QString s)
void setTriggerLevel(float level)
void setTriggerLevel(QString s)
void setYaxis(double min, double max)
void customEvent(QEvent *e)
QWidget for displaying constellaton (I&Q) plots.
Definition ConstellationDisplayPlot.h:36
Base class for setting up and managing QTGUI plot forms.
Definition displayform.h:42
Definition form_menus.h:937
Definition form_menus.h:1439
Definition form_menus.h:1232
Definition form_menus.h:1087
Definition form_menus.h:1165
#define QTGUI_API
Definition gr-qtgui/include/gnuradio/qtgui/api.h:30
trigger_mode
Definition trigger_mode.h:29
trigger_slope
Definition trigger_mode.h:36