GNU Radio 3.7.1 C++ API
gr::qtgui::sink_c Class Reference

A graphical sink to display freq, spec, time, and const plots. More...

#include <sink_c.h>

Inheritance diagram for gr::qtgui::sink_c:

List of all members.

Public Types

typedef boost::shared_ptr< sink_csptr

Public Member Functions

virtual void exec_ ()=0
virtual PyObject * pyqwidget ()=0
virtual void set_fft_size (const int fftsize)=0
virtual int fft_size () const =0
virtual void set_frequency_range (const double centerfreq, const double bandwidth)=0
virtual void set_fft_power_db (double min, double max)=0
virtual void set_update_time (double t)=0

Static Public Member Functions

static sptr make (int fftsize, int wintype, double fc, double bw, const std::string &name, bool plotfreq, bool plotwaterfall, bool plottime, bool plotconst, QWidget *parent=NULL)
 Build a complex qtgui sink.

Public Attributes

QApplication * d_qApplication

Detailed Description

A graphical sink to display freq, spec, time, and const plots.

This is a QT-based graphical sink the takes a complex stream and plots it. The default action is to plot the signal as a PSD (FFT), spectrogram (waterfall), time domain I&Q, and constellation (I vs. Q) plots. The plots may be turned off by setting the appropriate boolean value in the constructor to False.


Member Typedef Documentation


Member Function Documentation

virtual void gr::qtgui::sink_c::exec_ ( ) [pure virtual]
virtual int gr::qtgui::sink_c::fft_size ( ) const [pure virtual]
static sptr gr::qtgui::sink_c::make ( int  fftsize,
int  wintype,
double  fc,
double  bw,
const std::string &  name,
bool  plotfreq,
bool  plotwaterfall,
bool  plottime,
bool  plotconst,
QWidget *  parent = NULL 
) [static]

Build a complex qtgui sink.

Parameters:
fftsizesize of the FFT to compute and display
wintypetype of window to apply (see gnuradio/filter/firdes.h)
fccenter frequency of signal (use for x-axis labels)
bwbandwidth of signal (used to set x-axis labels)
nametitle for the plot
plotfreqToggle frequency plot on/off
plotwaterfallToggle waterfall plot on/off
plottimeToggle time plot on/off
plotconstToggle constellation plot on/off
parenta QWidget parent object, if any
virtual PyObject* gr::qtgui::sink_c::pyqwidget ( ) [pure virtual]
virtual void gr::qtgui::sink_c::set_fft_power_db ( double  min,
double  max 
) [pure virtual]
virtual void gr::qtgui::sink_c::set_fft_size ( const int  fftsize) [pure virtual]
virtual void gr::qtgui::sink_c::set_frequency_range ( const double  centerfreq,
const double  bandwidth 
) [pure virtual]
virtual void gr::qtgui::sink_c::set_update_time ( double  t) [pure virtual]

Member Data Documentation


The documentation for this class was generated from the following file: