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

Method showChromatograms

src/openms_gui/source/VISUAL/TVDIATreeTabController.cpp:164–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162 }
163
164 void TVDIATreeTabController::showChromatograms(const OSWIndexTrace& trace)
165 {
166 Plot1DWidget* w = tv_->getActive1DWidget();
167 if (w == nullptr)
168 { // currently not a 1d widget... ignore the signal
169 return;
170 }
171 auto* layer_ptr = dynamic_cast<LayerDataChrom*>(&w->canvas()->getCurrentLayer());
172 if (!layer_ptr)
173 { // not a chrom layer?
174 std::cerr << __FILE__ << ": " << __LINE__ << " showChromatograms() invoked on Non-Chrom layer... weird..\n";
175 return;
176 }
177 MiniLayer ml(*layer_ptr);
178 // clear all layers
179 w->canvas()->removeLayers();
180 // add new layers
181 if (showChromatogramsInCanvas_(trace, ml, w))
182 {
183 tv_->updateBarsAndMenus();
184 }
185 }
186
187 bool TVDIATreeTabController::showChromatogramsInCanvas_(const OSWIndexTrace& trace, MiniLayer& ml, Plot1DWidget* w)
188 {

Callers

nothing calls this directly

Calls 3

getActive1DWidgetMethod · 0.80
getCurrentLayerMethod · 0.80
updateBarsAndMenusMethod · 0.80

Tested by

no test coverage detected