ErrorBar

This class contains the properties of the error bars used in different plot classes.

Public Types

  • enum Dimension

  • enum ErrorType

  • enum Type

Public Methods

void

ErrorBar(const QString &name, Dimension)

Dimension

dimension() const

void

draw(QPainter *, const QPainterPath &)

void

init(const KConfigGroup &)

Line*

line() const

bool

load(XmlStreamReader *, bool preview) override

void

loadThemeConfig(const KConfigGroup &)

void

loadThemeConfig(const KConfigGroup &, const QColor &)

QPainterPath

painterPath(const QVector< QPointF > &, const CartesianCoordinateSystem *, WorksheetElement::Orientation=WorksheetElement::Orientation::Vertical) const

void

save(QXmlStreamWriter *) const override

void

saveThemeConfig(KConfigGroup &) const

void

update()

Detailed Description

class ErrorBar : public AbstractAspect

This class contains the properties of the error bars used in different plot classes.

Public Functions

virtual void save(QXmlStreamWriter*) const override

Save as XML.

virtual bool load(XmlStreamReader*, bool preview) override

Load from XML.

QPainterPath painterPath(const QVector<QPointF>&, const CartesianCoordinateSystem*, WorksheetElement::Orientation = WorksheetElement::Orientation::Vertical) const

calculates and returns the painter path for the error bars. The error bars are placed at the points in logical coordinates points. The transformation to the scene coordinates is done via cSystem that is owned by the parent plot owning the error bar object. Some plot types like histogram, bar plot, etc. can have different orientations (vertical vs. horizontal) which is provided via orientation, the error is specified for the y-dimentions for such plot types and is drawn either vertically or horizontally depending on the orientation of the plot.