21#ifndef jkqtpgraphsparsedfunction_H
22#define jkqtpgraphsparsedfunction_H
27#include "jkqtplotter/jkqtptools.h"
28#include "jkqtmath/jkqtpmathparser.h"
29#include "jkqtplotter/jkqtplotter_imexport.h"
30#include "jkqtplotter/graphs/jkqtpevaluatedfunction.h"
82 std::shared_ptr<JKQTPMathParser>
parser;
83 std::shared_ptr<JKQTPMathParser::jkmpNode>
node;
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 class extends JKQTPEvaluatedFunctionWithErrorsGraphBase with functions to draw the graphs and se...
Definition jkqtpevaluatedfunction.h:47
extends JKQTPEvaluatedFunctionWithErrorsGraphDrawingBase with the capabilities to define functions fr...
Definition jkqtpparsedfunction.h:43
ParsedFunctionLineGraphFunctionData efdata
parser data structure for errorFunction
Definition jkqtpparsedfunction.h:99
static double evaluateParsedFunction(double x, ParsedFunctionLineGraphFunctionData *fdata)
implements the actual plot function
QString getDependentVariableName() const
nache of the dependent variable (e.g. x for a function f(x) )
JKQTPParsedFunctionLineGraphBase(const QString &dependentVariableName, const QString &function, JKQTPlotter *parent)
class constructor
JKQTPParsedFunctionLineGraphBase(const QString &dependentVariableName, JKQTBasePlotter *parent=nullptr)
class constructor
virtual ~JKQTPParsedFunctionLineGraphBase() override
class destructor
QString getErrorFunction() const
the function to be evaluated to add error indicators to the graph. This function is evaluated to an e...
ParsedFunctionLineGraphFunctionData fdata
parser data structure for function
Definition jkqtpparsedfunction.h:94
JKQTPParsedFunctionLineGraphBase(const QString &dependentVariableName, const QString &function, JKQTBasePlotter *parent=nullptr)
class constructor
QString function
the function to be evaluated for the plot. Use x as the free variable, e.g. "x^2+2"
Definition jkqtpparsedfunction.h:92
QString dependentVariableName
nache of the dependent variable (e.g. x for a function f(x) )
Definition jkqtpparsedfunction.h:89
JKQTPParsedFunctionLineGraphBase(const QString &dependentVariableName, JKQTPlotter *parent)
class constructor
QString errorFunction
the function to be evaluated to add error indicators to the graph. This function is evaluated to an e...
Definition jkqtpparsedfunction.h:97
QString getFunction() const
the function to be evaluated for the plot. Use x as the free variable, e.g. "x^2+2"
void setErrorFunction(const QString &__value)
the function to be evaluated to add error indicators to the graph. This function is evaluated to an e...
void setFunction(const QString &__value)
the function to be evaluated for the plot. Use x as the free variable, e.g. "x^2+2"
This implements line plots where the data is taken from a user supplied function The function is def...
Definition jkqtpparsedfunction.h:117
virtual std::function< QPointF(double)> buildErrorFunctorSpec() override
this function returns a functor that is used to generate the plot data in coordinate space,...
virtual void draw(JKQTPEnhancedPainter &painter) override
plots the graph to the plotter object specified as parent
JKQTPXParsedFunctionLineGraph(JKQTPlotter *parent)
class constructor
JKQTPXParsedFunctionLineGraph(const QString &function, JKQTBasePlotter *parent=nullptr)
class constructor
virtual PlotFunctorSpec buildPlotFunctorSpec() override
this function returns a functor that is used to generate the plot data in coordinate space,...
virtual ~JKQTPXParsedFunctionLineGraph() override
class destructor
JKQTPXParsedFunctionLineGraph(JKQTBasePlotter *parent=nullptr)
class constructor
JKQTPXParsedFunctionLineGraph(const QString &function, JKQTPlotter *parent)
class constructor
This implements line plots where the data is taken from a user supplied function The function is def...
Definition jkqtpparsedfunction.h:163
JKQTPYParsedFunctionLineGraph(const QString &function, JKQTPlotter *parent)
class constructor
JKQTPYParsedFunctionLineGraph(JKQTBasePlotter *parent=nullptr)
class constructor
JKQTPYParsedFunctionLineGraph(const QString &function, JKQTBasePlotter *parent=nullptr)
class constructor
virtual PlotFunctorSpec buildPlotFunctorSpec() override
this function returns a functor that is used to generate the plot data in coordinate space,...
virtual std::function< QPointF(double)> buildErrorFunctorSpec() override
this function returns a functor that is used to generate the plot data in coordinate space,...
virtual ~JKQTPYParsedFunctionLineGraph() override
class destructor
virtual void draw(JKQTPEnhancedPainter &painter) override
plots the graph to the plotter object specified as parent
JKQTPYParsedFunctionLineGraph(JKQTPlotter *parent)
class constructor
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
specifies an internal plot functor
Definition jkqtpevaluatedfunctionbase.h:152
INTERNAL data structure combining a JKQTPMathParser and a JKQTPMathParser::jkmpNode.
Definition jkqtpparsedfunction.h:80
std::shared_ptr< JKQTPMathParser::jkmpNode > node
Definition jkqtpparsedfunction.h:83
int varcount
Definition jkqtpparsedfunction.h:84
QString dependentVariableName
Definition jkqtpparsedfunction.h:85
ParsedFunctionLineGraphFunctionData()
Definition jkqtpparsedfunction.h:81
std::shared_ptr< JKQTPMathParser > parser
Definition jkqtpparsedfunction.h:82