GNU Radio Manual and C++ API Reference 3.8.5.0
The Free & Open Software Radio Ecosystem
 
Loading...
Searching...
No Matches
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
28#include <QtGui/QtGui>
29#include <vector>
30
32
33/*!
34 * \brief DisplayForm child for managing histogram domain plots.
35 * \ingroup qtgui_blk
36 */
38{
39 Q_OBJECT
40
41public:
42 HistogramDisplayForm(int nplots = 1, QWidget* parent = 0);
44
46
47 int getNPoints() const;
48
49public 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);
62 void autoScaleX();
63
64private slots:
65 void newData(const QEvent*);
66
67private:
68 QIntValidator* d_int_validator;
69
70 double d_startFrequency;
71 double d_stopFrequency;
72
73 int d_npoints;
74
75 bool d_semilogx;
76 bool d_semilogy;
77
78 NPointsMenu* d_nptsmenu;
79 NPointsMenu* d_nbinsmenu;
80 QAction* d_semilogxmenu;
81 QAction* d_semilogymenu;
82
83 QAction* d_accum_act;
84 QAction* d_autoscalex_act;
85 bool d_autoscalex_state;
86};
87
88#endif /* HISTOGRAM_DISPLAY_FORM_H */
Base class for setting up and managing QTGUI plot forms.
Definition displayform.h:42
DisplayForm child for managing histogram domain plots.
Definition histogramdisplayform.h:38
void setNPoints(const int)
void setAccumulate(bool en)
int getNPoints() const
void setXaxis(double min, double max)
void customEvent(QEvent *e)
void setYaxis(double min, double max)
HistogramDisplayForm(int nplots=1, QWidget *parent=0)
HistogramDisplayPlot * getPlot()
void autoScale(bool en)
void setSemilogy(bool en)
void setNumBins(const int)
void setSemilogx(bool en)
QWidget for displaying time domain plots.
Definition HistogramDisplayPlot.h:36
Definition form_menus.h:937