OpenCurves
0.9
|
An expression yielding a constant numeric value. More...
#include <plotconstant.h>
Public Member Functions | |
PlotConstant (double constant) | |
Create a constant expression. More... | |
void | setConstant (double constant) |
Sets the constant value. More... | |
double | constant () const |
Get the constant value. More... | |
virtual double | sample (double sampleTime) const |
Return the constant. More... | |
virtual BindResult | bind (const QList< PlotInstance * > &curves, PlotBindingTracker &bindTracker, PlotExpressionBindDomain &info, bool repeatLastBinding=false) |
Always bound, but sets the domain sample count to 1. | |
virtual PlotExpression * | clone () const |
Deep clone. | |
![]() | |
PlotExpression () | |
Empty constructor. | |
virtual | ~PlotExpression () |
Empty, virtual destructor. | |
virtual void | unbind () |
Unbinds the sampling state once sampling has completed. More... | |
QString | toString () const |
Converts the PlotExpression into a parseable string form. More... | |
virtual bool | explicitTime () const |
Is the curve generated with explicit time values? More... | |
An expression yielding a constant numeric value.
The constant has no specific domain and its range depends on other domains in the expression tree.
|
inline |
Create a constant expression.
constant | The value to return from sample() . |
|
inline |
|
virtual |
|
inline |
Sets the constant value.
constant | The value to return from sample() . |
References constant().