GNU Radio Manual and C++ API Reference 3.10.5.1
The Free & Open Software Radio Ecosystem
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 * SPDX-License-Identifier: GPL-3.0-or-later
8 *
9 */
10
11#ifndef HISTOGRAM_DISPLAY_FORM_H
12#define HISTOGRAM_DISPLAY_FORM_H
13
16#include <QtGui/QtGui>
17#include <vector>
18
20
21/*!
22 * \brief DisplayForm child for managing histogram domain plots.
23 * \ingroup qtgui_blk
24 */
26{
27 Q_OBJECT
28
29public:
30 HistogramDisplayForm(int nplots = 1, QWidget* parent = 0);
32
34
35 int getNPoints() const;
36
37public slots:
38 void customEvent(QEvent* e) override;
39
40 void setYaxis(double min, double max);
41 void setXaxis(double min, double max);
42 void setNPoints(const int);
43 void autoScale(bool en) override;
44 void setSemilogx(bool en);
45 void setSemilogy(bool en);
46
47 void setNumBins(const int);
48 void setAccumulate(bool en);
50 void autoScaleX();
51
52private slots:
53 void newData(const QEvent*) override;
54
55private:
56 QIntValidator* d_int_validator;
57
58 double d_startFrequency;
59 double d_stopFrequency;
60
61 int d_npoints;
62
63 bool d_semilogx;
64 bool d_semilogy;
65
66 NPointsMenu* d_nptsmenu;
67 NPointsMenu* d_nbinsmenu;
68 QAction* d_semilogxmenu;
69 QAction* d_semilogymenu;
70
71 QAction* d_accum_act;
72 QAction* d_autoscalex_act;
73 bool d_autoscalex_state;
74};
75
76#endif /* HISTOGRAM_DISPLAY_FORM_H */
Base class for setting up and managing QTGUI plot forms.
Definition: displayform.h:30
DisplayForm child for managing histogram domain plots.
Definition: histogramdisplayform.h:26
~HistogramDisplayForm() override
void setNPoints(const int)
void setAccumulate(bool en)
int getNPoints() const
void setXaxis(double min, double max)
void setYaxis(double min, double max)
HistogramDisplayForm(int nplots=1, QWidget *parent=0)
void autoScale(bool en) override
void setSemilogy(bool en)
void setNumBins(const int)
void setSemilogx(bool en)
void customEvent(QEvent *e) override
HistogramDisplayPlot * getPlot() override
QWidget for displaying time domain plots.
Definition: HistogramDisplayPlot.h:24
Definition: form_menus.h:679
float min(float a, float b)