GNU Radio 3.7.1.1 C++ API
waterfalldisplayform.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 WATERFALL_DISPLAY_FORM_H
24
#define WATERFALL_DISPLAY_FORM_H
25
26
#include <
gnuradio/qtgui/spectrumUpdateEvents.h
>
27
#include <
gnuradio/qtgui/WaterfallDisplayPlot.h
>
28
#include <QtGui/QtGui>
29
#include <vector>
30
#include <
gnuradio/filter/firdes.h
>
31
32
#include <
gnuradio/qtgui/displayform.h
>
33
34
/*!
35
* \brief DisplayForm child for managing waterfall (spectrogram) plots.
36
* \ingroup qtgui_blk
37
*/
38
class
WaterfallDisplayForm
:
public
DisplayForm
39
{
40
Q_OBJECT
41
42
public
:
43
WaterfallDisplayForm
(
int
nplots=1, QWidget* parent = 0);
44
~WaterfallDisplayForm
();
45
46
WaterfallDisplayPlot
*
getPlot
();
47
48
int
getFFTSize
()
const
;
49
float
getFFTAverage
()
const
;
50
gr::filter::firdes::win_type
getFFTWindowType
()
const
;
51
52
int
getColorMap
(
int
which);
53
int
getAlpha
(
int
which);
54
double
getMinIntensity
(
int
which);
55
double
getMaxIntensity
(
int
which);
56
57
void
clearData
();
58
59
public
slots:
60
void
customEvent
(QEvent *e);
61
62
void
setSampleRate
(
const
QString &samprate);
63
void
setFFTSize
(
const
int
);
64
void
setFFTAverage
(
const
float
);
65
void
setFFTWindowType
(
const
gr::filter::firdes::win_type
);
66
67
void
setFrequencyRange
(
const
double
centerfreq,
68
const
double
bandwidth);
69
70
void
setIntensityRange
(
const
double
minIntensity,
71
const
double
maxIntensity);
72
73
void
setAlpha
(
int
which,
int
alpha);
74
75
void
setColorMap
(
int
which,
76
const
int
newType,
77
const
QColor lowColor=QColor(
"white"
),
78
const
QColor highColor=QColor(
"white"
));
79
80
void
autoScale
(
bool
en=
false
);
81
82
private
slots:
83
void
newData(
const
QEvent *updateEvent);
84
85
private
:
86
uint64_t
_numRealDataPoints;
87
QIntValidator* _intValidator;
88
89
double
_samp_rate, _center_freq;
90
int
_fftsize;
91
float
_fftavg;
92
gr::filter::firdes::win_type
_fftwintype;
93
94
double
_min_val;
95
double
_max_val;
96
};
97
98
#endif
/* WATERFALL_DISPLAY_FORM_H */
gnuradio
gr-qtgui
include
gnuradio
qtgui
waterfalldisplayform.h
Generated by
1.8.1.1