20#ifndef jkqtpgraphsimpulses_H
21#define jkqtpgraphsimpulses_H
23#include "jkqtplotter/jkqtplotter_imexport.h"
24#include "jkqtplotter/jkqtpgraphsbase.h"
25#include "jkqtplotter/jkqtpgraphsbaseerrors.h"
26#include "jkqtplotter/jkqtpgraphsbasestylingmixins.h"
130 virtual bool getXMinMax(
double& minx,
double& maxx,
double& smallestGreaterZero)
override;
132 virtual bool getYMinMax(
double& miny,
double& maxy,
double& smallestGreaterZero)
override;
162 virtual bool getXMinMax(
double& minx,
double& maxx,
double& smallestGreaterZero)
override;
218 virtual bool getXMinMax(
double& minx,
double& maxx,
double& smallestGreaterZero)
override;
220 virtual bool getYMinMax(
double& miny,
double& maxy,
double& smallestGreaterZero)
override;
242 virtual bool getYMinMax(
double& miny,
double& maxy,
double& smallestGreaterZero)
override;
base class for 2D plotter classes (used by the plotter widget JKQTPlotter)
Definition jkqtpbaseplotter.h:394
this class extends the QPainter
Definition jkqtpenhancedpainter.h:33
This Mix-In class provides setter/getter methods, storage and other facilities for the graph line sty...
Definition jkqtpgraphsbasestylingmixins.h:49
This Mix-In class provides setter/getter methods, storage and other facilities for the graph symbols ...
Definition jkqtpgraphsbasestylingmixins.h:379
This is a base class for all impulse graphs.
Definition jkqtpimpulses.h:41
bool getDrawBaseline() const
indicates whether to draw a line with style m_baselineStyle at the baseline-value
virtual void setColor(QColor c)
color of symbols and impulses in one call
JKQTPImpulsesGraphBase(JKQTBasePlotter *parent=nullptr)
class constructor
bool drawSymbols
indicates whether to draw symbols at the top of the impulse
Definition jkqtpimpulses.h:75
bool getPositionsMinMax(double &mmin, double &mmax, double &smallestGreaterZero)
get the maximum and minimum value of the impulse positions of the graph
bool getDrawSymbols() const
indicates whether to draw symbols at the top of the impulse
virtual QColor getKeyLabelColor() const override
returns the color to be used for the key label
bool m_drawBaseline
indicates whether to draw a line with style m_baselineStyle at the baseline-value
Definition jkqtpimpulses.h:88
void setDrawBaseline(bool __value)
indicates whether to draw a line with style m_baselineStyle at the baseline-value
JKQTPGraphLineStyleMixin & baselineStyle()
if m_drawBaseline ==true then this style is used to draw the baseline
JKQTPGraphLineStyleMixin m_baselineStyle
if m_drawBaseline ==true then this style is used to draw the baseline
Definition jkqtpimpulses.h:80
void setDrawSymbols(bool __value)
indicates whether to draw symbols at the top of the impulse
const JKQTPGraphLineStyleMixin & baselineStyle() const
if m_drawBaseline ==true then this style is used to draw the baseline
bool getValuesMinMax(double &mmin, double &mmax, double &smallestGreaterZero)
get the maximum and minimum value in the impulse-elongation (i.e. value) direction of the graph
This implements an impulse plot with horizontal impulses in direction of the X axis (i....
Definition jkqtpimpulses.h:152
void setErrorStyle(JKQTPErrorPlotstyle __value)
sets the error style of the bar
void setErrorSymmetric(bool __value)
sets whether the errors of the bars are symmetric
virtual bool getXMinMax(double &minx, double &maxx, double &smallestGreaterZero) override
get the maximum and minimum x-value of the graph
int getErrorColumn() const
returns the column that contains the bar height errors
JKQTPErrorPlotstyle getErrorStyle() const
returns the error style of the bar
JKQTPImpulsesHorizontalErrorGraph(JKQTBasePlotter *parent=nullptr)
class constructor
void setErrorColumnLower(size_t 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.
JKQTPImpulsesHorizontalErrorGraph(JKQTPlotter *parent)
void setErrorColumnLower(int column)
sets the column that contains the bar height errors
void setErrorColumn(size_t column)
sets the column that contains the bar height errors
bool getErrorSymmetric() const
returns whether the errors of the bars are symmetric
int getErrorColumnLower() const
returns the column that contains the lower bar height errors
virtual bool usesColumn(int c) const override
returns true if the given column is used by the graph
void setErrorColumn(int column)
sets the column that contains the bar height errors
This implements an impulse plot with horizontal impulses in direction of the X axis (i....
Definition jkqtpimpulses.h:111
virtual int getKeyColumn() const override
returns the column used as "key" for the current graph (typically this call getXColumn(),...
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(),...
virtual void drawKeyMarker(JKQTPEnhancedPainter &painter, const QRectF &rect) override
plots a key marker inside the specified rectangle rect
JKQTPImpulsesHorizontalGraph(JKQTBasePlotter *parent=nullptr)
class constructor
JKQTPImpulsesHorizontalGraph(JKQTPlotter *parent)
class constructor
virtual void draw(JKQTPEnhancedPainter &painter) override
plots the graph to the plotter object specified as parent
virtual bool getYMinMax(double &miny, double &maxy, double &smallestGreaterZero) override
get the maximum and minimum y-value of the graph
virtual bool getXMinMax(double &minx, double &maxx, double &smallestGreaterZero) override
get the maximum and minimum x-value of the graph
virtual void setValueColumn(int __value) override
sets the column used as "value" for the current graph (typically this call setXColumn(),...
This implements an impulse plot with impulses in direction of the X axis (i.e. from x=0 to x=f(y) )
Definition jkqtpimpulses.h:232
int getErrorColumn() const
returns the column that contains the bar height errors
virtual bool getYMinMax(double &miny, double &maxy, double &smallestGreaterZero) override
get the maximum and minimum y-value of the graph
void setErrorColumnLower(int column)
sets the column that contains the bar height errors
JKQTPImpulsesVerticalErrorGraph(JKQTPlotter *parent)
class constructor
virtual bool usesColumn(int c) const override
returns true if the given column is used by the graph
void setErrorSymmetric(bool __value)
sets whether the errors of the bars are symmetric
JKQTPImpulsesVerticalErrorGraph(JKQTBasePlotter *parent=nullptr)
class constructor
void setErrorColumn(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 setErrorColumn(size_t column)
sets the column that contains the bar height errors
int getErrorColumnLower() const
returns the column that contains the lower bar height errors
void setErrorColumnLower(size_t column)
sets the column that contains the bar height errors
void setErrorStyle(JKQTPErrorPlotstyle __value)
sets the error style of the bar
bool getErrorSymmetric() const
returns whether the errors of the bars are symmetric
JKQTPErrorPlotstyle getErrorStyle() const
returns the error style of the bar
This implements an impulse plot with impulses in direction of the Y axis (i.e. from y=0 to y=f(x) )
Definition jkqtpimpulses.h:205
virtual bool getYMinMax(double &miny, double &maxy, double &smallestGreaterZero) override
get the maximum and minimum y-value of the graph
virtual bool getXMinMax(double &minx, double &maxx, double &smallestGreaterZero) override
get the maximum and minimum x-value of the graph
JKQTPImpulsesVerticalGraph(JKQTPlotter *parent)
class constructor
JKQTPImpulsesVerticalGraph(JKQTBasePlotter *parent=nullptr)
class constructor
virtual void draw(JKQTPEnhancedPainter &painter) override
plots the graph to the plotter object specified as parent
virtual void drawKeyMarker(JKQTPEnhancedPainter &painter, const QRectF &rect) override
plots a key marker inside the specified rectangle rect
This class is the base class for graphs that only display error indicators in x-direction.
Definition jkqtpgraphsbaseerrors.h:299
This virtual JKQTPGraph descendent extends JKQTPXYGraph adds a baseline-property, which is necessary,...
Definition jkqtpgraphsbase.h:712
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