GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
timerasterdisplayform.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2012,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 TIMERASTER_DISPLAY_FORM_H
12 #define TIMERASTER_DISPLAY_FORM_H
13 
14 #include <gnuradio/filter/firdes.h>
17 #include <QtGui/QtGui>
18 #include <vector>
19 
21 
22 /*!
23  * \brief DisplayForm child for managing time raster plots.
24  * \ingroup qtgui_blk
25  */
27 {
28  Q_OBJECT
29 
30 public:
31  TimeRasterDisplayForm(int nplots = 1,
32  double samp_rate = 1,
33  double rows = 1,
34  double cols = 1,
35  double zmax = 1,
36  QWidget* parent = 0);
38 
40 
41  double numRows();
42  double numCols();
43 
44  int getColorMap(unsigned int which);
45  int getAlpha(unsigned int which);
46  double getMinIntensity(unsigned int which);
47  double getMaxIntensity(unsigned int which);
48 
49 public slots:
50  void customEvent(QEvent* e) override;
51 
52  void setNumRows(double rows);
53  void setNumCols(double cols);
54 
55  void setNumRows(QString rows);
56  void setNumCols(QString cols);
57 
58  void setSampleRate(const double samprate);
59  void setSampleRate(const QString& rate) override;
60 
61  void setXAxis(double min, double max);
62  void setXLabel(const std::string& label);
63  void setYAxis(double min, double max);
64  void setYLabel(const std::string& label);
65 
66  void setIntensityRange(const double minIntensity, const double maxIntensity);
67  void setMaxIntensity(const QString& m);
68  void setMinIntensity(const QString& m);
69 
70  void setColorMap(unsigned int which,
71  const int newType,
72  const QColor lowColor = QColor("white"),
73  const QColor highColor = QColor("white"));
74 
75  void setAlpha(unsigned int which, unsigned int alpha);
76 
77  void autoScale(bool en = false) override;
78 
79 private slots:
80  void newData(const QEvent* updateEvent) override;
81 
82 private:
83  double d_min_val, d_cur_min_val;
84  double d_max_val, d_cur_max_val;
85 };
86 
87 #endif /* TIMERASTER_DISPLAY_FORM_H */
Base class for setting up and managing QTGUI plot forms.
Definition: displayform.h:30
DisplayForm child for managing time raster plots.
Definition: timerasterdisplayform.h:27
int getColorMap(unsigned int which)
void setNumCols(QString cols)
void customEvent(QEvent *e) override
TimeRasterDisplayPlot * getPlot() override
void setSampleRate(const QString &rate) override
void autoScale(bool en=false) override
void setYLabel(const std::string &label)
void setNumRows(QString rows)
double getMinIntensity(unsigned int which)
void setXAxis(double min, double max)
void setSampleRate(const double samprate)
void setYAxis(double min, double max)
void setMinIntensity(const QString &m)
void setAlpha(unsigned int which, unsigned int alpha)
void setIntensityRange(const double minIntensity, const double maxIntensity)
void setMaxIntensity(const QString &m)
double getMaxIntensity(unsigned int which)
void setColorMap(unsigned int which, const int newType, const QColor lowColor=QColor("white"), const QColor highColor=QColor("white"))
int getAlpha(unsigned int which)
~TimeRasterDisplayForm() override
void setNumRows(double rows)
void setNumCols(double cols)
void setXLabel(const std::string &label)
TimeRasterDisplayForm(int nplots=1, double samp_rate=1, double rows=1, double cols=1, double zmax=1, QWidget *parent=0)
QWidget for time raster (time vs. time) plots.
Definition: TimeRasterDisplayPlot.h:30
float min(float a, float b)