GNU Radio 3.7.0-50 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
>
27
#include <
gnuradio/qtgui/spectrumUpdateEvents.h
>
28
#include <
gnuradio/qtgui/ConstellationDisplayPlot.h
>
29
#include <QtGui/QtGui>
30
#include <vector>
31
32
#include <
gnuradio/qtgui/displayform.h
>
33
34
/*!
35
* \brief DisplayForm child for managing constellaton (I&Q) plots.
36
* \ingroup qtgui_blk
37
*/
38
class
QTGUI_API
ConstellationDisplayForm
:
public
DisplayForm
39
{
40
Q_OBJECT
41
42
public
:
43
ConstellationDisplayForm
(
int
nplots=1, QWidget* parent = 0);
44
~
ConstellationDisplayForm
();
45
46
ConstellationDisplayPlot
*
getPlot
();
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* _intValidator;
64
int
d_npoints;
65
};
66
67
#endif
/* CONSTELLATION_DISPLAY_FORM_H */
gnuradio
gr-qtgui
include
gnuradio
qtgui
constellationdisplayform.h
Generated by
1.8.1.2