diff options
author | Tom Rondeau | 2011-10-16 16:32:41 -0400 |
---|---|---|
committer | Tom Rondeau | 2011-10-16 16:32:41 -0400 |
commit | 4496fae2deea200755225c007a26f4c7be0470e9 (patch) | |
tree | 88a6c2e22e53180b07f48dd5d9fb33aa06217189 /gr-qtgui/lib/plot_waterfall.cc | |
parent | 4ba2c75f9109b750f8c04b60a04f2100e33e9416 (diff) | |
download | gnuradio-4496fae2deea200755225c007a26f4c7be0470e9.tar.gz gnuradio-4496fae2deea200755225c007a26f4c7be0470e9.tar.bz2 gnuradio-4496fae2deea200755225c007a26f4c7be0470e9.zip |
qtgui: waterfall plot mostly working under qwt6 (plots, but updates to scale and color not working yet).
Diffstat (limited to 'gr-qtgui/lib/plot_waterfall.cc')
-rw-r--r-- | gr-qtgui/lib/plot_waterfall.cc | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/gr-qtgui/lib/plot_waterfall.cc b/gr-qtgui/lib/plot_waterfall.cc index e8e9c0e49..26f41e722 100644 --- a/gr-qtgui/lib/plot_waterfall.cc +++ b/gr-qtgui/lib/plot_waterfall.cc @@ -36,18 +36,18 @@ public: class PlotWaterfall::PrivateData { public: - PrivateData() - { - data = NULL; - colorMap = new QwtLinearColorMap(); - } - ~PrivateData() - { - delete colorMap; - } - - WaterfallData *data; - QwtColorMap *colorMap; + PrivateData() + { + data = NULL; + colorMap = new QwtLinearColorMap(); + } + ~PrivateData() + { + delete colorMap; + } + + WaterfallData *data; + QwtColorMap *colorMap; }; /*! @@ -121,8 +121,9 @@ void PlotWaterfall::setColorMap(const QwtColorMap &colorMap) */ const QwtColorMap &PlotWaterfall::colorMap() const { - return *d_data->colorMap; + return *d_data->colorMap; } + /*! \return Bounding rect of the data \sa QwtRasterData::boundingRect @@ -223,7 +224,7 @@ QImage PlotWaterfall::renderImage(const QwtScaleMap &xMap, #if QWT_VERSION < 0x060000 const QwtDoubleInterval intensityRange = d_data->data->range(); #else - const QwtInterval intensityRange = d_data->data->interval(); + const QwtInterval intensityRange = d_data->data->interval(Qt::ZAxis); #endif if ( !intensityRange.isValid() ) return image; |