19#ifndef jkqtpgraphsrange_H
20#define jkqtpgraphsrange_H
26#include "jkqtplotter/jkqtptools.h"
27#include "jkqtplotter/jkqtplotter_imexport.h"
28#include "jkqtcommon/jkqtpdrawingtools.h"
29#include "jkqtplotter/jkqtpgraphsbase.h"
30#include "jkqtcommon/jkqtpenhancedpainter.h"
31#include "jkqtplotter/jkqtpgraphsbaseerrors.h"
32#include "jkqtplotter/jkqtpgraphsbasestylingmixins.h"
235 bool getXMinMax(
double& minx,
double& maxx,
double& smallestGreaterZero)
override;
240 bool getYMinMax(
double& miny,
double& maxy,
double& smallestGreaterZero)
override;
275 bool getXMinMax(
double& minx,
double& maxx,
double& smallestGreaterZero)
override;
280 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 virtual class is the base for any type of coordinate axis, to be drawn by JKQTBasePlotter.
Definition jkqtpcoordinateaxes.h:181
This class manages data columns (with entries of type double ), used by JKQTPlotter/JKQTBasePlotter t...
Definition jkqtpdatastorage.h:282
this class extends the QPainter
Definition jkqtpenhancedpainter.h:33
This Mix-In class provides setter/getter methods, storage and other facilities for the graph filling ...
Definition jkqtpgraphsbasestylingmixins.h:529
This Mix-In class provides setter/getter methods, storage and other facilities for the graph line sty...
Definition jkqtpgraphsbasestylingmixins.h:49
simply marks a range (and possibly a centerline) in a plot. This may be used to display e....
Definition jkqtprange.h:218
JKQTPHorizontalRange(JKQTBasePlotter *parent=nullptr)
class constructor
virtual void drawKeyMarker(JKQTPEnhancedPainter &painter, const QRectF &rect) override
plots a key marker inside the specified rectangle rect
virtual void draw(JKQTPEnhancedPainter &painter) override
plots the graph to the plotter object specified as parent
bool getXMinMax(double &minx, double &maxx, double &smallestGreaterZero) override
get the maximum and minimum x-value of the graph
JKQTPHorizontalRange(JKQTPlotter *parent)
class constructor
bool getYMinMax(double &miny, double &maxy, double &smallestGreaterZero) override
get the maximum and minimum y-value of the graph
this virtual base class of every element, which is part of a JKQTPlotter plot and may appear in its k...
Definition jkqtpgraphsbase.h:62
simply marks a range (and possibly a centerline) in a plot. This may be used to display e....
Definition jkqtprange.h:57
void setCenterLineWidth(double __value)
width (pt) of the center line graph, given in pt
virtual void setColor(QColor c)
set the color of the graph (all lines and filling)
void setCenterColor(const QColor &__value)
color of the center line graph
Qt::PenStyle getCenterStyle() const
linestyle of the center line graph lines
void setUnlimitedSizeMin(bool __value)
if true, the range elongates infinitely in the direction perpendicular to the range axis and towards ...
void setDrawCenterLineOnly()
disables all drawing features except the centerline
bool getPlotCenterLine() const
indicates whether to plot a center line
JKQTPRangeBase(JKQTBasePlotter *parent=nullptr)
class constructor
double sizeMin
if unlimitedSizeMin==false, then the range rectangle only extends to this value on the axis perpendic...
Definition jkqtprange.h:161
void setUnlimitedSizeMax(bool __value)
if true, the range elongates infinitely in the direction perpendicular to the range axis and towards ...
bool unlimitedSizeMin
if true, the range elongates infinitely in the direction perpendicular to the range axis and towards ...
Definition jkqtprange.h:173
QColor getCenterColor() const
color of the center line graph
bool fillRange
if true, this fills the range with fillColor
Definition jkqtprange.h:192
bool plotRange
if true, the range is plotted, if false, only the center line is plotted (if plotCenterLine is true )
Definition jkqtprange.h:188
void setPlotCenterLine(bool __value)
indicates whether to plot a center line
double getRangeMax() const
max-value of range
double getCenterLineWidth() const
width (pt) of the center line graph, given in pt
double rangeCenter
where to plot the center line
Definition jkqtprange.h:155
void setRangeCenter(double __value)
where to plot the center line
void setFillRange(bool __value)
if true, this fills the range with fillColor
bool invertedRange
if true, fills the parts outside the given range
Definition jkqtprange.h:186
void setPlotRange(bool __value)
if true, the range is plotted, if false, only the center line is plotted (if plotCenterLine is true )
bool plotRangeLines
if true, draws lines at the range borders color
Definition jkqtprange.h:190
virtual QColor getKeyLabelColor() const override
returns the color to be used for the key label
void setSizeMax(double __value)
if unlimitedSizeMax==false, then the range rectangle only extends to this value on the axis perpendic...
double centerLineWidth
width (pt) of the center line graph, given in pt
Definition jkqtprange.h:198
bool getFillRange() const
if true, this fills the range with fillColor
double rangeMin
min-value of range
Definition jkqtprange.h:147
void setInvertedRange(bool __value)
if true, fills the parts outside the given range
double rangeMax
max-value of range
Definition jkqtprange.h:151
double getRangeCenter() const
where to plot the center line
void setRangeMax(double __value)
max-value of range
double getSizeMin() const
if unlimitedSizeMin==false, then the range rectangle only extends to this value on the axis perpendic...
bool getPlotRange() const
if true, the range is plotted, if false, only the center line is plotted (if plotCenterLine is true )
double getSizeMax() const
if unlimitedSizeMax==false, then the range rectangle only extends to this value on the axis perpendic...
QColor centerColor
color of the center line graph
Definition jkqtprange.h:194
void setSizeMin(double __value)
if unlimitedSizeMin==false, then the range rectangle only extends to this value on the axis perpendic...
bool getInvertedRange() const
if true, fills the parts outside the given range
double getRangeMin() const
min-value of range
bool getUnlimitedSizeMax() const
if true, the range elongates infinitely in the direction perpendicular to the range axis and towards ...
bool getPlotRangeLines() const
if true, draws lines at the range borders color
Qt::PenStyle centerStyle
linestyle of the center line graph lines
Definition jkqtprange.h:196
void setPlotRangeLines(bool __value)
if true, draws lines at the range borders color
bool unlimitedSizeMax
if true, the range elongates infinitely in the direction perpendicular to the range axis and towards ...
Definition jkqtprange.h:179
void setCenterStyle(Qt::PenStyle __value)
linestyle of the center line graph lines
double sizeMax
if unlimitedSizeMax==false, then the range rectangle only extends to this value on the axis perpendic...
Definition jkqtprange.h:167
bool getUnlimitedSizeMin() const
if true, the range elongates infinitely in the direction perpendicular to the range axis and towards ...
void setRangeMin(double __value)
min-value of range
bool plotCenterLine
indicates whether to plot a center line
Definition jkqtprange.h:181
simply marks a range (and possibly a centerline) in a plot. This may be used to display e....
Definition jkqtprange.h:258
bool getYMinMax(double &miny, double &maxy, double &smallestGreaterZero) override
get the maximum and minimum y-value of the graph
JKQTPVerticalRange(JKQTPlotter *parent)
class constructor
JKQTPVerticalRange(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
bool getXMinMax(double &minx, double &maxx, double &smallestGreaterZero) override
get the maximum and minimum x-value of the graph
plotter widget for scientific plots (uses JKQTBasePlotter to do the actual drawing)
Definition jkqtplotter.h:364
#define JKQTPLOTTER_LIB_EXPORT
Definition jkqtplotter_imexport.h:89