|
| Spectrum3DCanvas (const Param &preferences, QWidget *parent=0) |
| Constructor. More...
|
|
virtual | ~Spectrum3DCanvas () |
| Destructor. More...
|
|
Spectrum3DOpenGLCanvas * | openglwidget () |
| returns the Spectrum3DOpenGLcanvas More...
|
|
bool | isLegendShown () const |
| Returns if the legend is shown. More...
|
|
void | showLegend (bool) |
| Shows/hides the legend. More...
|
|
virtual void | showCurrentLayerPreferences () |
| Shows the preferences dialog of the active layer. More...
|
|
virtual void | saveCurrentLayer (bool visible) |
| Saves the current layer data. More...
|
|
|
void | resizeEvent (QResizeEvent *e) |
|
void | contextMenuEvent (QContextMenuEvent *e) |
|
| SpectrumCanvas (const Param &preferences, QWidget *parent=0) |
| Default constructor. More...
|
|
virtual | ~SpectrumCanvas () |
| Destructor. More...
|
|
void | setSpectrumWidget (SpectrumWidget *widget) |
| Sets the spectrum widget. More...
|
|
SpectrumWidget * | getSpectrumWidget () const |
| Returns the spectrum widget. More...
|
|
Int | getActionMode () const |
| Returns the action mode. More...
|
|
IntensityModes | getIntensityMode () const |
| Returns the intensity mode. More...
|
|
void | setIntensityMode (IntensityModes mod) |
| Sets the intensity mode. More...
|
|
bool | gridLinesShown () const |
| Returns if the grid is currently shown. More...
|
|
const LayerData & | getLayer (Size index) const |
| returns the layer data with index index More...
|
|
const LayerData & | getCurrentLayer () const |
| returns the layer data of the active layer More...
|
|
Size | getCurrentLayerIndex () const |
| returns the index of the active layer More...
|
|
LayerData & | getCurrentLayer () |
| returns the layer data of the active layer More...
|
|
bool | getLayerFlag (LayerData::Flags f) const |
| returns a layer flag of the current layer More...
|
|
void | setLayerFlag (LayerData::Flags f, bool value) |
| sets a layer flag of the current layer More...
|
|
bool | getLayerFlag (Size layer, LayerData::Flags f) const |
| returns a layer flag of the layer layer More...
|
|
void | setLayerFlag (Size layer, LayerData::Flags f, bool value) |
| sets a layer flag of the layer layer More...
|
|
void | setLabel (LayerData::LabelType label) |
|
const AreaType & | getVisibleArea () const |
| Returns the currently visible area. More...
|
|
virtual void | setFilters (const DataFilters &filters) |
| Sets the filters applied to the data before drawing (for the current layer) More...
|
|
bool | isMzToXAxis () |
| Returns the mapping of m/z to axes. More...
|
|
void | mzToXAxis (bool mz_to_x_axis) |
| Sets the mapping of m/z to axes. More...
|
|
bool | addLayer (std::vector< PeptideIdentification > &peptides, const String &filename="") |
| Add an identification data layer. More...
|
|
float | getCurrentMinIntensity () const |
| Returns the minimum intensity of the active layer. More...
|
|
float | getCurrentMaxIntensity () const |
| Returns the maximum intensity of the active layer. More...
|
|
float | getMinIntensity (Size index) const |
| Returns the minimum intensity of the layer with index index . More...
|
|
float | getMaxIntensity (Size index) const |
| Returns the maximum intensity of the layer with index index . More...
|
|
void | setLayerName (Size i, const String &name) |
| Sets the name of layer i . More...
|
|
String | getLayerName (Size i) |
| Gets the name of layer i . More...
|
|
void | setCurrentLayerParameters (const Param ¶m) |
| Sets the parameters of the current layer. More...
|
|
const DRange< 3 > & | getDataRange () |
| Returns the area which encloses all data points. More...
|
|
double | getSnapFactor () |
| Returns the first intensity scaling factor for 'snap to maximum intensity mode'. More...
|
|
double | getPercentageFactor () |
| Returns the percentage factor. More...
|
|
virtual void | showMetaData (bool modifiable=false, Int index=-1) |
| Shows a dialog with the meta data. More...
|
|
Size | getLayerCount () const |
| Returns the number of layers. More...
|
|
Size | activeLayerIndex () const |
| Returns the index of the active layer. More...
|
|
virtual void | activateLayer (Size layer_index)=0 |
| change the active layer (the one that is used for selecting and so on) More...
|
|
virtual void | removeLayer (Size layer_index)=0 |
| removes the layer with index layer_index More...
|
|
bool | addLayer (ExperimentSharedPtrType map, const String &filename="") |
| Add a peak data layer. More...
|
|
bool | addLayer (FeatureMapSharedPtrType map, const String &filename="") |
| Add a feature data layer. More...
|
|
bool | addLayer (ConsensusMapSharedPtrType map, const String &filename="") |
| Add a consensus feature data layer. More...
|
|
Public Member Functions inherited from DefaultParamHandler |
| DefaultParamHandler (const String &name) |
| Constructor with name that is displayed in error messages. More...
|
|
| DefaultParamHandler (const DefaultParamHandler &rhs) |
| Copy constructor. More...
|
|
virtual | ~DefaultParamHandler () |
| Destructor. More...
|
|
virtual DefaultParamHandler & | operator= (const DefaultParamHandler &rhs) |
| Assignment operator. More...
|
|
virtual bool | operator== (const DefaultParamHandler &rhs) const |
| Equality operator. More...
|
|
void | setParameters (const Param ¶m) |
| Sets the parameters. More...
|
|
const Param & | getParameters () const |
| Non-mutable access to the parameters. More...
|
|
const Param & | getDefaults () const |
| Non-mutable access to the default parameters. More...
|
|
const String & | getName () const |
| Non-mutable access to the name. More...
|
|
void | setName (const String &name) |
| Mutable access to the name. More...
|
|
const std::vector< String > & | getSubsections () const |
| Non-mutable access to the registered subsections. More...
|
|
|
bool | finishAdding_ () |
| Method that is called when a new layer has been added. More...
|
|
virtual void | update_ (const char *caller_name=0) |
| Updates the displayed data. More...
|
|
virtual void | translateLeft_ (Qt::KeyboardModifiers m) |
| Translation bound to the 'Left' key. More...
|
|
virtual void | translateRight_ (Qt::KeyboardModifiers m) |
| Translation bound to the 'Right' key. More...
|
|
virtual void | translateForward_ () |
| Translation bound to the 'Up' key. More...
|
|
virtual void | translateBackward_ () |
| Translation bound to the 'Down' key. More...
|
|
void | drawText_ (QPainter &painter, QStringList text) |
| Draws several lines of text to the upper right corner of the widget. More...
|
|
double | getIdentificationMZ_ (const Size layer_index, const PeptideIdentification &peptide) const |
| Returns the m/z value of an identification depending on the m/z source of the layer (precursor mass/theoretical peptide mass) More...
|
|
LayerData & | getLayer_ (Size index) |
| Returns the layer with index index . More...
|
|
LayerData & | getCurrentLayer_ () |
| Returns the currently active layer. More...
|
|
ExperimentSharedPtrType | currentPeakData_ () |
| Returns the currently active layer (mutable) More...
|
|
virtual void | intensityModeChange_ () |
| This method is called whenever the intensity mode changes. Reimplement if you need to react on such changes. More...
|
|
virtual void | changeVisibleArea_ (const AreaType &new_area, bool repaint=true, bool add_to_stack=false) |
| Sets the visible area. More...
|
|
virtual void | recalculateSnapFactor_ () |
| Recalculates the intensity scaling factor for 'snap to maximum intensity mode'. More...
|
|
virtual void | updateScrollbars_ () |
| Updates the scroll bars. More...
|
|
PointType | widgetToData_ (double x, double y) |
| Convert widget to chart coordinates. More...
|
|
PointType | widgetToData_ (const QPoint &pos) |
| Calls widgetToData_ with x and y position of pos . More...
|
|
void | dataToWidget_ (double x, double y, QPoint &point) |
| Convert chart to widget coordinates. More...
|
|
virtual void | paintGridLines_ (QPainter &painter) |
| Helper function to paint grid lines. More...
|
|
void | recalculateRanges_ (UInt mz_dim, UInt rt_dim, UInt it_dim) |
| Recalculates the overall_data_range_. More...
|
|
void | modificationStatus_ (Size layer_index, bool modified) |
| Takes all actions necessary when the modification status of a layer changes (signals etc.) More...
|
|
void | adjustBuffer_ () |
| Changes the size of the paint buffer to the currently required size. More...
|
|
void | addDataProcessing_ (PeakMap &map, DataProcessing::ProcessingAction action) const |
| Data processing setter for peak maps. More...
|
|
void | resizeEvent (QResizeEvent *e) |
|
void | wheelEvent (QWheelEvent *e) |
|
void | keyPressEvent (QKeyEvent *e) |
|
void | keyReleaseEvent (QKeyEvent *e) |
|
void | focusOutEvent (QFocusEvent *e) |
|
void | leaveEvent (QEvent *e) |
|
void | enterEvent (QEvent *e) |
|
virtual void | zoom_ (int x, int y, bool zoom_in) |
| Zooms such that screen point x, y would still point to the same data point. More...
|
|
void | zoomBack_ () |
| Go backward in zoom history. More...
|
|
virtual void | zoomForward_ () |
| Go forward in zoom history. More...
|
|
void | zoomAdd_ (const AreaType &area) |
| Add a visible area to the zoom stack. More...
|
|
void | zoomClear_ () |
| Clears the zoom stack and invalidates the current zoom position. After calling this, a valid zoom position has to be added immediately. More...
|
|
Protected Member Functions inherited from DefaultParamHandler |
virtual void | updateMembers_ () |
| This method is used to update extra member variables at the end of the setParameters() method. More...
|
|
void | defaultsToParam_ () |
| Updates the parameters after the defaults have been set in the constructor. More...
|
|
Canvas for 3D-visualization of peak map data.
The Spectrum3DCanvas uses the helper class Spectrum3DOpenGLCanvas for the actual 3D rendering. Deriving Spectrum3DCanvas directly from QGLWidget is not possible due to the "Deadly Diamond" shape of inheritance.
Parameters of this class are:
Name | Type | Default | Restrictions | Description |
default_path |
string | . |
| Default path for loading/storing data. |
background_color |
string | @#ffffff |
| Background color |
dot:shade_mode |
int | 1 |
min: 0 max: 1 | Shade mode: single-color ('flat') or gradient peaks ('smooth'). |
dot:gradient |
string | Linear|0,@#ffea00;6,@#ff0000;14,@#aa00ff;23,@#5500ff;100,@#000000 |
| Peak color gradient. |
dot:interpolation_steps |
int | 1000 |
min: 1 max: 1000 | Interpolation steps for peak color gradient precalculation. |
dot:line_width |
int | 2 |
min: 1 max: 99 | Line width for peaks. |
Note:
- If a section name is documented, the documentation is displayed as tooltip.
- Advanced parameter names are italic.