Image Component Library (ICL)
Public Member Functions | Public Attributes | List of all members
icl::qt::AbstractPlotWidget::Pen Struct Reference

Utility structure for styles usend in subclasses. More...

#include <AbstractPlotWidget.h>

Public Member Functions

 Pen (const QPen &linePen=Qt::NoPen, const QPen &symbolPen=Qt::NoPen, char symbol=' ', int symbolSize=5, const QBrush &fillBrush=Qt::NoBrush)
 creates a row style with given parameters More...
 

Public Attributes

QPen linePen
 pen for line structures More...
 
QPen symbolPen
 pen for symbols More...
 
char symbol
 symbol More...
 
int symbolSize
 symbol size (in pixels, point symbols are always size 1) More...
 
QBrush fillBrush
 fill brush (this is e.g. used to fill the area beyond a function graph) More...
 

Detailed Description

Utility structure for styles usend in subclasses.

See also
NONENCLATURE

Constructor & Destructor Documentation

◆ Pen()

icl::qt::AbstractPlotWidget::Pen::Pen ( const QPen &  linePen = Qt::NoPen,
const QPen &  symbolPen = Qt::NoPen,
char  symbol = ' ',
int  symbolSize = 5,
const QBrush &  fillBrush = Qt::NoBrush 
)
inline

creates a row style with given parameters

Use Qt::NoPen or Qt::NoBrush to deactivate specific things Supported Symbol types are: / available symbol types

  • ' ' (space) no symbol enum Symbol{
  • '.' point symbol (one pixel point)
  • 'x' cross symbol
  • '+' plus symbol
  • '*' asterisk symbol (like x and +)
  • 'o' circle symbol (upper case O for filled)
  • 's' square symbol (upper case S for filled)
  • 't' triangle symbol (upper case T for filled)
  • 'd' dianond symbol (upper case d for filled)

Note: in the most simple case, QPen and QBrush have just a color attribute, which is allo supported by an extra constructor. So in order to create red lines, you can just pass a QColor instance, where a QPen is expected. E.g.

AbstractPlotWidget::Pen *p = new AbstractPlotWidget::Pen(QColor(255,0,0)), QColor(0,255,0),'x');

creates a red line Pen, that that draws green 'x'-Symbols

Member Data Documentation

◆ fillBrush

QBrush icl::qt::AbstractPlotWidget::Pen::fillBrush

fill brush (this is e.g. used to fill the area beyond a function graph)

◆ linePen

QPen icl::qt::AbstractPlotWidget::Pen::linePen

pen for line structures

◆ symbol

char icl::qt::AbstractPlotWidget::Pen::symbol

symbol

◆ symbolPen

QPen icl::qt::AbstractPlotWidget::Pen::symbolPen

pen for symbols

◆ symbolSize

int icl::qt::AbstractPlotWidget::Pen::symbolSize

symbol size (in pixels, point symbols are always size 1)


The documentation for this struct was generated from the following file: