diff layer/Colour3DPlotRenderer.h @ 1096:6288f1b5f49b spectrogram-minor-refactor

Far more pragmatic update strategy
author Chris Cannam
date Mon, 11 Jul 2016 14:37:03 +0100
parents ba62684a4512
children 92ac1fce7102
line wrap: on
line diff
--- a/layer/Colour3DPlotRenderer.h	Mon Jul 11 10:38:23 2016 +0100
+++ b/layer/Colour3DPlotRenderer.h	Mon Jul 11 14:37:03 2016 +0100
@@ -147,6 +147,20 @@
      */
     RenderResult renderTimeConstrained(LayerGeometryProvider *v,
                                        QPainter &paint, QRect rect);
+
+    /**
+     * Return the area of the largest rectangle within the entire area
+     * of the cache that is unavailable in the cache. This is only
+     * valid in relation to a preceding render() call which is
+     * presumed to have set the area, start frame, and zoom level for
+     * the cache. It could be used to establish a suitable region for
+     * a subsequent paint request (because if an area is not in the
+     * cache, it cannot have been rendered since the cache was
+     * cleared).
+     *
+     * Returns an empty QRect if the cache is entirely valid.
+     */
+    QRect getLargestUncachedRect();
     
 private:
     Sources m_sources;