summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/TimeRasterDisplayPlot.cc
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2013-02-20 21:30:02 -0500
committerTom Rondeau <trondeau@vt.edu>2013-02-21 11:57:13 -0500
commit18b20e591ffb20951605dfc4b7cbe5964b5159fa (patch)
treec5ecd53f2211e163500a7e129ce74f3f82193d28 /gr-qtgui/lib/TimeRasterDisplayPlot.cc
parent9c27fc06bd0b473de50e76b845e25b835e26b6ff (diff)
qtgui: adding time raster static plot tool.
Diffstat (limited to 'gr-qtgui/lib/TimeRasterDisplayPlot.cc')
-rw-r--r--gr-qtgui/lib/TimeRasterDisplayPlot.cc30
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()
{