SPH
|
Base class for plots showing a dependence of given quantity on a spatial coordinate. More...
#include <Plot.h>
Public Member Functions | |
SpatialPlot (const QuantityId id, const Optional< Size > binCnt=NOTHING) | |
Constructs the spatial plot. More... | |
virtual std::string | getCaption () const override |
Returns the caption of the plot. More... | |
virtual void | onTimeStep (const Storage &storage, const Statistics &UNUSED(stats)) override |
virtual void | clear () override |
Clears all cached data, prepares for next run. More... | |
virtual void | plot (IDrawingContext &dc) const override |
Draws the plot into the drawing context. More... | |
![]() | |
Interval | rangeX () const |
Returns the plotted range in x-coordinate. More... | |
Interval | rangeY () const |
Returns the plotted range in y-coordinate. More... | |
virtual void | onTimeStep (const Storage &storage, const Statistics &stats)=0 |
Updates the plot with new data. More... | |
![]() | |
virtual | ~Polymorphic () |
Protected Attributes | |
QuantityId | id |
Array< PlotPoint > | points |
Optional< Size > | binCnt |
![]() | |
struct { | |
Interval x | |
Interval y | |
} | ranges |
Base class for plots showing a dependence of given quantity on a spatial coordinate.
Currently only works with scalar quantities.
|
inlineexplicit |
|
overridevirtual |
|
inlineoverridevirtual |
|
overridevirtual |
|
overridevirtual |
|
protected |
|
protected |
|
protected |