GNU Radio 3.7.1 C++ API
|
00001 /* -*- c++ -*- */ 00002 /* 00003 * Copyright 2012,2013 Free Software Foundation, Inc. 00004 * 00005 * This file is part of GNU Radio 00006 * 00007 * GNU Radio is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation; either version 3, or (at your option) 00010 * any later version. 00011 * 00012 * GNU Radio is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with GNU Radio; see the file COPYING. If not, write to 00019 * the Free Software Foundation, Inc., 51 Franklin Street, 00020 * Boston, MA 02110-1301, USA. 00021 */ 00022 00023 #ifndef TIMERASTER_DISPLAY_FORM_H 00024 #define TIMERASTER_DISPLAY_FORM_H 00025 00026 #include <gnuradio/qtgui/spectrumUpdateEvents.h> 00027 #include <gnuradio/qtgui/TimeRasterDisplayPlot.h> 00028 #include <QtGui/QtGui> 00029 #include <vector> 00030 #include <gnuradio/filter/firdes.h> 00031 00032 #include <gnuradio/qtgui/displayform.h> 00033 00034 /*! 00035 * \brief DisplayForm child for managing time raster plots. 00036 * \ingroup qtgui_blk 00037 */ 00038 class TimeRasterDisplayForm : public DisplayForm 00039 { 00040 Q_OBJECT 00041 00042 public: 00043 TimeRasterDisplayForm(int nplots=1, 00044 double samp_rate=1, 00045 double rows=1, 00046 double cols=1, 00047 double zmax=1, 00048 QWidget* parent = 0); 00049 ~TimeRasterDisplayForm(); 00050 00051 TimeRasterDisplayPlot* getPlot(); 00052 00053 double numRows(); 00054 double numCols(); 00055 00056 int getColorMap(int which); 00057 int getAlpha(int which); 00058 double getMinIntensity(int which); 00059 double getMaxIntensity(int which); 00060 00061 public slots: 00062 void customEvent(QEvent *e); 00063 00064 void setNumRows(double rows); 00065 void setNumCols(double cols); 00066 00067 void setNumRows(QString rows); 00068 void setNumCols(QString cols); 00069 00070 void setSampleRate(const double samprate); 00071 void setSampleRate(const QString &rate); 00072 00073 void setIntensityRange(const double minIntensity, 00074 const double maxIntensity); 00075 00076 void setColorMap(int which, 00077 const int newType, 00078 const QColor lowColor=QColor("white"), 00079 const QColor highColor=QColor("white")); 00080 00081 void setAlpha(int which, int alpha); 00082 00083 void autoScale(bool en=false); 00084 00085 private slots: 00086 void newData(const QEvent *updateEvent); 00087 00088 private: 00089 double _min_val; 00090 double _max_val; 00091 }; 00092 00093 #endif /* TIMERASTER_DISPLAY_FORM_H */