20#ifndef jkqtpgeoannotations_H_INCLUDED
21#define jkqtpgeoannotations_H_INCLUDED
27#include "jkqtplotter/graphs/jkqtpgeobase.h"
28#include "jkqtplotter/jkqtpgraphsbasestylingmixins.h"
29#include "jkqtplotter/jkqtptools.h"
30#include "jkqtplotter/jkqtplotter_imexport.h"
31#include "jkqtmathtext/jkqtmathtext.h"
148 virtual bool getXMinMax(
double& minx,
double& maxx,
double& smallestGreaterZero)
override;
150 virtual bool getYMinMax(
double& miny,
double& maxy,
double& smallestGreaterZero)
override;
257 virtual bool getXMinMax(
double& minx,
double& maxx,
double& smallestGreaterZero)
override;
259 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 virtual JKQTPPlotAnnotationElement descendent may be used to display a single symbol (marker).
Definition jkqtpgeoannotations.h:42
virtual QColor getKeyLabelColor() const override
returns the color to be used for the key label
virtual void draw(JKQTPEnhancedPainter &painter) override
plots the graph to the plotter object specified as parent
void setP(const QPointF &p)
set x and y at the same time
JKQTPGeoSymbol(JKQTBasePlotter *parent, double x, double y, JKQTPGraphSymbols symbol, double symbolSize, QColor color, QColor fillColor)
class contructor
virtual bool getYMinMax(double &miny, double &maxy, double &smallestGreaterZero) override
get the maximum and minimum y-value of the graph
void setX(double __value)
x-position (in plot coordinates) of the symbol (symbol center)
JKQTPGeoSymbol(JKQTPlotter *parent, double x, double y, JKQTPGraphSymbols symbol, double symbolSize, QColor color, QColor fillColor)
class contructor
JKQTPGeoSymbol(JKQTBasePlotter *parent, double x, double y, JKQTPGraphSymbols symbol, double symbolSize, QColor color)
class contructor
double y
y-position (in plot coordinates) of the symbol (symbol center)
Definition jkqtpgeoannotations.h:174
virtual void drawKeyMarker(JKQTPEnhancedPainter &painter, const QRectF &rect) override
plots a key marker inside the specified rectangle rect
double getY() const
y-position (in plot coordinates) of the symbol (symbol center)
JKQTPGeoSymbol(JKQTBasePlotter *parent, double x, double y)
class contructor
JKQTPGeoSymbol(JKQTBasePlotter *parent, double x, double y, JKQTPGraphSymbols symbol)
class contructor
JKQTPGeoSymbol(JKQTPlotter *parent, double x, double y, JKQTPGraphSymbols symbol, double symbolSize)
class contructor
void setY(double __value)
y-position (in plot coordinates) of the symbol (symbol center)
JKQTPGeoSymbol(JKQTBasePlotter *parent, double x, double y, JKQTPGraphSymbols symbol, double symbolSize)
class contructor
virtual void setColor(QColor c)
JKQTPGeoSymbol(JKQTPlotter *parent, double x, double y, JKQTPGraphSymbols symbol, double symbolSize, QColor color)
class contructor
JKQTPGeoSymbol(JKQTPlotter *parent, double x, double y, JKQTPGraphSymbols symbol)
class contructor
JKQTPGeoSymbol(JKQTPlotter *parent, double x, double y)
class contructor
double getX() const
x-position (in plot coordinates) of the symbol (symbol center)
double x
x-position (in plot coordinates) of the symbol (symbol center)
Definition jkqtpgeoannotations.h:172
QPointF getP() const
returns x and y at the same time
virtual bool getXMinMax(double &minx, double &maxx, double &smallestGreaterZero) override
get the maximum and minimum x-value of the graph
This JKQTPPlotAnnotationElement is used to display text. It uses the JKQTMathText class in order to d...
Definition jkqtpgeoannotations.h:185
JKQTPGeoText(JKQTPlotter *parent, double x, double y, const QString &text, double fontSize)
class contructor
void setY(double __value)
y-position (in plot coordinates) of the text (left/baseline)
virtual bool getYMinMax(double &miny, double &maxy, double &smallestGreaterZero) override
get the maximum and minimum y-value of the graph
JKQTPGeoText(JKQTPlotter *parent, double x, double y, const QString &text)
class contructor
double getX() const
x-position (in plot coordinates) of the text (left/baseline)
virtual QColor getKeyLabelColor() const override
returns the color to be used for the key label
JKQTPGeoText(JKQTPlotter *parent, double x, double y, const QString &text, double fontSize, QColor color)
class contructor
QPointF getP() const
returns x and y at the same time
virtual void draw(JKQTPEnhancedPainter &painter) override
plots the graph to the plotter object specified as parent
double x
x-position (in plot coordinates) of the text (left/baseline)
Definition jkqtpgeoannotations.h:283
JKQTPGeoText(JKQTBasePlotter *parent, double x, double y, const QString &text, double fontSize, QColor color)
class contructor
QString getText() const
the text to display
QPen getPen(JKQTPEnhancedPainter &painter)
return a pen, that may be used for drawing
void setX(double __value)
x-position (in plot coordinates) of the text (left/baseline)
QString text
the text to display
Definition jkqtpgeoannotations.h:288
virtual void drawKeyMarker(JKQTPEnhancedPainter &painter, const QRectF &rect) override
plots a key marker inside the specified rectangle rect
double y
y-position (in plot coordinates) of the text (left/baseline)
Definition jkqtpgeoannotations.h:285
double getY() const
y-position (in plot coordinates) of the text (left/baseline)
JKQTPGeoText(JKQTBasePlotter *parent, double x, double y, const QString &text, double fontSize)
class contructor
virtual bool getXMinMax(double &minx, double &maxx, double &smallestGreaterZero) override
get the maximum and minimum x-value of the graph
void setP(const QPointF &p)
set x and y at the same time
void setText(const QString &__value)
the text to display
JKQTPGeoText(JKQTBasePlotter *parent, double x, double y, const QString &text)
class contructor
virtual void setColor(QColor c)
set line and fill color
This Mix-In class provides setter/getter methods, storage and other facilities for the graph symbols ...
Definition jkqtpgraphsbasestylingmixins.h:379
This Mix-In class provides setter/getter methods, storage and other facilities for text in graphs.
Definition jkqtpgraphsbasestylingmixins.h:640
this is the virtual base class of all JKQTPPlotElement's in a JKQTPlotter plot that represent annotat...
Definition jkqtpgraphsbase.h:550
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