OpenMS
|
#include <OpenMS/VISUAL/PlotCanvas.h>
Public Member Functions | |
void | addLayer (LayerDataBaseUPtr new_layer) |
const LayerDataBase & | getLayer (const Size index) const |
LayerDataBase & | getLayer (const Size index) |
const LayerDataBase & | getCurrentLayer () const |
LayerDataBase & | 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< LayerDataBaseUPtr > | 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 LayerDataBase::type (in short: peak data below, ID data on top).
void addLayer | ( | LayerDataBaseUPtr | new_layer | ) |
adds a new layer and makes it the current layer
new_layer | Takes ownership of the layer! |
bool empty | ( | ) | const |
LayerDataBase& getCurrentLayer | ( | ) |
const LayerDataBase& getCurrentLayer | ( | ) | const |
Size getCurrentLayerIndex | ( | ) | const |
LayerDataBase& getLayer | ( | const Size | index | ) |
const LayerDataBase& getLayer | ( | const Size | index | ) | 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 |