called by SpectraTreeTab::spectrumSelected()
| 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) |
nothing calls this directly
no test coverage detected