OpenMS
2.7.0
|
#include <OpenMS/VISUAL/PlotCanvas.h>
Public Member Functions | |
void | addLayer (LayerData &&new_layer) |
adds a new layer and makes it the current layer More... | |
const LayerData & | getLayer (const Size index) const |
LayerData & | getLayer (const Size index) |
const LayerData & | getCurrentLayer () const |
LayerData & | getCurrentLayer () |
void | setCurrentLayer (Size index) |
throws Exception::IndexOverflow unless index is smaller than getLayerCount() More... | |
Size | getCurrentLayerIndex () const |
bool | empty () const |
Size | getLayerCount () const |
void | removeLayer (Size layer_index) |
void | removeCurrentLayer () |
Protected Attributes | |
std::vector< LayerData > | layers_ |
Private Attributes | |
Size | current_layer_ = -1 |
A class to manage a stack of layers as shown in the layer widget in TOPPView. The order of layers is automatically determined based on LayerData::type (in short: peak data below, ID data on top).
void addLayer | ( | LayerData && | new_layer | ) |
adds a new layer and makes it the current layer
bool empty | ( | ) | const |
LayerData& getCurrentLayer | ( | ) |
const LayerData& getCurrentLayer | ( | ) | const |
Size getCurrentLayerIndex | ( | ) | const |
Size getLayerCount | ( | ) | const |
void removeCurrentLayer | ( | ) |
void removeLayer | ( | Size | layer_index | ) |
void setCurrentLayer | ( | Size | index | ) |
throws Exception::IndexOverflow unless index
is smaller than getLayerCount()
|
private |
|
protected |