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

Method SetLevel

src/visual/GainCanvas.cpp:107–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107void GainCanvas::SetLevel() {
108 CubicVR::vec2 mpos = mouseTracker.getGLXY();
109
110 for (auto gi : gainPanels) {
111 if (gi->isMeterHit(mpos)) {
112 float value = gi->getMeterHitValue(mpos);
113
114 gi->setValue(value);
115 gi->setChanged(true);
116 break;
117 }
118 }
119}
120
121void GainCanvas::OnMouseMoved(wxMouseEvent& event) {
122 InteractiveCanvas::OnMouseMoved(event);

Callers

nothing calls this directly

Calls 5

getGLXYMethod · 0.80
isMeterHitMethod · 0.80
getMeterHitValueMethod · 0.80
setValueMethod · 0.80
setChangedMethod · 0.80

Tested by

no test coverage detected