OpenMS  2.8.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Painter1DPeak Class Reference

Painter1D for spectra. More...

#include <OpenMS/VISUAL/Painter1DBase.h>

Inheritance diagram for Painter1DPeak:
[legend]
Collaboration diagram for Painter1DPeak:
[legend]

Public Member Functions

 Painter1DPeak (const LayerDataPeak *parent)
 C'tor which remembers the layer to paint. More...
 
void paint (QPainter *, Plot1DCanvas *canvas, int layer_index) override
 Implementation of base class. More...
 

Protected Member Functions

void drawAnnotations_ (QPainter &painter, Plot1DCanvas *canvas)
 draw all Annotation1DItems attached to the layer More...
 
void drawMZAtInterestingPeaks_ (QPainter &painter, Plot1DCanvas *canvas, MSSpectrum::ConstIterator vbegin, MSSpectrum::ConstIterator vend)
 annotate up to 10 interesting peaks in the range vbegin to @pvend with their m/z values (using deisotoping and intensity filtering) More...
 

Protected Attributes

const LayerDataPeaklayer_
 the data to paint More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Painter1DBase
static void drawDashedLine (const QPoint &from, const QPoint &to, QPainter *painter, QColor color)
 static method to draw a dashed line More...
 

Detailed Description

Painter1D for spectra.

Constructor & Destructor Documentation

◆ Painter1DPeak()

Painter1DPeak ( const LayerDataPeak parent)

C'tor which remembers the layer to paint.

Member Function Documentation

◆ drawAnnotations_()

void drawAnnotations_ ( QPainter &  painter,
Plot1DCanvas canvas 
)
protected

draw all Annotation1DItems attached to the layer

◆ drawMZAtInterestingPeaks_()

void drawMZAtInterestingPeaks_ ( QPainter &  painter,
Plot1DCanvas canvas,
MSSpectrum::ConstIterator  vbegin,
MSSpectrum::ConstIterator  vend 
)
protected

annotate up to 10 interesting peaks in the range vbegin to @pvend with their m/z values (using deisotoping and intensity filtering)

◆ paint()

void paint ( QPainter *  ,
Plot1DCanvas canvas,
int  layer_index 
)
overridevirtual

Implementation of base class.

Implements Painter1DBase.

Member Data Documentation

◆ layer_

const LayerDataPeak* layer_
protected

the data to paint