| 10 | #include "CubicSDRDefs.h" |
| 11 | |
| 12 | SpectrumPanel::SpectrumPanel() { |
| 13 | floorValue = 0; |
| 14 | ceilValue = 1; |
| 15 | showDb = true; |
| 16 | useDbOfs = true; |
| 17 | fftSize = DEFAULT_FFT_SIZE; |
| 18 | bandwidth = DEFAULT_DEMOD_BW; |
| 19 | freq = 0; |
| 20 | |
| 21 | setFill(GLPANEL_FILL_GRAD_Y); |
| 22 | setFillColor(ThemeMgr::mgr.currentTheme->fftBackground * 2.0, ThemeMgr::mgr.currentTheme->fftBackground); |
| 23 | |
| 24 | dbPanelCeil.setMarginPx(0); |
| 25 | dbPanelCeil.setFill(GLPanel::GLPANEL_FILL_GRAD_X); |
| 26 | dbPanelCeil.setFillColor(RGBA4f(0.2f,0.2f,0.2f,5.0f), RGBA4f(0.2f,0.2f,0.2f,0.0f)); |
| 27 | |
| 28 | dbPanelFloor.setMarginPx(0); |
| 29 | dbPanelFloor.setFill(GLPanel::GLPANEL_FILL_GRAD_X); |
| 30 | dbPanelFloor.setFillColor(RGBA4f(0.2f,0.2f,0.2f,5.0f), RGBA4f(0.2f,0.2f,0.2f,0.0f)); |
| 31 | } |
| 32 | |
| 33 | |
| 34 | float SpectrumPanel::getFloorValue() const { |
nothing calls this directly
no test coverage detected