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

Method WaterfallCanvas

src/visual/WaterfallCanvas.cpp:42–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40wxEND_EVENT_TABLE()
41
42WaterfallCanvas::WaterfallCanvas(wxWindow *parent, const wxGLAttributes& dispAttrs) :
43 InteractiveCanvas(parent, dispAttrs), dragState(WF_DRAG_NONE), nextDragState(WF_DRAG_NONE), fft_size(0), new_fft_size(0), waterfall_lines(0),
44 dragOfs(0), mouseZoom(1), zoom(1), freqMoving(false), freqMove(0.0), hoverAlpha(1.0) {
45
46 glContext = new PrimaryGLContext(this, &wxGetApp().GetContext(this), wxGetApp().GetContextAttributes());
47 linesPerSecond = DEFAULT_WATERFALL_LPS;
48 lpsIndex = 0;
49 preBuf = false;
50 SetCursor(wxCURSOR_CROSS);
51 scaleMove = 0;
52 minBandwidth = 30000;
53 fft_size_changed.store(false);
54}
55
56WaterfallCanvas::~WaterfallCanvas() = default;
57

Callers

nothing calls this directly

Calls 1

GetContextAttributesMethod · 0.80

Tested by

no test coverage detected