GNU Radio 3.7.2 C++ API
constellationdisplayform.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2012 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 
26 #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;
49 
50 public slots:
51  void customEvent(QEvent * e);
52  void setNPoints(const int);
53 
54  void setSampleRate(const QString &samprate);
55  void setYaxis(double min, double max);
56  void setXaxis(double min, double max);
57  void autoScale(bool en);
58 
59 private slots:
60  void newData(const QEvent*);
61 
62 private:
63  QIntValidator* d_int_validator;
64  int d_npoints;
65 };
66 
67 #endif /* CONSTELLATION_DISPLAY_FORM_H */
Base class for setting up and managing QTGUI plot forms.
Definition: displayform.h:41
virtual void setSampleRate(const QString &rate)
float min(float a, float b)
DisplayForm child for managing constellaton (I&Q) plots.
Definition: constellationdisplayform.h:38
virtual DisplayPlot * getPlot()=0
#define QTGUI_API
Definition: gr-qtgui/include/gnuradio/qtgui/api.h:30
virtual void customEvent(QEvent *e)=0
QWidget for displaying constellaton (I&Q) plots.
Definition: ConstellationDisplayPlot.h:35