Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes
icl::qt::AbstractPlotWidget::Pen Struct Reference

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

#include <AbstractPlotWidget.h>

List of all members.

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

Public Attributes

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

Detailed Description

Utility structure for styles usend in subclasses.

See also:
Nomenclature

Constructor & Destructor Documentation

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

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

pen for line structures

symbol

pen for symbols

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


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines