GNU Radio 3.7.1-52 C++ API
histogramdisplayform.h
Go to the documentation of this file.
1
/* -*- c++ -*- */
2
/*
3
* Copyright 2013 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 HISTOGRAM_DISPLAY_FORM_H
24
#define HISTOGRAM_DISPLAY_FORM_H
25
26
#include <
gnuradio/qtgui/spectrumUpdateEvents.h
>
27
#include <
gnuradio/qtgui/HistogramDisplayPlot.h
>
28
#include <QtGui/QtGui>
29
#include <vector>
30
31
#include <
gnuradio/qtgui/displayform.h
>
32
33
/*!
34
* \brief DisplayForm child for managing histogram domain plots.
35
* \ingroup qtgui_blk
36
*/
37
class
HistogramDisplayForm
:
public
DisplayForm
38
{
39
Q_OBJECT
40
41
public
:
42
HistogramDisplayForm
(
int
nplots=1, QWidget* parent = 0);
43
~HistogramDisplayForm
();
44
45
HistogramDisplayPlot
*
getPlot
();
46
47
int
getNPoints
()
const
;
48
49
public
slots:
50
void
customEvent
(QEvent * e);
51
52
void
setYaxis
(
double
min
,
double
max);
53
void
setXaxis
(
double
min,
double
max);
54
void
setNPoints
(
const
int
);
55
void
autoScale
(
bool
en);
56
void
setSemilogx
(
bool
en);
57
void
setSemilogy
(
bool
en);
58
59
void
setNumBins
(
const
int
);
60
void
setAccumulate
(
bool
en);
61
62
private
slots:
63
void
newData(
const
QEvent*);
64
65
private
:
66
QIntValidator* _intValidator;
67
68
double
_startFrequency;
69
double
_stopFrequency;
70
71
int
d_npoints;
72
73
bool
d_semilogx;
74
bool
d_semilogy;
75
76
QAction *d_semilogxmenu;
77
QAction *d_semilogymenu;
78
};
79
80
#endif
/* HISTOGRAM_DISPLAY_FORM_H */
gnuradio
gr-qtgui
include
gnuradio
qtgui
histogramdisplayform.h
Generated by
1.8.1.1