20#ifndef jkqtpgraphspeakstream_H_INCLUDED
21#define jkqtpgraphspeakstream_H_INCLUDED
28#include "jkqtplotter/jkqtpgraphsbase.h"
29#include "jkqtplotter/jkqtpgraphsbasestylingmixins.h"
56 virtual bool getXMinMax(
double& minx,
double& maxx,
double& smallestGreaterZero)
override;
58 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 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 line sty...
Definition jkqtpgraphsbasestylingmixins.h:49
interprets data as a stream of x- or y-positions (depending in yPeaks ) ans plots a line on the heig...
Definition jkqtppeakstream.h:48
double getBaseline() const
position of the baseline
double getPeakHeight() const
height of each peak
bool yPeaks
if set true the peaks are in Y direction (default: true)
Definition jkqtppeakstream.h:93
bool getYPeaks() const
if set true the peaks are in Y direction (default: true)
virtual bool getXMinMax(double &minx, double &maxx, double &smallestGreaterZero) override
get the maximum and minimum x-value of the graph
void setDrawBaseline(bool __value)
indicates whether to draw the basleine (default: true )
JKQTPPeakStreamGraph(JKQTPlotter *parent)
void setPeakHeight(double __value)
height of each peak
double peakHeight
height of each peak
Definition jkqtppeakstream.h:91
virtual void drawKeyMarker(JKQTPEnhancedPainter &painter, const QRectF &rect) override
plots a key marker inside the specified rectangle rect
void setColor(QColor col)
set symbol color and fill color at the same time
bool getDrawBaseline() const
indicates whether to draw the basleine (default: true )
virtual void draw(JKQTPEnhancedPainter &painter) override
plots the graph to the plotter object specified as parent
JKQTPPeakStreamGraph(JKQTBasePlotter *parent=nullptr)
class constructor
virtual QColor getKeyLabelColor() const override
returns the color to be used for the key label
double baseline
position of the baseline
Definition jkqtppeakstream.h:89
void setBaseline(double __value)
position of the baseline
bool drawBaseline
indicates whether to draw the basleine (default: true )
Definition jkqtppeakstream.h:95
void setYPeaks(bool __value)
if set true the peaks are in Y direction (default: true)
virtual bool getYMinMax(double &miny, double &maxy, double &smallestGreaterZero) override
get the maximum and minimum y-value of the graph
This virtual JKQTPGraph descendent may be used as base for all graphs that use at least one column of...
Definition jkqtpgraphsbase.h:875
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