comparison layer/SpectrogramLayer.cpp @ 1115:ee8e73dc5c8b spectrogram-minor-refactor

Re-enable a couple more features
author Chris Cannam
date Tue, 19 Jul 2016 15:02:44 +0100
parents 261a00010918
children 64709d4d09ef
comparison
equal deleted inserted replaced
1114:a42e5a3c63ef 1115:ee8e73dc5c8b
1088 return true; 1088 return true;
1089 } 1089 }
1090 1090
1091 double 1091 double
1092 SpectrogramLayer::getYForBin(const LayerGeometryProvider *, double) const { 1092 SpectrogramLayer::getYForBin(const LayerGeometryProvider *, double) const {
1093 //!!! not implemented 1093 //!!! not implemented -- needed for non-opaque render
1094
1095 //!!! this will crash, as it stands, when a spectrogram without
1096 //!!! smoothing is zoomed in
1097
1098 //!!! overlap with range methods
1094 throw std::logic_error("not implemented"); 1099 throw std::logic_error("not implemented");
1095 } 1100 }
1096 1101
1097 double 1102 double
1098 SpectrogramLayer::getBinForY(const LayerGeometryProvider *v, double y) const 1103 SpectrogramLayer::getBinForY(const LayerGeometryProvider *v, double y) const
1477 Colour3DPlotRenderer::Parameters params; 1482 Colour3DPlotRenderer::Parameters params;
1478 params.colourScale = ColourScale(cparams); 1483 params.colourScale = ColourScale(cparams);
1479 params.normalization = m_normalization; 1484 params.normalization = m_normalization;
1480 params.binDisplay = m_binDisplay; 1485 params.binDisplay = m_binDisplay;
1481 params.binScale = m_binScale; 1486 params.binScale = m_binScale;
1482 params.alwaysOpaque = true; 1487 params.alwaysOpaque = false;
1483 params.invertVertical = false; 1488 params.invertVertical = false;
1484 params.colourRotation = m_colourRotation; 1489 params.colourRotation = m_colourRotation;
1485 1490
1486 Preferences::SpectrogramSmoothing smoothing = 1491 Preferences::SpectrogramSmoothing smoothing =
1487 Preferences::getInstance()->getSpectrogramSmoothing(); 1492 Preferences::getInstance()->getSpectrogramSmoothing();