6 #ifndef __PLOTEXPRESSION_H_
7 #define __PLOTEXPRESSION_H_
9 #include "plotsconfig.h"
11 #include "plotexpressionbinddomain.h"
18 class QwtPointSeriesData;
109 virtual double sample(
double sampleTime)
const = 0;
147 inline QString
toString()
const {
return stringExpression(); }
163 virtual QString stringExpression()
const = 0;
166 #endif // __PLOTEXPRESSION_H_
virtual void unbind()
Unbinds the sampling state once sampling has completed.
Definition: plotexpression.h:139
virtual BindResult bind(const QList< PlotInstance * > &curves, PlotBindingTracker &bindTracker, PlotExpressionBindDomain &domain, bool repeatLastBinding=false)=0
Attempts to binds the PlotExpression to sample the given curves.
Supports multiple bindings of the same expression to different curves.
Definition: plotbindingtracker.h:34
virtual bool explicitTime() const
Is the curve generated with explicit time values?
Definition: plotexpression.h:157
PlotExpression()
Empty constructor.
Core data for binding a PlotExpression.
Definition: plotexpressionbinddomain.h:49
virtual ~PlotExpression()
Empty, virtual destructor.
Holds data for a single curve.
Definition: plotinstance.h:43
virtual PlotExpression * clone() const =0
Performs a deep clone of the PlotExpression.
BindResult
Return values for the PlotExpression::bind() method.
Definition: plotexpressionbinddomain.h:15
QString toString() const
Converts the PlotExpression into a parseable string form.
Definition: plotexpression.h:147
virtual double sample(double sampleTime) const =0
Called to generate a sample at sampleTime.
A PlotExpression represents an operation in a plot equation.
Definition: plotexpression.h:91