| 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 | { |
nothing calls this directly
no test coverage detected