Image Component Library (ICL)
|
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 | |
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) |
Utility structure for styles usend in subclasses.
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
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
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)