GNU Radio Manual and C++ API Reference
3.7.5
The Free & Open Software Radio Ecosystem
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
void
autoScaleX
();
62
63
private
slots:
64
void
newData(
const
QEvent*);
65
66
private
:
67
QIntValidator* d_int_validator;
68
69
double
d_startFrequency;
70
double
d_stopFrequency;
71
72
int
d_npoints;
73
74
bool
d_semilogx;
75
bool
d_semilogy;
76
77
NPointsMenu
*d_nptsmenu;
78
NPointsMenu
*d_nbinsmenu;
79
QAction *d_semilogxmenu;
80
QAction *d_semilogymenu;
81
82
QAction *d_accum_act;
83
QAction *d_autoscalex_act;
84
bool
d_autoscalex_state;
85
};
86
87
#endif
/* HISTOGRAM_DISPLAY_FORM_H */
gr-qtgui
include
gnuradio
qtgui
histogramdisplayform.h
Generated on Fri Oct 3 2014 00:33:51 for GNU Radio Manual and C++ API Reference by
1.8.1.2