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

Method SpectrumCanvas

src/visual/SpectrumCanvas.cpp:34–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32wxEND_EVENT_TABLE()
33
34SpectrumCanvas::SpectrumCanvas(wxWindow *parent, const wxGLAttributes& dispAttrs) :
35 InteractiveCanvas(parent, dispAttrs), waterfallCanvas(nullptr) {
36
37 glContext = new PrimaryGLContext(this, &wxGetApp().GetContext(this), wxGetApp().GetContextAttributes());
38
39 visualDataQueue->set_max_num_items(1);
40
41 SetCursor(wxCURSOR_SIZEWE);
42 scaleFactor = 1.0;
43 resetScaleFactor = false;
44 scaleFactorEnabled = false;
45 bwChange = 0.0;
46}
47
48SpectrumCanvas::~SpectrumCanvas() = default;
49

Callers

nothing calls this directly

Calls 2

GetContextAttributesMethod · 0.80
set_max_num_itemsMethod · 0.80

Tested by

no test coverage detected