20#ifndef jkqtpgraphsbarchart_H
21#define jkqtpgraphsbarchart_H
27#include "jkqtplotter/jkqtptools.h"
28#include "jkqtplotter/jkqtplotter_imexport.h"
29#include "jkqtplotter/jkqtpgraphsbase.h"
30#include "jkqtplotter/jkqtpgraphsbaseerrors.h"
31#include "jkqtplotter/jkqtpgraphsbasestylingmixins.h"
32#include "jkqtplotter/graphs/jkqtpbarchartbase.h"
63 virtual bool getXMinMax(
double& minx,
double& maxx,
double& smallestGreaterZero)
override;
65 virtual bool getYMinMax(
double& miny,
double& maxy,
double& smallestGreaterZero)
override;
104 virtual bool getYMinMax(
double& miny,
double& maxy,
double& smallestGreaterZero)
override;
167 virtual bool getXMinMax(
double& minx,
double& maxx,
double& smallestGreaterZero)
override;
169 virtual bool getYMinMax(
double& miny,
double& maxy,
double& smallestGreaterZero)
override;
213 virtual bool getXMinMax(
double& minx,
double& maxx,
double& smallestGreaterZero)
override;
base class for 2D plotter classes (used by the plotter widget JKQTPlotter)
Definition jkqtpbaseplotter.h:394
This is a base-class for all bar graphs with vertical or horizontal orientation (the orientation is i...
Definition jkqtpbarchartbase.h:152
This is an interface-class for all stackable bargraphs ... it is used internally for autoscaling only...
Definition jkqtpbarchartbase.h:479
This implements a horizontal bar graph with bars between and and error indicator.
Definition jkqtpbarchart.h:202
void setBarErrorColumn(int column)
sets the column that contains the bar height errors
virtual bool getXMinMax(double &minx, double &maxx, double &smallestGreaterZero) override
get the maximum and minimum x-value of the graph
JKQTPBarHorizontalErrorGraph(JKQTBasePlotter *parent=nullptr)
class constructor
void setBarErrorSymmetric(bool __value)
sets whether the errors of the bars are symmetric
JKQTPBarHorizontalErrorGraph(JKQTPlotter *parent)
class constructor
JKQTPErrorPlotstyle getBarErrorStyle() const
returns the error style of the bar
void setBarErrorStyle(JKQTPErrorPlotstyle __value)
sets the error style of the bar
virtual bool usesColumn(int c) const override
returns true if the given column is used by the graph
void setBarErrorColumn(size_t column)
sets the column that contains the bar height errors
bool getBarErrorSymmetric() const
returns whether the errors of the bars are symmetric
int getBarErrorColumn() const
returns the column that contains the bar height errors
int getBarLowerErrorColumn() const
returns the column that contains the lower bar height errors
void setBarLowerErrorColumn(int column)
sets the column that contains the bar height errors
virtual void drawErrorsAfter(JKQTPEnhancedPainter &painter) override
this function is used to plot error inidcators before plotting the graphs.
void setBarLowerErrorColumn(size_t column)
sets the column that contains the bar height errors
This implements a horizontal bar graph with bars between and .
Definition jkqtpbarchart.h:155
virtual bool considerForAutoscaling(JKQTPBarGraphBase *other) const override
this function is used by autoscaleBarWidthAndShift() to determine whether a given graph shall be take...
JKQTPBarHorizontalGraph(JKQTPlotter *parent)
class constructor
virtual bool getYMinMax(double &miny, double &maxy, double &smallestGreaterZero) override
get the maximum and minimum y-value of the graph
virtual void setValueColumn(int __value) override
sets the column used as "value" for the current graph (typically this call setXColumn(),...
virtual void draw(JKQTPEnhancedPainter &painter) override
plots the graph to the plotter object specified as parent
virtual int getValueColumn() const override
returns the column used as "value" for the current graph (typically this call getXColumn(),...
virtual void setKeyColumn(int __value) override
sets the column used as "key" for the current graph (typically this call setXColumn(),...
JKQTPBarHorizontalGraph(JKQTBasePlotter *parent=nullptr)
class constructor
virtual bool getXMinMax(double &minx, double &maxx, double &smallestGreaterZero) override
get the maximum and minimum x-value of the graph
virtual int getKeyColumn() const override
returns the column used as "key" for the current graph (typically this call getXColumn(),...
This implements a horizontal bar graph with bars between and Optionally several graphs of this type...
Definition jkqtpbarchart.h:321
void dontStackUpon()
unstacks this graph (i.e. deletes the parent graph in the stack)
virtual JKQTPBarGraphBase * getBottomOfStack() override
returns the barchart at the bottom of this stack (i.e. traverses the stack until there are no more pa...
JKQTPBarHorizontalStackableGraph(JKQTPlotter *parent)
class constructor
const JKQTPBarHorizontalStackableGraph * getStackParent() const
returns the stack parent graph, or nullptr
void stackUpon(JKQTPBarHorizontalStackableGraph *parentGraph)
stacks this barchart upon the given parentGraph
double getStackedMax(int index) const
used to generate stacked plots: returns the upper boundary of this plot in a stack,...
JKQTPBarHorizontalStackableGraph * stackParent
if set (!=nullptr), the current plot is drawn stacked onto this plot
Definition jkqtpbarchart.h:343
virtual bool hasStackParent() const override
returns true, if a stack parent is set (if available)
JKQTPBarHorizontalStackableGraph * getStackParent()
returns the stack parent graph, or nullptr
virtual double getParentStackedMax(int index) const override
used to generate stacked plots: returns the upper boundary of the parent plot in a stack,...
JKQTPBarHorizontalStackableGraph(JKQTBasePlotter *parent=nullptr)
class constructor
This implements a vertical bar graph with bars between and and error indicator.
Definition jkqtpbarchart.h:90
bool getBarErrorSymmetric() const
returns whether the errors of the bars are symmetric
virtual bool getYMinMax(double &miny, double &maxy, double &smallestGreaterZero) override
get the maximum and minimum y-value of the graph
int getBarErrorColumn() const
returns the column that contains the bar height errors
void setBarErrorStyle(JKQTPErrorPlotstyle __value)
sets the error style of the bar
JKQTPErrorPlotstyle getBarErrorStyle() const
returns the error style of the bar
void setBarErrorColumn(int column)
sets the column that contains the bar height errors
virtual bool usesColumn(int c) const override
returns true if the given column is used by the graph
void setBarErrorColumn(size_t column)
sets the column that contains the bar height errors
JKQTPBarVerticalErrorGraph(JKQTPlotter *parent)
class constructor
void setBarLowerErrorColumn(int column)
sets the column that contains the bar height errors
virtual void drawErrorsAfter(JKQTPEnhancedPainter &painter) override
this function is used to plot error inidcators before plotting the graphs.
JKQTPBarVerticalErrorGraph(JKQTBasePlotter *parent=nullptr)
class constructor
void setBarLowerErrorColumn(size_t column)
sets the column that contains the bar height errors
int getBarLowerErrorColumn() const
returns the column that contains the lower bar height errors
void setBarErrorSymmetric(bool __value)
sets whether the errors of the bars are symmetric
This implements a vertical bar graph with bars between and .
Definition jkqtpbarchart.h:51
JKQTPBarVerticalGraph(JKQTPlotter *parent)
class constructor
virtual bool getYMinMax(double &miny, double &maxy, double &smallestGreaterZero) override
get the maximum and minimum y-value of the graph
virtual void draw(JKQTPEnhancedPainter &painter) override
plots the graph to the plotter object specified as parent
virtual bool getXMinMax(double &minx, double &maxx, double &smallestGreaterZero) override
get the maximum and minimum x-value of the graph
virtual bool considerForAutoscaling(JKQTPBarGraphBase *other) const override
this function is used by autoscaleBarWidthAndShift() to determine whether a given graph shall be take...
JKQTPBarVerticalGraph(JKQTBasePlotter *parent=nullptr)
class constructor
This implements a vertical bar graph with bars between and Optionally several graphs of this type m...
Definition jkqtpbarchart.h:268
const JKQTPBarVerticalStackableGraph * getStackParent() const
returns the stack parent graph, or nullptr
void stackUpon(JKQTPBarVerticalStackableGraph *parentGraph)
stacks this barchart upon the given parentGraph
void dontStackUpon()
unstacks this graph (i.e. deletes the parent graph in the stack)
JKQTPBarVerticalStackableGraph(JKQTPlotter *parent)
class constructor
JKQTPBarVerticalStackableGraph * getStackParent()
returns the stack parent graph, or nullptr
double getParentStackedMax(int index) const override
used to generate stacked plots: returns the upper boundary of the parent plot in a stack,...
JKQTPBarVerticalStackableGraph(JKQTBasePlotter *parent=nullptr)
class constructor
virtual bool hasStackParent() const override
returns true, if a stack parent is set (if available)
virtual JKQTPBarGraphBase * getBottomOfStack() override
returns the barchart at the bottom of this stack (i.e. traverses the stack until there are no more pa...
JKQTPBarVerticalStackableGraph * stackParent
if set (!=nullptr), the current plot is drawn stacked onto this plot
Definition jkqtpbarchart.h:290
double getStackedMax(int index) const
used to generate stacked plots: returns the upper boundary of this plot in a stack,...
this class extends the QPainter
Definition jkqtpenhancedpainter.h:33
This class is the base class for graphs that only display error indicators in x-direction.
Definition jkqtpgraphsbaseerrors.h:299
This class is the base class for graphs that only display error indicators in y-direction.
Definition jkqtpgraphsbaseerrors.h:323
plotter widget for scientific plots (uses JKQTBasePlotter to do the actual drawing)
Definition jkqtplotter.h:364
QFlags< JKQTPErrorPlotstyleElements > JKQTPErrorPlotstyle
specifies the plot styles for the error information, e.g. error bars, boxes, lines ....
Definition jkqtptools.h:728
#define JKQTPLOTTER_LIB_EXPORT
Definition jkqtplotter_imexport.h:89