From 18b20e591ffb20951605dfc4b7cbe5964b5159fa Mon Sep 17 00:00:00 2001
From: Tom Rondeau <trondeau@vt.edu>
Date: Wed, 20 Feb 2013 21:30:02 -0500
Subject: qtgui: adding time raster static plot tool.

---
 gr-qtgui/lib/TimeRasterDisplayPlot.cc | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

(limited to 'gr-qtgui/lib/TimeRasterDisplayPlot.cc')

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()
 {
-- 
cgit v1.2.3