diff options
author | trondeau | 2009-02-28 04:15:05 +0000 |
---|---|---|
committer | trondeau | 2009-02-28 04:15:05 +0000 |
commit | c57b705cf907ad3329da629f9d4dbbd82dc53c08 (patch) | |
tree | 6efa03e5c510a723832ada88caf6f5467321c70e /gr-qtgui/src/lib/ConstellationDisplayPlot.h | |
parent | 916a20271b7d81edc40dfc18468634311172c952 (diff) | |
download | gnuradio-c57b705cf907ad3329da629f9d4dbbd82dc53c08.tar.gz gnuradio-c57b705cf907ad3329da629f9d4dbbd82dc53c08.tar.bz2 gnuradio-c57b705cf907ad3329da629f9d4dbbd82dc53c08.zip |
Adding a constellation plot and an example for viewing constellations of digital modulations.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10537 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-qtgui/src/lib/ConstellationDisplayPlot.h')
-rw-r--r-- | gr-qtgui/src/lib/ConstellationDisplayPlot.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/gr-qtgui/src/lib/ConstellationDisplayPlot.h b/gr-qtgui/src/lib/ConstellationDisplayPlot.h new file mode 100644 index 000000000..d7604ea84 --- /dev/null +++ b/gr-qtgui/src/lib/ConstellationDisplayPlot.h @@ -0,0 +1,49 @@ +#ifndef CONSTELLATION_DISPLAY_PLOT_HPP +#define CONSTELLATION_DISPLAY_PLOT_HPP + +#include <qwt_plot.h> +#include <qwt_painter.h> +#include <qwt_plot_canvas.h> +#include <qwt_plot_curve.h> +#include <qwt_scale_engine.h> +#include <qwt_scale_widget.h> +#include <qwt_plot_zoomer.h> +#include <qwt_plot_panner.h> +#include <qwt_plot_marker.h> +#include <highResTimeFunctions.h> +#include <qwt_symbol.h> + +class ConstellationDisplayPlot:public QwtPlot{ + Q_OBJECT + +public: + ConstellationDisplayPlot(QWidget*); + virtual ~ConstellationDisplayPlot(); + + void PlotNewData(const double* realDataPoints, const double* imagDataPoints, + const int64_t numDataPoints); + + virtual void replot(); + +protected slots: + void LegendEntryChecked(QwtPlotItem *plotItem, bool on); + +protected: + +private: + QwtPlotCurve* _plot_curve; + + QwtPlotPanner* _panner; + QwtPlotZoomer* _zoomer; + + double* _realDataPoints; + double* _imagDataPoints; + + timespec _lastReplot; + + int64_t _numPoints; + + double _displayIntervalTime; +}; + +#endif /* CONSTELLATION_DISPLAY_PLOT_HPP */ |