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

Method activate1DSpectrum

src/openms_gui/source/VISUAL/TVSpectraViewController.cpp:120–129  ·  view source on GitHub ↗

called by SpectraTreeTab::spectrumSelected()

Source from the content-addressed store, hash-verified

118
119 // called by SpectraTreeTab::spectrumSelected()
120 void TVSpectraViewController::activate1DSpectrum(int index)
121 {
122 Plot1DWidget* widget_1d = tv_->getActive1DWidget();
123
124 // return if no active 1D widget is present or no layers are present (e.g. the addPeakLayer call failed)
125 if (widget_1d == nullptr) return;
126 if (widget_1d->canvas()->getLayerCount() == 0) return;
127
128 widget_1d->canvas()->activateSpectrum(index);
129 }
130
131 // called by SpectraTreeTab::chromsSelected()
132 void TVSpectraViewController::activate1DSpectrum(const std::vector<int>& indices)

Callers

nothing calls this directly

Calls 8

add1DChromLayersFunction · 0.85
getActive1DWidgetMethod · 0.80
getLayerCountMethod · 0.80
activateSpectrumMethod · 0.80
getCurrentLayerMethod · 0.80
updateBarsAndMenusMethod · 0.80
getNameMethod · 0.45
setIntensityModeMethod · 0.45

Tested by

no test coverage detected