OpenMS  3.0.0
Painter2DIdent Class Reference

Painter2D for Identifications. More...

#include <OpenMS/VISUAL/Painter2DBase.h>

Inheritance diagram for Painter2DIdent:
Painter2DBase

Public Member Functions

 Painter2DIdent (const LayerDataIdent *parent)
 C'tor which remembers the layer to paint. More...
 
void paint (QPainter *, Plot2DCanvas *canvas, int layer_index) override
 Implementation of base class. More...
 
- Public Member Functions inherited from Painter2DBase
virtual ~Painter2DBase ()=default
 
virtual void highlightElement (QPainter *painter, Plot2DCanvas *canvas, const PeakIndex element)
 Emphasize a certain element (e.g. feature), e.g. when mouse hovering. By default, nothing is highlighted. Override for subclasses if you need highlighting. More...
 

Protected Attributes

const LayerDataIdentlayer_
 the data to paint More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from Painter2DBase
static void paintIcon_ (const QPoint &pos, const QRgb &color, const String &icon, Size s, QPainter &p)
 draws squares, circles etc More...
 
static void paintConvexHull_ (QPainter &painter, Plot2DCanvas *canvas, const ConvexHull2D &hull, bool has_identifications)
 Paints a convex hull. More...
 
static void paintConvexHulls_ (QPainter &painter, Plot2DCanvas *canvas, const std::vector< ConvexHull2D > &hulls, bool has_identifications)
 Paints convex hulls. More...
 
static void paintPeptideIDs_ (QPainter *painter, Plot2DCanvas *canvas, const IPeptideIds::PepIds &ids, int layer_index)
 

Detailed Description

Painter2D for Identifications.

Constructor & Destructor Documentation

◆ Painter2DIdent()

Painter2DIdent ( const LayerDataIdent parent)

C'tor which remembers the layer to paint.

Member Function Documentation

◆ paint()

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

Implementation of base class.

Implements Painter2DBase.

Member Data Documentation

◆ layer_

const LayerDataIdent* layer_
protected

the data to paint