GNU Radio Manual and C++ API Reference  3.7.4
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 
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 
41  public:
42  HistogramDisplayForm(int nplots=1, QWidget* parent = 0);
44 
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 */
Base class for setting up and managing QTGUI plot forms.
Definition: displayform.h:41
void autoScale(bool en)
QWidget for displaying time domain plots.
Definition: HistogramDisplayPlot.h:35
void setYaxis(double min, double max)
float min(float a, float b)
DisplayForm child for managing histogram domain plots.
Definition: histogramdisplayform.h:37
Definition: form_menus.h:962
void setSemilogx(bool en)
void setSemilogy(bool en)
void setXaxis(double min, double max)
void setNumBins(const int)
void setNPoints(const int)
HistogramDisplayPlot * getPlot()
void setAccumulate(bool en)
HistogramDisplayForm(int nplots=1, QWidget *parent=0)
void customEvent(QEvent *e)
int getNPoints() const