JKQTPlotter trunk/v5.0.0
an extensive Qt5+Qt6 Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
|
This mix-in class assembles all styling properties applicable to error indicators. More...
#include <jkqtpgraphsbaseerrors.h>
Public Member Functions | |
JKQTPGraphErrorStyleMixin () | |
class contructor | |
virtual | ~JKQTPGraphErrorStyleMixin ()=default |
double | getErrorBarCapSize () const |
size of the error bar end markers [pt] | |
QColor | getErrorFillColor () const |
get the fill color of the error indicators | |
const QGradient * | getErrorFillGradient () const |
get the gradient object of the error indicator filling | |
Qt::BrushStyle | getErrorFillStyle () const |
get the fill style of the error indicators | |
QPixmap | getErrorFillTexture () const |
set the color of the error indicator filling | |
QImage | getErrorFillTextureImage () const |
set the color of the error indicator filling | |
QBrush | getErrorLineBrush () const |
gets the brush used to fill the line area of the error indicator (out)lines | |
Qt::PenCapStyle | getErrorLineCapStyle () const |
gets the cap style of the error indicator (out)lines | |
QColor | getErrorLineColor () const |
get the color of the error indicator (out)lines | |
qreal | getErrorLineDashOffset () const |
returns the dash offset for a custom dash style of the error indicator (out)lines | |
QVector< qreal > | getErrorLineDashPattern () const |
gets the dash pattern for a custom dash style of the error indicator (out)lines | |
Qt::PenJoinStyle | getErrorLineJoinStyle () const |
returns the join style of the error indicator (out)lines | |
Qt::PenStyle | getErrorLineStyle () const |
get the style of the error indicator (out)lines | |
double | getErrorLineWidth () const |
get the width [pt] of the error indicator (out)lines | |
void | initErrorStyle (JKQTBasePlotter *parent, int &parentPlotStyle, JKQTPPlotStyleType styletype=JKQTPPlotStyleType::Default) |
initiaize the error indicator style (from the parent plotter) | |
void | setErrorBarCapSize (double __value) |
size of the error bar end markers [pt] | |
void | setErrorColorFromGraphColor (QColor graphColor) |
derive the colors of the error indicators from a given color | |
void | setErrorFillBrush (const QBrush &b) |
sets an error indicator fill brush (overwrites all internal properties!) | |
void | setErrorFillColor (const QColor &__value) |
set the fill color of the error indicators | |
void | setErrorFillGradient (const QGradient &__value) |
set the filling of the error indicators to a gradient and sets fill style to a gradient setting | |
void | setErrorFillStyle (Qt::BrushStyle __value) |
set the fill style of the error indicators | |
void | setErrorFillTexture (const QImage &__value) |
set the color of the error indicator filling and sets fill style to Qt::TexturePattern | |
void | setErrorFillTexture (const QPixmap &__value) |
set the color of the error indicator filling and sets fill style to Qt::TexturePattern | |
void | setErrorFillTransform (const QTransform &b) |
sets an error indicator fill transformation | |
void | setErrorLineBrush (const QBrush &style) |
sets the brush used to fill the line area of the error indicator (out)lines | |
void | setErrorLineCapStyle (Qt::PenCapStyle style) |
sets the cap style of the error indicator (out)lines | |
void | setErrorLineColor (const QColor &__value) |
set the color of the error indicator (out)lines | |
void | setErrorLineDashOffset (qreal offset) |
sets the dash offset for a custom dash style of the error indicator (out)lines | |
void | setErrorLineDashPattern (const QVector< qreal > &pattern) |
sets the dash pattern for a custom dash style of the error indicator (out)lines | |
void | setErrorLineJoinStyle (Qt::PenJoinStyle style) |
sets the join style of the error indicator (out)lines | |
void | setErrorLineStyle (Qt::PenStyle __value) |
set the style of the error indicator (out)lines | |
void | setErrorLineWidth (double __value) |
set the width [pt] of the error indicator (out)lines | |
void | setErrorStyleFromPen (const JKQTBasePlotter::JKQTPPen &pen) |
derive the properties of the error indicators from pen | |
Protected Member Functions | |
QBrush | getErrorFillBrush (JKQTPEnhancedPainter &painter, const JKQTBasePlotter *parent) const |
constructs a QBrush from the error indicator fill styling properties | |
QPen | getErrorLinePen (JKQTPEnhancedPainter &painter, const JKQTBasePlotter *parent) const |
constructs a QPen from the error indicator line styling properties | |
QPen | getErrorLinePenForRects (JKQTPEnhancedPainter &painter, const JKQTBasePlotter *parent) const |
constructs a QPen from the error indicator line styling properties, suitable for drawing rectangles with sharp edges | |
void | intPlotXYErrorIndicators (JKQTPEnhancedPainter &painter, const JKQTBasePlotter *parent, const JKQTPGraph *parentGraph, int xColumn, int yColumn, int xErrorColumn, int yErrorColumn, JKQTPErrorPlotstyle xErrorStyle, JKQTPErrorPlotstyle yErrorStyle, int xErrorColumnLower=-1, int yErrorColumnLower=-1, bool xErrorSymmetric=true, bool yErrorSymmetric=true, double xrelshift=0, double yrelshift=0.0, const QVector< int > *dataorder=nullptr) const |
draw error indicators with the parameters defined in this class. The position of the datapoints is given by the xColumn and yColumn. It is also possible to specify a datarange. | |
virtual bool | intPlotXYErrorIndicatorsGetColor (JKQTPEnhancedPainter &painter, const JKQTBasePlotter *parent, const JKQTPGraph *parentGraph, int xColumn, int yColumn, int xErrorColumn, int yErrorColumn, JKQTPErrorPlotstyle xErrorStyle, JKQTPErrorPlotstyle yErrorStyle, int index, QColor &errorLineColor, QColor &errorFillColor) const |
this function can be used to set the color of the error indicators automatically | |
Protected Attributes | |
double | m_errorBarCapSize |
size of the error bar end markers [pt] | |
QBrush | m_errorFillBrush |
fill brush for the error indicators | |
QColor | m_errorFillColor |
fill color for the error indicators | |
QPen | m_errorLinePen |
error indicator line pen | |
double | m_errorLineWidth |
width of the error indicators' lines, given in pt | |
This mix-in class assembles all styling properties applicable to error indicators.
JKQTPGraphErrorStyleMixin::JKQTPGraphErrorStyleMixin | ( | ) |
class contructor
|
virtualdefault |
double JKQTPGraphErrorStyleMixin::getErrorBarCapSize | ( | ) | const |
size of the error bar end markers [pt]
|
protected |
constructs a QBrush from the error indicator fill styling properties
QColor JKQTPGraphErrorStyleMixin::getErrorFillColor | ( | ) | const |
get the fill color of the error indicators
const QGradient * JKQTPGraphErrorStyleMixin::getErrorFillGradient | ( | ) | const |
get the gradient object of the error indicator filling
Qt::BrushStyle JKQTPGraphErrorStyleMixin::getErrorFillStyle | ( | ) | const |
get the fill style of the error indicators
QPixmap JKQTPGraphErrorStyleMixin::getErrorFillTexture | ( | ) | const |
set the color of the error indicator filling
QImage JKQTPGraphErrorStyleMixin::getErrorFillTextureImage | ( | ) | const |
set the color of the error indicator filling
QBrush JKQTPGraphErrorStyleMixin::getErrorLineBrush | ( | ) | const |
gets the brush used to fill the line area of the error indicator (out)lines
Qt::PenCapStyle JKQTPGraphErrorStyleMixin::getErrorLineCapStyle | ( | ) | const |
gets the cap style of the error indicator (out)lines
QColor JKQTPGraphErrorStyleMixin::getErrorLineColor | ( | ) | const |
get the color of the error indicator (out)lines
qreal JKQTPGraphErrorStyleMixin::getErrorLineDashOffset | ( | ) | const |
returns the dash offset for a custom dash style of the error indicator (out)lines
QVector< qreal > JKQTPGraphErrorStyleMixin::getErrorLineDashPattern | ( | ) | const |
gets the dash pattern for a custom dash style of the error indicator (out)lines
Qt::PenJoinStyle JKQTPGraphErrorStyleMixin::getErrorLineJoinStyle | ( | ) | const |
returns the join style of the error indicator (out)lines
|
protected |
constructs a QPen from the error indicator line styling properties
|
protected |
constructs a QPen from the error indicator line styling properties, suitable for drawing rectangles with sharp edges
Qt::PenStyle JKQTPGraphErrorStyleMixin::getErrorLineStyle | ( | ) | const |
get the style of the error indicator (out)lines
double JKQTPGraphErrorStyleMixin::getErrorLineWidth | ( | ) | const |
get the width [pt] of the error indicator (out)lines
void JKQTPGraphErrorStyleMixin::initErrorStyle | ( | JKQTBasePlotter * | parent, |
int & | parentPlotStyle, | ||
JKQTPPlotStyleType | styletype = JKQTPPlotStyleType::Default |
||
) |
initiaize the error indicator style (from the parent plotter)
|
protected |
draw error indicators with the parameters defined in this class. The position of the datapoints is given by the xColumn and yColumn. It is also possible to specify a datarange.
|
protectedvirtual |
this function can be used to set the color of the error indicators automatically
return true
and the colors to use, if applicable, the default implementation returns false
Reimplemented in JKQTPXYParametrizedErrorScatterGraph.
void JKQTPGraphErrorStyleMixin::setErrorBarCapSize | ( | double | __value | ) |
size of the error bar end markers [pt]
void JKQTPGraphErrorStyleMixin::setErrorColorFromGraphColor | ( | QColor | graphColor | ) |
derive the colors of the error indicators from a given color
void JKQTPGraphErrorStyleMixin::setErrorFillBrush | ( | const QBrush & | b | ) |
sets an error indicator fill brush (overwrites all internal properties!)
void JKQTPGraphErrorStyleMixin::setErrorFillColor | ( | const QColor & | __value | ) |
set the fill color of the error indicators
void JKQTPGraphErrorStyleMixin::setErrorFillGradient | ( | const QGradient & | __value | ) |
set the filling of the error indicators to a gradient and sets fill style to a gradient setting
void JKQTPGraphErrorStyleMixin::setErrorFillStyle | ( | Qt::BrushStyle | __value | ) |
set the fill style of the error indicators
void JKQTPGraphErrorStyleMixin::setErrorFillTexture | ( | const QImage & | __value | ) |
set the color of the error indicator filling and sets fill style to Qt::TexturePattern
void JKQTPGraphErrorStyleMixin::setErrorFillTexture | ( | const QPixmap & | __value | ) |
set the color of the error indicator filling and sets fill style to Qt::TexturePattern
void JKQTPGraphErrorStyleMixin::setErrorFillTransform | ( | const QTransform & | b | ) |
sets an error indicator fill transformation
void JKQTPGraphErrorStyleMixin::setErrorLineBrush | ( | const QBrush & | style | ) |
sets the brush used to fill the line area of the error indicator (out)lines
void JKQTPGraphErrorStyleMixin::setErrorLineCapStyle | ( | Qt::PenCapStyle | style | ) |
sets the cap style of the error indicator (out)lines
void JKQTPGraphErrorStyleMixin::setErrorLineColor | ( | const QColor & | __value | ) |
set the color of the error indicator (out)lines
void JKQTPGraphErrorStyleMixin::setErrorLineDashOffset | ( | qreal | offset | ) |
sets the dash offset for a custom dash style of the error indicator (out)lines
void JKQTPGraphErrorStyleMixin::setErrorLineDashPattern | ( | const QVector< qreal > & | pattern | ) |
sets the dash pattern for a custom dash style of the error indicator (out)lines
void JKQTPGraphErrorStyleMixin::setErrorLineJoinStyle | ( | Qt::PenJoinStyle | style | ) |
sets the join style of the error indicator (out)lines
void JKQTPGraphErrorStyleMixin::setErrorLineStyle | ( | Qt::PenStyle | __value | ) |
set the style of the error indicator (out)lines
void JKQTPGraphErrorStyleMixin::setErrorLineWidth | ( | double | __value | ) |
set the width [pt] of the error indicator (out)lines
void JKQTPGraphErrorStyleMixin::setErrorStyleFromPen | ( | const JKQTBasePlotter::JKQTPPen & | pen | ) |
derive the properties of the error indicators from pen
|
protected |
size of the error bar end markers [pt]
|
protected |
fill brush for the error indicators
|
protected |
fill color for the error indicators
|
protected |
error indicator line pen
|
protected |
width of the error indicators' lines, given in pt