Mercurial > hg > svgui
annotate layer/Colour3DPlotRenderer.cpp @ 1074:6f98aa5291d4 spectrogram-minor-refactor
Pull out render timer
author | Chris Cannam |
---|---|
date | Wed, 29 Jun 2016 14:04:57 +0100 |
parents | cb4c9fb37ddc |
children | 2e1d6c2ed3ee |
rev | line source |
---|---|
Chris@1071 | 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ |
Chris@1071 | 2 |
Chris@1071 | 3 /* |
Chris@1071 | 4 Sonic Visualiser |
Chris@1071 | 5 An audio file viewer and annotation editor. |
Chris@1071 | 6 Centre for Digital Music, Queen Mary, University of London. |
Chris@1071 | 7 This file copyright 2006-2016 Chris Cannam and QMUL. |
Chris@1071 | 8 |
Chris@1071 | 9 This program is free software; you can redistribute it and/or |
Chris@1071 | 10 modify it under the terms of the GNU General Public License as |
Chris@1071 | 11 published by the Free Software Foundation; either version 2 of the |
Chris@1071 | 12 License, or (at your option) any later version. See the file |
Chris@1071 | 13 COPYING included with this distribution for more information. |
Chris@1071 | 14 */ |
Chris@1071 | 15 |
Chris@1071 | 16 #include "Colour3DPlotRenderer.h" |
Chris@1074 | 17 #include "RenderTimer.h" |
Chris@1071 | 18 |
Chris@1073 | 19 Colour3DPlotRenderer::RenderResult |
Chris@1073 | 20 Colour3DPlotRenderer::render(QPainter &paint, |
Chris@1073 | 21 QRect rect, |
Chris@1073 | 22 bool complete) |
Chris@1073 | 23 { |
Chris@1073 | 24 //!!! todo: timing/incomplete paint |
Chris@1073 | 25 |
Chris@1073 | 26 //!!! todo: peak frequency style |
Chris@1073 | 27 |
Chris@1073 | 28 //!!! todo: transparent style from Colour3DPlot |
Chris@1074 | 29 |
Chris@1074 | 30 //!!! todo: bin boundary alignment when in BinResolution |
Chris@1074 | 31 |
Chris@1074 | 32 return { rect, {} }; |
Chris@1073 | 33 } |
Chris@1073 | 34 |