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

Function getCurrentLayerData

src/openms_gui/source/VISUAL/DataSelectionTabs.cpp:96–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94 }
95
96 LayerDataBase* getCurrentLayerData(TOPPViewBase* tv)
97 {
98 PlotCanvas* cc = tv->getActiveCanvas();
99 if (cc == nullptr)
100 {
101 return nullptr;
102 }
103 if (cc->getCurrentLayerIndex() == Size(-1))
104 {
105 return nullptr;
106 }
107 return &(cc->getCurrentLayer());
108 }
109
110 // called externally
111 // and internally by signals

Callers 1

callUpdateEntriesMethod · 0.85

Calls 3

getActiveCanvasMethod · 0.80
getCurrentLayerIndexMethod · 0.80
getCurrentLayerMethod · 0.80

Tested by

no test coverage detected