20#ifndef jkqtpgeoshapes_H_INCLUDED
21#define jkqtpgeoshapes_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"
119 virtual bool getXMinMax(
double& minx,
double& maxx,
double& smallestGreaterZero)
override;
121 virtual bool getYMinMax(
double& miny,
double& maxy,
double& smallestGreaterZero)
override;
235 virtual bool getXMinMax(
double& minx,
double& maxx,
double& smallestGreaterZero)
override;
237 virtual bool getYMinMax(
double& miny,
double& maxy,
double& smallestGreaterZero)
override;
434 virtual bool getXMinMax(
double& minx,
double& maxx,
double& smallestGreaterZero)
override;
436 virtual bool getYMinMax(
double& miny,
double& maxy,
double& smallestGreaterZero)
override;
506 virtual bool getXMinMax(
double& minx,
double& maxx,
double& smallestGreaterZero)
override;
508 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 JKQTPGeometricPlotElement is used as base class for geometric drawing elements that only consist...
Definition jkqtpgeobase.h:177
This JKQTPGeometricPlotElement is used to draw a chord.
Definition jkqtpgeoshapes.h:477
virtual bool getYMinMax(double &miny, double &maxy, double &smallestGreaterZero) override
get the maximum and minimum y-value of the graph
JKQTPGeoChord(JKQTBasePlotter *parent, double x, double y, double width, double height, double angleStart, double angleStop, DrawMode drawMode=DrawAsGraphicElement)
class constructor
virtual bool getXMinMax(double &minx, double &maxx, double &smallestGreaterZero) override
get the maximum and minimum x-value of the graph
virtual void draw(JKQTPEnhancedPainter &painter) override
plots the graph to the plotter object specified as parent
JKQTPGeoChord(JKQTPlotter *parent, double x, double y, double width, double height, double angleStart, double angleStop, DrawMode drawMode=DrawAsGraphicElement)
class constructor
This JKQTPGeometricPlotElement is used to draw an ellipse.
Definition jkqtpgeoshapes.h:300
JKQTPGeoEllipse(JKQTBasePlotter *parent, QPointF bottomleft, QPointF topright, DrawMode drawMode=DrawAsGraphicElement)
class constructor
void drawInternal(JKQTPEnhancedPainter &painter, double angleStart=0, double angleStop=0, InternalDrawMode mode=InternalDrawMode::Ellipse)
inertnal draw function, can draw an ellipse, a pie or a chord!
JKQTPGeoEllipse(JKQTPlotter *parent, QPointF bottomleft, QPointF topright, DrawMode drawMode=DrawAsGraphicElement)
class constructor
InternalDrawMode
drawing modes for drawInternal()
Definition jkqtpgeoshapes.h:378
JKQTPGeoEllipse(JKQTBasePlotter *parent, const QPointF ¢er, const QSizeF &size, DrawMode drawMode=DrawAsGraphicElement)
class constructor
JKQTPGeoEllipse(JKQTPlotter *parent, double x, double y, double width, double height, DrawMode drawMode=DrawAsGraphicElement)
class constructor
virtual void draw(JKQTPEnhancedPainter &painter) override
plots the graph to the plotter object specified as parent
JKQTPGeoEllipse(JKQTPlotter *parent, const QPointF ¢er, const QSizeF &size, DrawMode drawMode=DrawAsGraphicElement)
class constructor
JKQTPGeoEllipse(JKQTBasePlotter *parent, double x, double y, double width, double height, DrawMode drawMode=DrawAsGraphicElement)
class constructor
This JKQTPGeometricPlotElement is used to draw a pie.
Definition jkqtpgeoshapes.h:404
virtual bool getXMinMax(double &minx, double &maxx, double &smallestGreaterZero) override
get the maximum and minimum x-value of the graph
double angleStop
if we only draw an arc, this is the ending angle
Definition jkqtpgeoshapes.h:458
JKQTPGeoPie(JKQTPlotter *parent, double x, double y, double width, double height, double angleStart, double angleStop, DrawMode drawMode=DrawAsGraphicElement)
class constructor
JKQTPGeoPie(JKQTBasePlotter *parent, double x, double y, double width, double height, double angleStart, double angleStop, DrawMode drawMode=DrawAsGraphicElement)
class constructor
void setAngleStop(double __value)
if we only draw an arc, this is the ending angle
double angleStart
if we only draw an arc, this is the starting angle
Definition jkqtpgeoshapes.h:456
virtual void draw(JKQTPEnhancedPainter &painter) override
plots the graph to the plotter object specified as parent
double getAngleStop() const
if we only draw an arc, this is the ending angle
virtual bool getYMinMax(double &miny, double &maxy, double &smallestGreaterZero) override
get the maximum and minimum y-value of the graph
void setAngleStart(double __value)
if we only draw an arc, this is the starting angle
double getAngleStart() const
if we only draw an arc, this is the starting angle
This JKQTPGeometricPlotElement is used to draw a polygon.
Definition jkqtpgeoshapes.h:202
void removePoint(int i)
deletes the i-the point
QPolygonF points
list with all points on the polygon
Definition jkqtpgeoshapes.h:279
QPolygonF::iterator pointsBegin()
returns an iterator to the first point
const QPointF & getPoint(int i) const
returns the i-th of point
int getPointCount() const
returns the number of points
void appendPoint(const double x, const double y)
append a point to the polygon
JKQTPGeoPolygon(JKQTBasePlotter *parent, DrawMode drawMode=DrawAsGraphicElement)
class constructor
QPolygonF::const_iterator pointsCBegin() const
returns a constant iterator to the first point
void setPoints(const QPolygonF &__value)
list with all points on the polygon
virtual void draw(JKQTPEnhancedPainter &painter) override
plots the graph to the plotter object specified as parent
QPolygonF::iterator pointsEnd()
returns an iterator after the last point
QPolygonF getPoints() const
list with all points on the polygon
JKQTPGeoPolygon(JKQTPlotter *parent, DrawMode drawMode=DrawAsGraphicElement)
class constructor
QPolygonF::const_iterator pointsCEnd() const
returns a constant iterator after the last point
JKQTPGeoPolygon(JKQTBasePlotter *parent, const QPolygonF &points, DrawMode drawMode=DrawAsGraphicElement)
class constructor
void appendPoint(const QPointF &p)
append a point to the polygon
virtual bool getXMinMax(double &minx, double &maxx, double &smallestGreaterZero) override
get the maximum and minimum x-value of the graph
void setPoint(int i, const QPointF &point)
overwrites the i-th point
JKQTPGeoPolygon(JKQTPlotter *parent, const QPolygonF &points, DrawMode drawMode=DrawAsGraphicElement)
class constructor
QPointF & getPoint(int i)
returns the i-th of point
virtual bool getYMinMax(double &miny, double &maxy, double &smallestGreaterZero) override
get the maximum and minimum y-value of the graph
This JKQTPGeometricPlotElement is used to draw a rectangle.
Definition jkqtpgeoshapes.h:49
QRectF getBottomLeftRectangle() const
returns the rectangle using the bottom-left corner, as well as its width and height,...
double getHeight() const
height of a center of the rectangle
QSizeF getSize() const
returns the size (width and height) of the rectangle
double getX() const
x-coordinate of a center of the rectangle
JKQTPGeoRectangle(JKQTPlotter *parent, QPointF bottomleft, QPointF topright, DrawMode drawMode=DrawAsGraphicElement)
class constructor
JKQTPGeoRectangle(JKQTBasePlotter *parent, double x, double y, double width, double height, DrawMode drawMode=DrawAsGraphicElement)
class constructor
double width
width of a center of the rectangle
Definition jkqtpgeoshapes.h:178
JKQTPGeoRectangle(JKQTBasePlotter *parent, const QPointF ¢er, const QSizeF &size, DrawMode drawMode=DrawAsGraphicElement)
class constructor
JKQTPGeoRectangle(JKQTBasePlotter *parent, QPointF bottomleft, QPointF topright, DrawMode drawMode=DrawAsGraphicElement)
class constructor
void setBottomLeftRectangle(const QRectF &rect)
set the rectangle using the bottom-left corner, as well as its width and height
void setAngle(double __value)
rotation angle of rectangle [degrees] around (x,y)
double height
height of a center of the rectangle
Definition jkqtpgeoshapes.h:180
JKQTPGeoRectangle(JKQTPlotter *parent, double x, double y, double width, double height, DrawMode drawMode=DrawAsGraphicElement)
class constructor
void setSize(const QSizeF &size)
sets the size (width and height) of the rectangle
double angle
rotation angle of rectangle [degrees] around (x,y)
Definition jkqtpgeoshapes.h:182
void setX(double __value)
x-coordinate of a center of the rectangle
void setCenter(const QPointF ¢er)
sets the center point of the rectangle
void setBottomLeftRectangle(double x, double y, double width, double height)
set the rectangle using the bottom-left corner, as well as its width and height
QTransform getTransform()
returns the transformation matrix used for this rectangle
double getY() const
y-coordinate of a center of the rectangle
double x
x-coordinate of a center of the rectangle
Definition jkqtpgeoshapes.h:174
void setY(double __value)
y-coordinate of a center of the rectangle
double getAngle() const
rotation angle of rectangle [degrees] around (x,y)
virtual void draw(JKQTPEnhancedPainter &painter) override
plots the graph to the plotter object specified as parent
void setHeight(double __value)
height of a center of the rectangle
virtual bool getYMinMax(double &miny, double &maxy, double &smallestGreaterZero) override
get the maximum and minimum y-value of the graph
QPolygonF getPolygon()
returns a QPolygonF which represents the rectangle after rotation, but still in the world coordinate ...
QPointF getCenter() const
returns the center point of the rectangle
double getWidth() const
width of a center of the rectangle
JKQTPGeoRectangle(JKQTPlotter *parent, const QPointF ¢er, const QSizeF &size, DrawMode drawMode=DrawAsGraphicElement)
class constructor
double y
y-coordinate of a center of the rectangle
Definition jkqtpgeoshapes.h:176
void setWidth(double __value)
width of a center of the rectangle
virtual bool getXMinMax(double &minx, double &maxx, double &smallestGreaterZero) override
get the maximum and minimum x-value of the graph
DrawMode
indicates how to draw the geometric object
Definition jkqtpgraphsbase.h:496
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