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

Method TuningCanvas

src/visual/TuningCanvas.cpp:36–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34wxEND_EVENT_TABLE()
35
36TuningCanvas::TuningCanvas(wxWindow *parent, const wxGLAttributes& dispAttrs) :
37 InteractiveCanvas(parent, dispAttrs), dragAccum(0), uxDown(0), top(false), bottom(false), freq(-1), bw(-1), center(-1), halfBand(false) {
38
39 glContext = new TuningContext(this, &wxGetApp().GetContext(this), wxGetApp().GetContextAttributes());
40
41 hoverIndex = 0;
42 downIndex = 0;
43 hoverState = TUNING_HOVER_NONE;
44 downState = TUNING_HOVER_NONE;
45 dragging = false;
46
47 freqDP = -1.0;
48 freqW = (1.0f / 3.0f) * 2.0f;
49
50 bwDP = -1.0 + (2.25 / 3.0);
51 bwW = (1.0 / 4.0) * 2.0;
52
53 centerDP = -1.0f + (2.0f / 3.0f) * 2.0f;
54 centerW = (1.0f / 3.0f) * 2.0f;
55
56 currentPPM = lastPPM = 0;
57}
58
59TuningCanvas::~TuningCanvas() = default;
60

Callers

nothing calls this directly

Calls 1

GetContextAttributesMethod · 0.80

Tested by

no test coverage detected