MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / activateLayer

Method activateLayer

src/openms_gui/source/VISUAL/Plot2DCanvas.cpp:315–325  ·  view source on GitHub ↗

change the current layer

Source from the content-addressed store, hash-verified

313
314 // change the current layer
315 void Plot2DCanvas::activateLayer(Size layer_index)
316 {
317 // unselect all peaks
318 selected_peak_.clear();
319 measurement_start_.clear();
320
321 layers_.setCurrentLayer(layer_index);
322 emit layerActivated(this);
323
324 update_(OPENMS_PRETTY_FUNCTION);
325 }
326
327 void Plot2DCanvas::recalculateSnapFactor_()
328 {

Callers

nothing calls this directly

Calls 2

setCurrentLayerMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected