diff options
Diffstat (limited to 'gr-qtgui/lib/TimeRasterDisplayPlot.cc')
-rw-r--r-- | gr-qtgui/lib/TimeRasterDisplayPlot.cc | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gr-qtgui/lib/TimeRasterDisplayPlot.cc b/gr-qtgui/lib/TimeRasterDisplayPlot.cc index 537a7e4ef7..48fb7f7b4a 100644 --- a/gr-qtgui/lib/TimeRasterDisplayPlot.cc +++ b/gr-qtgui/lib/TimeRasterDisplayPlot.cc @@ -336,6 +336,12 @@ TimeRasterDisplayPlot::numCols() const return d_cols; } +int +TimeRasterDisplayPlot::getAlpha(int which) +{ + return d_raster[which]->alpha(); +} + void TimeRasterDisplayPlot::setPlotDimensions(const double rows, const double cols, const double units, const std::string &strunits) @@ -398,6 +404,30 @@ TimeRasterDisplayPlot::setIntensityRange(const double minIntensity, } } +double +TimeRasterDisplayPlot::getMinIntensity(int which) const +{ +#if QWT_VERSION < 0x060000 + QwtDoubleInterval r = d_data[which]->range(); +#else + QwtInterval r = d_data[which]->interval(Qt::ZAxis); +#endif + + return r.minValue(); +} + +double +TimeRasterDisplayPlot::getMaxIntensity(int which) const +{ +#if QWT_VERSION < 0x060000 + QwtDoubleInterval r = d_data[which]->range(); +#else + QwtInterval r = d_data[which]->interval(Qt::ZAxis); +#endif + + return r.maxValue(); +} + void TimeRasterDisplayPlot::replot() { |