Mercurial > hg > svgui
comparison layer/Colour3DPlotRenderer.cpp @ 1075:2e1d6c2ed3ee spectrogram-minor-refactor
Another tiny bit
author | Chris Cannam |
---|---|
date | Wed, 29 Jun 2016 15:13:54 +0100 |
parents | 6f98aa5291d4 |
children | e536dfc6b250 |
comparison
equal
deleted
inserted
replaced
1074:6f98aa5291d4 | 1075:2e1d6c2ed3ee |
---|---|
14 */ | 14 */ |
15 | 15 |
16 #include "Colour3DPlotRenderer.h" | 16 #include "Colour3DPlotRenderer.h" |
17 #include "RenderTimer.h" | 17 #include "RenderTimer.h" |
18 | 18 |
19 #include "data/model/DenseThreeDimensionalModel.h" | |
20 #include "data/model/Dense3DModelPeakCache.h" | |
21 #include "data/model/FFTModel.h" | |
22 | |
23 #include "view/LayerGeometryProvider.h" | |
24 | |
19 Colour3DPlotRenderer::RenderResult | 25 Colour3DPlotRenderer::RenderResult |
20 Colour3DPlotRenderer::render(QPainter &paint, | 26 Colour3DPlotRenderer::render(QPainter &paint, |
21 QRect rect, | 27 QRect rect, |
22 bool complete) | 28 bool complete) |
23 { | 29 { |
30 LayerGeometryProvider *v = m_sources.geometryProvider; | |
31 if (!v) { | |
32 throw std::logic_error("no LayerGeometryProvider provided"); | |
33 } | |
34 | |
35 DenseThreeDimensionalModel *model = m_sources.source; | |
36 if (!model || !model->isOK() || !model->isReady()) { | |
37 throw std::logic_error("no source model provided, or model not ready"); | |
38 } | |
39 | |
40 sv_frame_t startFrame = v->getStartFrame(); | |
41 | |
42 | |
24 //!!! todo: timing/incomplete paint | 43 //!!! todo: timing/incomplete paint |
25 | 44 |
26 //!!! todo: peak frequency style | 45 //!!! todo: peak frequency style |
27 | 46 |
28 //!!! todo: transparent style from Colour3DPlot | 47 //!!! todo: transparent style from Colour3DPlot |