MCPcopy Create free account
hub / github.com/cjcliffe/CubicSDR / SpectrumPanel

Method SpectrumPanel

src/panel/SpectrumPanel.cpp:12–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10#include "CubicSDRDefs.h"
11
12SpectrumPanel::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
34float SpectrumPanel::getFloorValue() const {

Callers

nothing calls this directly

Calls 4

RGBA4fClass · 0.85
setMarginPxMethod · 0.80
setFillMethod · 0.80
setFillColorMethod · 0.80

Tested by

no test coverage detected