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
Loading...
Searching...
No Matches

This mix-in class assembles all styling properties applicable to error indicators. More...

#include <jkqtpgraphsbaseerrors.h>

Inheritance diagram for JKQTPGraphErrorStyleMixin:
[legend]

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
 

Detailed Description

This mix-in class assembles all styling properties applicable to error indicators.

line-graphs with different types of error indicators
See also
Mix-In Classes for Graphs

Constructor & Destructor Documentation

◆ JKQTPGraphErrorStyleMixin()

JKQTPGraphErrorStyleMixin::JKQTPGraphErrorStyleMixin ( )

class contructor

◆ ~JKQTPGraphErrorStyleMixin()

virtual JKQTPGraphErrorStyleMixin::~JKQTPGraphErrorStyleMixin ( )
virtualdefault

Member Function Documentation

◆ getErrorBarCapSize()

double JKQTPGraphErrorStyleMixin::getErrorBarCapSize ( ) const

size of the error bar end markers [pt]

◆ getErrorFillBrush()

QBrush JKQTPGraphErrorStyleMixin::getErrorFillBrush ( JKQTPEnhancedPainter painter,
const JKQTBasePlotter parent 
) const
protected

constructs a QBrush from the error indicator fill styling properties

◆ getErrorFillColor()

QColor JKQTPGraphErrorStyleMixin::getErrorFillColor ( ) const

get the fill color of the error indicators

◆ getErrorFillGradient()

const QGradient * JKQTPGraphErrorStyleMixin::getErrorFillGradient ( ) const

get the gradient object of the error indicator filling

◆ getErrorFillStyle()

Qt::BrushStyle JKQTPGraphErrorStyleMixin::getErrorFillStyle ( ) const

get the fill style of the error indicators

◆ getErrorFillTexture()

QPixmap JKQTPGraphErrorStyleMixin::getErrorFillTexture ( ) const

set the color of the error indicator filling

◆ getErrorFillTextureImage()

QImage JKQTPGraphErrorStyleMixin::getErrorFillTextureImage ( ) const

set the color of the error indicator filling

◆ getErrorLineBrush()

QBrush JKQTPGraphErrorStyleMixin::getErrorLineBrush ( ) const

gets the brush used to fill the line area of the error indicator (out)lines

See also
https://doc.qt.io/qt-5/qpen.html#setBrush

◆ getErrorLineCapStyle()

Qt::PenCapStyle JKQTPGraphErrorStyleMixin::getErrorLineCapStyle ( ) const

gets the cap style of the error indicator (out)lines

See also
https://doc.qt.io/qt-5/qpen.html#setCapStyle

◆ getErrorLineColor()

QColor JKQTPGraphErrorStyleMixin::getErrorLineColor ( ) const

get the color of the error indicator (out)lines

◆ getErrorLineDashOffset()

qreal JKQTPGraphErrorStyleMixin::getErrorLineDashOffset ( ) const

returns the dash offset for a custom dash style of the error indicator (out)lines

See also
https://doc.qt.io/qt-5/qpen.html#setDashOffset

◆ getErrorLineDashPattern()

QVector< qreal > JKQTPGraphErrorStyleMixin::getErrorLineDashPattern ( ) const

gets the dash pattern for a custom dash style of the error indicator (out)lines

See also
https://doc.qt.io/qt-5/qpen.html#setDashPattern

◆ getErrorLineJoinStyle()

Qt::PenJoinStyle JKQTPGraphErrorStyleMixin::getErrorLineJoinStyle ( ) const

returns the join style of the error indicator (out)lines

See also
https://doc.qt.io/qt-5/qpen.html#setJoinStyle

◆ getErrorLinePen()

QPen JKQTPGraphErrorStyleMixin::getErrorLinePen ( JKQTPEnhancedPainter painter,
const JKQTBasePlotter parent 
) const
protected

constructs a QPen from the error indicator line styling properties

◆ getErrorLinePenForRects()

QPen JKQTPGraphErrorStyleMixin::getErrorLinePenForRects ( JKQTPEnhancedPainter painter,
const JKQTBasePlotter parent 
) const
protected

constructs a QPen from the error indicator line styling properties, suitable for drawing rectangles with sharp edges

◆ getErrorLineStyle()

Qt::PenStyle JKQTPGraphErrorStyleMixin::getErrorLineStyle ( ) const

get the style of the error indicator (out)lines

◆ getErrorLineWidth()

double JKQTPGraphErrorStyleMixin::getErrorLineWidth ( ) const

get the width [pt] of the error indicator (out)lines

◆ initErrorStyle()

void JKQTPGraphErrorStyleMixin::initErrorStyle ( JKQTBasePlotter parent,
int &  parentPlotStyle,
JKQTPPlotStyleType  styletype = JKQTPPlotStyleType::Default 
)

initiaize the error indicator style (from the parent plotter)

