Mercurial > hg > svgui
comparison layer/SpectrogramLayer.h @ 20:1deb5f87a18c
* Add getXForFrame / getFrameForX in preference to using the zoom level everywhere
author | Chris Cannam |
---|---|
date | Mon, 30 Jan 2006 13:19:42 +0000 |
parents | 0183ebb725ca |
children | dcdb21b62dbb |
comparison
equal
deleted
inserted
replaced
19:46d8f5add6f0 | 20:1deb5f87a18c |
---|---|
215 long startFrame; | 215 long startFrame; |
216 int zoomLevel; | 216 int zoomLevel; |
217 size_t modelStart; | 217 size_t modelStart; |
218 size_t modelEnd; | 218 size_t modelEnd; |
219 }; | 219 }; |
220 /// LayerRange is only passed in to save lookup time | 220 bool getXBinRange(int x, float &windowMin, float &windowMax) const; |
221 bool getXBinRange(int x, float &windowMin, float &windowMax, | |
222 LayerRange *range = 0) const; | |
223 | 221 |
224 bool getYBinSourceRange(int y, float &freqMin, float &freqMax) const; | 222 bool getYBinSourceRange(int y, float &freqMin, float &freqMax) const; |
225 bool getXBinSourceRange(int x, RealTime &timeMin, RealTime &timeMax) const; | 223 bool getXBinSourceRange(int x, RealTime &timeMin, RealTime &timeMax) const; |
226 bool getXYBinSourceRange(int x, int y, float &dbMin, float &dbMax) const; | 224 bool getXYBinSourceRange(int x, int y, float &dbMin, float &dbMax) const; |
227 | 225 |