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

Method removeLayer

src/openms_gui/source/VISUAL/Plot3DCanvas.cpp:123–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121 }
122
123 void Plot3DCanvas::removeLayer(Size layer_index)
124 {
125 if (layer_index >= getLayerCount())
126 {
127 return;
128 }
129
130 layers_.removeLayer(layer_index);
131
132 recalculateRanges_();
133 if (layers_.empty())
134 {
135 overall_data_range_.clearRanges();
136 update_buffer_ = true;
137 update_(OPENMS_PRETTY_FUNCTION);
138 return;
139 }
140
141 resetZoom();
142 }
143
144 Plot3DOpenGLCanvas * Plot3DCanvas::openglwidget() const
145 {

Callers

nothing calls this directly

Calls 5

getLayerCountFunction · 0.85
recalculateRanges_Function · 0.85
resetZoomFunction · 0.85
clearRangesMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected