6 #ifndef PLOTBINDINGTRACKER_H_
7 #define PLOTBINDINGTRACKER_H_
9 #include "plotsconfig.h"
87 QHash<const PlotExpression *, unsigned> _markers;
88 QHash<const PlotExpression *, bool> _hold;
91 #endif // PLOTBINDINGTRACKER_H_
bool isHeld(const PlotExpression *expr) const
Is expr being held?
bool markerFor(const PlotExpression *expr, unsigned &marker) const
Request the marker value for expr.
PlotInstance * firstPlot() const
Request the first bound PlotInstance in the tree.
Definition: plotbindingtracker.h:42
Supports multiple bindings of the same expression to different curves.
Definition: plotbindingtracker.h:34
void setFirstPlotIf(PlotInstance *plot)
Set the first bound PlotInstance so long as it is not already set.
Definition: plotbindingtracker.h:50
PlotBindingTracker()
Create an empty biding.
Definition: plotbindingtracker.h:38
Holds data for a single curve.
Definition: plotinstance.h:43
bool contains(const PlotExpression *expr) const
Checks if a marker is present for expr.
void setHold(const PlotExpression *expr, bool hold=true)
Set the flag indicating expr should not progress its marker.
void clearFirstPlot()
Clear firstPlot().
Definition: plotbindingtracker.h:53
void setFirstPlot(PlotInstance *plot)
Set the first bound PlotInstance in the tree.
Definition: plotbindingtracker.h:46
A PlotExpression represents an operation in a plot equation.
Definition: plotexpression.h:91
bool clear(const PlotExpression *expr)
Clear marker and hold flag for expr.
void setMarker(const PlotExpression *expr, unsigned marker)
Set the arbitrary marker value for expr.