Mercurial > hg > svgui
comparison layer/Colour3DPlotRenderer.cpp @ 1139:2976f57164ac spectrogram-minor-refactor
Reconnect double-click region select in spectrogram
author | Chris Cannam |
---|---|
date | Thu, 04 Aug 2016 17:29:33 +0100 |
parents | 998e31e92dbe |
children | f19dcb288123 |
comparison
equal
deleted
inserted
replaced
1138:998e31e92dbe | 1139:2976f57164ac |
---|---|
23 #include "data/model/FFTModel.h" | 23 #include "data/model/FFTModel.h" |
24 | 24 |
25 #include "LayerGeometryProvider.h" | 25 #include "LayerGeometryProvider.h" |
26 #include "VerticalBinLayer.h" | 26 #include "VerticalBinLayer.h" |
27 #include "PaintAssistant.h" | 27 #include "PaintAssistant.h" |
28 #include "ImageRegionFinder.h" | |
28 | 29 |
29 #include "view/ViewManager.h" // for main model sample rate. Pity | 30 #include "view/ViewManager.h" // for main model sample rate. Pity |
30 | 31 |
31 #include <vector> | 32 #include <vector> |
32 | 33 |
1033 m_drawBuffer.fill(0); | 1034 m_drawBuffer.fill(0); |
1034 m_magRanges.clear(); | 1035 m_magRanges.clear(); |
1035 } | 1036 } |
1036 } | 1037 } |
1037 | 1038 |
1038 | 1039 QRect |
1040 Colour3DPlotRenderer::findSimilarRegionExtents(QPoint p) const | |
1041 { | |
1042 QImage image = m_cache.getImage(); | |
1043 ImageRegionFinder finder; | |
1044 QRect rect = finder.findRegionExtents(&image, p); | |
1045 return rect; | |
1046 } |