◆ intPlotXYErrorIndicators()

void JKQTPGraphErrorStyleMixin::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
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.

◆ intPlotXYErrorIndicatorsGetColor()

virtual bool JKQTPGraphErrorStyleMixin::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
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.

◆ setErrorBarCapSize()

void JKQTPGraphErrorStyleMixin::setErrorBarCapSize ( double  __value)

size of the error bar end markers [pt]

◆ setErrorColorFromGraphColor()

void JKQTPGraphErrorStyleMixin::setErrorColorFromGraphColor ( QColor  graphColor)

derive the colors of the error indicators from a given color

◆ setErrorFillBrush()

void JKQTPGraphErrorStyleMixin::setErrorFillBrush ( const QBrush &  b)

sets an error indicator fill brush (overwrites all internal properties!)

◆ setErrorFillColor()

void JKQTPGraphErrorStyleMixin::setErrorFillColor ( const QColor &  __value)

set the fill color of the error indicators

◆ setErrorFillGradient()

void JKQTPGraphErrorStyleMixin::setErrorFillGradient ( const QGradient &  __value)

set the filling of the error indicators to a gradient and sets fill style to a gradient setting

◆ setErrorFillStyle()

void JKQTPGraphErrorStyleMixin::setErrorFillStyle ( Qt::BrushStyle  __value)

set the fill style of the error indicators

◆ setErrorFillTexture() [1/2]

void JKQTPGraphErrorStyleMixin::setErrorFillTexture ( const QImage &  __value)

set the color of the error indicator filling and sets fill style to Qt::TexturePattern

◆ setErrorFillTexture() [2/2]

void JKQTPGraphErrorStyleMixin::setErrorFillTexture ( const QPixmap &  __value)

set the color of the error indicator filling and sets fill style to Qt::TexturePattern

◆ setErrorFillTransform()

void JKQTPGraphErrorStyleMixin::setErrorFillTransform ( const QTransform &  b)

sets an error indicator fill transformation

◆ setErrorLineBrush()

void JKQTPGraphErrorStyleMixin::setErrorLineBrush ( const QBrush &  style)

sets the brush used to fill the line area of the error indicator (out)lines

See also
https://doc.qt.io/qt-5/qpen.html#setBrush

◆ setErrorLineCapStyle()

void JKQTPGraphErrorStyleMixin::setErrorLineCapStyle ( Qt::PenCapStyle  style)

sets the cap style of the error indicator (out)lines

See also
https://doc.qt.io/qt-5/qpen.html#setCapStyle

◆ setErrorLineColor()

void JKQTPGraphErrorStyleMixin::setErrorLineColor ( const QColor &  __value)

set the color of the error indicator (out)lines

◆ setErrorLineDashOffset()

void JKQTPGraphErrorStyleMixin::setErrorLineDashOffset ( qreal  offset)

sets the dash offset for a custom dash style of the error indicator (out)lines

See also
https://doc.qt.io/qt-5/qpen.html#setDashOffset

◆ setErrorLineDashPattern()

void JKQTPGraphErrorStyleMixin::setErrorLineDashPattern ( const QVector< qreal > &  pattern)

sets the dash pattern for a custom dash style of the error indicator (out)lines

See also
https://doc.qt.io/qt-5/qpen.html#setDashPattern

◆ setErrorLineJoinStyle()

void JKQTPGraphErrorStyleMixin::setErrorLineJoinStyle ( Qt::PenJoinStyle  style)

sets the join style of the error indicator (out)lines

See also
https://doc.qt.io/qt-5/qpen.html#setJoinStyle

◆ setErrorLineStyle()

void JKQTPGraphErrorStyleMixin::setErrorLineStyle ( Qt::PenStyle  __value)

set the style of the error indicator (out)lines

◆ setErrorLineWidth()

void JKQTPGraphErrorStyleMixin::setErrorLineWidth ( double  __value)

set the width [pt] of the error indicator (out)lines

◆ setErrorStyleFromPen()

void JKQTPGraphErrorStyleMixin::setErrorStyleFromPen ( const JKQTBasePlotter::JKQTPPen pen)

derive the properties of the error indicators from pen

Member Data Documentation

◆ m_errorBarCapSize

double JKQTPGraphErrorStyleMixin::m_errorBarCapSize
protected

size of the error bar end markers [pt]

◆ m_errorFillBrush

QBrush JKQTPGraphErrorStyleMixin::m_errorFillBrush
protected

fill brush for the error indicators

◆ m_errorFillColor

QColor JKQTPGraphErrorStyleMixin::m_errorFillColor
protected

fill color for the error indicators

◆ m_errorLinePen

QPen JKQTPGraphErrorStyleMixin::m_errorLinePen
protected

error indicator line pen

◆ m_errorLineWidth

double JKQTPGraphErrorStyleMixin::m_errorLineWidth
protected

width of the error indicators' lines, given in pt


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