21#ifndef jkqtpevaluatedparametriccurve_H
22#define jkqtpevaluatedparametriccurve_H
28#include "jkqtplotter/graphs/jkqtpscatter.h"
29#include "jkqtplotter/jkqtpgraphsbasestylingmixins.h"
30#include "jkqtplotter/jkqtplotter_imexport.h"
31#include "jkqtcommon/jkqtpgeometrytools.h"
32#include "jkqtplotter/graphs/jkqtpevaluatedfunctionbase.h"
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
Base class for graph classes that evaluate a mathematical function (e.g. defined as a C-function),...
Definition jkqtpevaluatedfunctionbase.h:74
This Mix-In class provides setter/getter methods, storage and other facilities for the graph line sty...
Definition jkqtpgraphsbasestylingmixins.h:49
Base class for line plots where the data is taken from a user supplied function The function is eval...
Definition jkqtpevaluatedparametriccurve.h:54
double getTMax() const
upper bound of t-value range for , i.e. , default is 1
JKQTPXYFunctionLineGraphBase(JKQTPlotter *parent)
class constructor
void setTMax(double val)
upper bound of t-value range for , i.e. , default is 1
JKQTPXYFunctionLineGraphBase(double tmin_, double tmax_, JKQTBasePlotter *parent)
class constructor
void setTRange(double tmin_, double tmax_)
set the t-value range for
virtual void draw(JKQTPEnhancedPainter &painter) override
plots the graph to the plotter object specified as parent
JKQTPXYFunctionLineGraphBase(JKQTBasePlotter *parent=nullptr)
class constructor
double tmin
lower bound of t-value range for , i.e. , default is 0
Definition jkqtpevaluatedparametriccurve.h:103
double tmax
upper bound of t-value range for , i.e. , default is 1
Definition jkqtpevaluatedparametriccurve.h:107
JKQTPXYFunctionLineGraphBase(double tmin_, double tmax_, JKQTPlotter *parent)
class constructor
virtual QColor getKeyLabelColor() const override
returns the color to be used for the key label
virtual ~JKQTPXYFunctionLineGraphBase() override
class destructor
QPair< double, double > getTRange() const
returns the t-value range for
double getTMin() const
lower bound of t-value range for , i.e. , default is 0
void setTRange(const QPair< double, double > &range)
set the t-value range for
virtual void drawKeyMarker(JKQTPEnhancedPainter &painter, const QRectF &rect) override
plots a key marker inside the specified rectangle rect
void setTMin(double val)
lower bound of t-value range for , i.e. , default is 0
This implements line plots where the data is taken from a user supplied function The function is eva...
Definition jkqtpevaluatedparametriccurve.h:172
void setPlotFunctionFunctor(jkqtpSimpleParametricCurveFunctionType &&__value)
sets a functor to be plotted
JKQTPXYFunctionLineGraph(jkqtpSimpleParametricCurveFunctionType &&f, const QString &title, double tmin_=0, double tmax_=1, JKQTBasePlotter *parent=nullptr)
class constructor
JKQTPXYFunctionLineGraph(const jkqtpSimpleParametricCurveFunctionType &f, const QString &title, double tmin_, double tmax_, JKQTPlotter *parent)
class constructor
jkqtpSimpleParametricCurveFunctionType simplePlotFunction
a simple function to be plotted, simplified form without parameters
Definition jkqtpevaluatedparametriccurve.h:244
virtual PlotFunctorSpec buildPlotFunctorSpec() override
this function returns a functor that is used to generate the plot data in coordinate space,...
jkqtpSimpleParametricCurveFunctionType getSimplePlotFunction() const
a simple function to be plotted, simplified form without parameters
JKQTPXYFunctionLineGraph(jkqtpParametricCurveFunctionType &&f, const QString &title, double tmin_, double tmax_, JKQTPlotter *parent)
class constructor
JKQTPXYFunctionLineGraph(JKQTPlotter *parent)
class constructor
jkqtpParametricCurveFunctionType getPlotFunctionFunctor() const
the function to be plotted
JKQTPXYFunctionLineGraph(const jkqtpSimpleParametricCurveFunctionType &f, const QString &title, double tmin_=0, double tmax_=1, JKQTBasePlotter *parent=nullptr)
class constructor
void setPlotFunctionFunctor(jkqtpParametricCurveFunctionType &&__value)
sets a functor to be plotted
JKQTPXYFunctionLineGraph(jkqtpParametricCurveFunctionType &&f, const QString &title, double tmin_=0, double tmax_=1, JKQTBasePlotter *parent=nullptr)
class constructor
void setPlotFunctionFunctor(const jkqtpParametricCurveFunctionType &__value)
sets a functor to be plotted
jkqtpParametricCurveFunctionType plotFunction
the function to be plotted
Definition jkqtpevaluatedparametriccurve.h:242
bool isSimplePlotFunction() const
returns whether the plot function was defined as a jkqtpSimpleParametricCurveFunctionType (true ) or ...
JKQTPXYFunctionLineGraph(const jkqtpParametricCurveFunctionType &f, const QString &title, double tmin_, double tmax_, JKQTPlotter *parent)
class constructor
virtual ~JKQTPXYFunctionLineGraph() override
class destructor
JKQTPXYFunctionLineGraph(const jkqtpParametricCurveFunctionType &f, const QString &title, double tmin_=0, double tmax_=1, JKQTBasePlotter *parent=nullptr)
class constructor
void setPlotFunctionFunctor(const jkqtpSimpleParametricCurveFunctionType &__value)
sets a functor to be plotted
JKQTPXYFunctionLineGraph(JKQTBasePlotter *parent=nullptr)
class constructor
JKQTPXYFunctionLineGraph(jkqtpSimpleParametricCurveFunctionType &&f, const QString &title, double tmin_, double tmax_, JKQTPlotter *parent)
class constructor
plotter widget for scientific plots (uses JKQTBasePlotter to do the actual drawing)
Definition jkqtplotter.h:364
std::function< QPointF(double)> jkqtpSimpleParametricCurveFunctionType
simplified type of functions (without parameters) that may be plotted by JKQTPXYFunctionLineGraph
Definition jkqtpevaluatedparametriccurve.h:129
std::function< QPointF(double, const QVector< double >)> jkqtpParametricCurveFunctionType
type of functions that may be plotted by JKQTPXYFunctionLineGraph
Definition jkqtpevaluatedparametriccurve.h:121
#define JKQTPLOTTER_LIB_EXPORT
Definition jkqtplotter_imexport.h:89
specifies an internal plot functor
Definition jkqtpevaluatedfunctionbase.h:152