GNU Radio Manual and C++ API Reference 3.8.5.0
The Free & Open Software Radio Ecosystem
 
Loading...
Searching...
No Matches
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 * 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 TIMERASTER_DISPLAY_FORM_H
24#define TIMERASTER_DISPLAY_FORM_H
25
29#include <QtGui/QtGui>
30#include <vector>
31
33
34/*!
35 * \brief DisplayForm child for managing time raster plots.
36 * \ingroup qtgui_blk
37 */
39{
40 Q_OBJECT
41
42public:
43 TimeRasterDisplayForm(int nplots = 1,
44 double samp_rate = 1,
45 double rows = 1,
46 double cols = 1,
47 double zmax = 1,
48 QWidget* parent = 0);
50
52
53 double numRows();
54 double numCols();
55
56 int getColorMap(unsigned int which);
57 int getAlpha(unsigned int which);
58 double getMinIntensity(unsigned int which);
59 double getMaxIntensity(unsigned int which);
60
61public slots:
62 void customEvent(QEvent* e);
63
64 void setNumRows(double rows);
65 void setNumCols(double cols);
66
67 void setNumRows(QString rows);
68 void setNumCols(QString cols);
69
70 void setSampleRate(const double samprate);
71 void setSampleRate(const QString& rate);
72
73 void setIntensityRange(const double minIntensity, const double maxIntensity);
74 void setMaxIntensity(const QString& m);
75 void setMinIntensity(const QString& m);
76
77 void setColorMap(unsigned int which,
78 const int newType,
79 const QColor lowColor = QColor("white"),
80 const QColor highColor = QColor("white"));
81
82 void setAlpha(unsigned int which, unsigned int alpha);
83
84 void autoScale(bool en = false);
85
86private slots:
87 void newData(const QEvent* updateEvent);
88
89private:
90 double d_min_val, d_cur_min_val;
91 double d_max_val, d_cur_max_val;
92};
93
94#endif /* TIMERASTER_DISPLAY_FORM_H */
Base class for setting up and managing QTGUI plot forms.
Definition displayform.h:42
DisplayForm child for managing time raster plots.
Definition timerasterdisplayform.h:39
void autoScale(bool en=false)
int getColorMap(unsigned int which)
void setNumCols(QString cols)
TimeRasterDisplayPlot * getPlot()
void setSampleRate(const QString &rate)
void setNumRows(QString rows)
double getMinIntensity(unsigned int which)
void setSampleRate(const double samprate)
void customEvent(QEvent *e)
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)
void setNumRows(double rows)
void setNumCols(double cols)
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:48