![]() |
OpenMS
3.0.0
|
Painter2D for ConsensusFeatures. More...
#include <OpenMS/VISUAL/Painter2DBase.h>
Public Member Functions | |
| Painter2DConsensus (const LayerDataConsensus *parent) | |
| C'tor which remembers the layer to paint. More... | |
| void | paint (QPainter *, Plot2DCanvas *canvas, int layer_index) override |
| Paints items using the given painter onto the canvas. More... | |
| void | highlightElement (QPainter *painter, Plot2DCanvas *canvas, const PeakIndex element) override |
| 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... | |
Public Member Functions inherited from Painter2DBase | |
| virtual | ~Painter2DBase ()=default |
Protected Member Functions | |
| void | paintConsensusElements_ (QPainter *painter, Plot2DCanvas *canvas, Size layer_index) |
| Paints the consensus elements of a consensus features layer. More... | |
| void | paintConsensusElement_ (QPainter *painter, Plot2DCanvas *canvas, Size layer_index, const ConsensusFeature &cf) |
| Paints one consensus element of a consensus features layer. More... | |
| bool | isConsensusFeatureVisible_ (const Plot2DCanvas *canvas, const ConsensusFeature &cf, Size layer_index) |
| checks if any element of a consensus feature is currently visible. More... | |
Protected Attributes | |
| const LayerDataConsensus * | layer_ |
| 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) |
Painter2D for ConsensusFeatures.
| Painter2DConsensus | ( | const LayerDataConsensus * | parent | ) |
C'tor which remembers the layer to paint.
|
overridevirtual |
Emphasize a certain element (e.g. feature), e.g. when mouse hovering. By default, nothing is highlighted. Override for subclasses if you need highlighting.
| painter | The painter used for drawing |
| canvas | The canvas to paint onto (should expose all the details needed, like canvas size, draw mode, colors etc) |
| element | Which item of the current layer should be drawn? |
Reimplemented from Painter2DBase.
|
protected |
checks if any element of a consensus feature is currently visible.
| canvas | The canvas (for configuration details) |
| cf | The ConsensusFeature that needs checking |
| layer_index | Index of the layer. |
|
overridevirtual |
Paints items using the given painter onto the canvas.
| painter | The painter used for drawing |
| canvas | The canvas to paint onto (should expose all the details needed, like canvas size, draw mode, colors etc) |
| layer_index | Which layer is currently painted |
Implements Painter2DBase.
|
protected |
Paints one consensus element of a consensus features layer.
| painter | The QPainter to paint on |
| canvas | The canvas (for configuration details) |
| layer_index | Index of the layer |
| cf | Reference to the consensus feature to be painted |
|
protected |
Paints the consensus elements of a consensus features layer.
| painter | The QPainter to paint on |
| canvas | The canvas (for configuration details) |
| layer_index | Index of the layer |
|
protected |
the data to paint