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 class is the base class for graphs that only display error indicators in y-direction. More...

#include <jkqtpgraphsbaseerrors.h>

Inheritance diagram for JKQTPYGraphErrors:
[legend]
Collaboration diagram for JKQTPYGraphErrors:
[legend]

Public Member Functions

 JKQTPYGraphErrors ()
 class contructor
virtual ~JKQTPYGraphErrors ()=default
virtual bool errorUsesColumn (int c) const
 returns true, if the error plots use the given column
Public Member Functions inherited from JKQTPYGraphErrorData
 JKQTPYGraphErrorData ()
 class contructor
virtual ~JKQTPYGraphErrorData ()=default
int getYErrorColumn () const
 the column that contains the error of the x-component of the datapoints
int getYErrorColumnLower () const
 the column that contains the error of the x-component of the datapoints. This is used as the lower error length, if yErrorSymmetric ==false.
JKQTPErrorPlotstyle getYErrorStyle () const
 how to draw the errors (if available) of the x-value
bool getYErrorSymmetric () const
 indicates whether the x-errors are symmetric (from one column only)
void setYErrorColumn (int __value)
 the column that contains the error of the x-component of the datapoints
void setYErrorColumnLower (int __value)
 the column that contains the error of the x-component of the datapoints. This is used as the lower error length, if yErrorSymmetric ==false.
void setYErrorStyle (JKQTPErrorPlotstyle __value)
 how to draw the errors (if available) of the x-value
void setYErrorSymmetric (bool __value)
 indicates whether the x-errors are symmetric (from one column only)
Public Member Functions inherited from JKQTPGraphErrorStyleMixin
 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

virtual void plotErrorIndicators (JKQTPEnhancedPainter &painter, const JKQTBasePlotter *parent, const JKQTPGraph *parentGraph, int xColumn, int yColumn, double xrelshift=0, double yrelshift=0.0, const QVector< int > *dataorder=nullptr) const
 draws the error indicators
Protected Member Functions inherited from JKQTPYGraphErrorData
virtual double getYErrorL (int i, const JKQTPDatastore *ds) const
 returns the lower y-error for the i-th datapoint, read from datastore ds
virtual double getYErrorU (int i, const JKQTPDatastore *ds) const
 returns the upper y-error for the i-th datapoint, read from datastore ds
Protected Member Functions inherited from JKQTPGraphErrorStyleMixin
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

Additional Inherited Members

Protected Attributes inherited from JKQTPYGraphErrorData
int yErrorColumn
 the column that contains the error of the x-component of the datapoints
int yErrorColumnLower
 the column that contains the error of the x-component of the datapoints. This is used as the lower error length, if yErrorSymmetric ==false.
JKQTPErrorPlotstyle yErrorStyle
 how to draw the errors (if available) of the x-value
bool yErrorSymmetric
 indicates whether the x-errors are symmetric (from one column only)
Protected Attributes inherited from JKQTPGraphErrorStyleMixin
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 class is the base class for graphs that only display error indicators in y-direction.

See also
JKQTPYGraphErrorData, JKQTPGraphErrorStyleMixin, Mix-In Classes for Graphs

Constructor & Destructor Documentation

◆ JKQTPYGraphErrors()

JKQTPYGraphErrors::JKQTPYGraphErrors ( )

class contructor

◆ ~JKQTPYGraphErrors()

virtual JKQTPYGraphErrors::~JKQTPYGraphErrors ( )
virtualdefault

Member Function Documentation

◆ errorUsesColumn()

virtual bool JKQTPYGraphErrors::errorUsesColumn ( int c) const
virtual

returns true, if the error plots use the given column

◆ plotErrorIndicators()

virtual void JKQTPYGraphErrors::plotErrorIndicators ( JKQTPEnhancedPainter & painter,
const JKQTBasePlotter * parent,
const JKQTPGraph * parentGraph,
int xColumn,
int yColumn,
double xrelshift = 0,
double yrelshift = 0.0,
const QVector< int > * dataorder = nullptr ) const
protectedvirtual

draws the error indicators


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