diff layer/Colour3DPlotRenderer.h @ 1139:2976f57164ac spectrogram-minor-refactor

Reconnect double-click region select in spectrogram
author Chris Cannam
date Thu, 04 Aug 2016 17:29:33 +0100
parents 998e31e92dbe
children 436df5f24bda
line wrap: on
line diff
--- a/layer/Colour3DPlotRenderer.h	Thu Aug 04 14:02:56 2016 +0100
+++ b/layer/Colour3DPlotRenderer.h	Thu Aug 04 17:29:33 2016 +0100
@@ -222,6 +222,13 @@
     QColor getColour(double value) const {
         return m_params.colourScale.getColour(value, m_params.colourRotation);
     }
+
+    /**
+     * Return the enclosing rectangle for the region of similar colour
+     * to the given point within the cache. Return an empty QRect if
+     * this is not possible. \see ImageRegionFinder
+     */
+    QRect findSimilarRegionExtents(QPoint point) const;
     
 private:
     Sources m_sources;