summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/plot_waterfall.cc
diff options
context:
space:
mode:
authorTom Rondeau2011-10-16 16:32:41 -0400
committerTom Rondeau2011-10-16 16:32:41 -0400
commit4496fae2deea200755225c007a26f4c7be0470e9 (patch)
tree88a6c2e22e53180b07f48dd5d9fb33aa06217189 /gr-qtgui/lib/plot_waterfall.cc
parent4ba2c75f9109b750f8c04b60a04f2100e33e9416 (diff)
downloadgnuradio-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.cc29
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;