Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
1075:2e1d6c2ed3ee | 1076:e536dfc6b250 |
---|---|
21 #include "data/model/FFTModel.h" | 21 #include "data/model/FFTModel.h" |
22 | 22 |
23 #include "view/LayerGeometryProvider.h" | 23 #include "view/LayerGeometryProvider.h" |
24 | 24 |
25 Colour3DPlotRenderer::RenderResult | 25 Colour3DPlotRenderer::RenderResult |
26 Colour3DPlotRenderer::render(QPainter &paint, | 26 Colour3DPlotRenderer::render(QPainter &paint, QRect rect) |
27 QRect rect, | 27 { |
28 bool complete) | 28 return render(paint, rect, false); |
29 } | |
30 | |
31 Colour3DPlotRenderer::RenderResult | |
32 Colour3DPlotRenderer::renderTimeConstrained(QPainter &paint, QRect rect) | |
33 { | |
34 return render(paint, rect, true); | |
35 } | |
36 | |
37 Colour3DPlotRenderer::RenderResult | |
38 Colour3DPlotRenderer::render(QPainter &paint, QRect rect, bool timeConstrained) | |
29 { | 39 { |
30 LayerGeometryProvider *v = m_sources.geometryProvider; | 40 LayerGeometryProvider *v = m_sources.geometryProvider; |
31 if (!v) { | 41 if (!v) { |
32 throw std::logic_error("no LayerGeometryProvider provided"); | 42 throw std::logic_error("no LayerGeometryProvider provided"); |
33 } | 43 } |