diff layer/Colour3DPlotRenderer.cpp @ 1076:e536dfc6b250 spectrogram-minor-refactor

Two functions, rather than one with a boolean arg
author Chris Cannam
date Thu, 30 Jun 2016 10:36:52 +0100
parents 2e1d6c2ed3ee
children 5144d7185fb5
line wrap: on
line diff
--- a/layer/Colour3DPlotRenderer.cpp	Wed Jun 29 15:13:54 2016 +0100
+++ b/layer/Colour3DPlotRenderer.cpp	Thu Jun 30 10:36:52 2016 +0100
@@ -23,9 +23,19 @@
 #include "view/LayerGeometryProvider.h"
 
 Colour3DPlotRenderer::RenderResult
-Colour3DPlotRenderer::render(QPainter &paint,
-			     QRect rect,
-			     bool complete)
+Colour3DPlotRenderer::render(QPainter &paint, QRect rect)
+{
+    return render(paint, rect, false);
+}
+
+Colour3DPlotRenderer::RenderResult
+Colour3DPlotRenderer::renderTimeConstrained(QPainter &paint, QRect rect)
+{
+    return render(paint, rect, true);
+}
+
+Colour3DPlotRenderer::RenderResult
+Colour3DPlotRenderer::render(QPainter &paint, QRect rect, bool timeConstrained)
 {
     LayerGeometryProvider *v = m_sources.geometryProvider;
     if (!v) {