|
SPH
|
Interface for constructing generic plots from quantities stored in storage. More...
#include <Plot.h>
Public Member Functions | |
| Interval | rangeX () const |
| Returns the plotted range in x-coordinate. More... | |
| Interval | rangeY () const |
| Returns the plotted range in y-coordinate. More... | |
| virtual std::string | getCaption () const =0 |
| Returns the caption of the plot. More... | |
| virtual void | onTimeStep (const Storage &storage, const Statistics &stats)=0 |
| Updates the plot with new data. More... | |
| virtual void | clear ()=0 |
| Clears all cached data, prepares for next run. More... | |
| virtual void | plot (IDrawingContext &dc) const =0 |
| Draws the plot into the drawing context. More... | |
Public Member Functions inherited from Polymorphic | |
| virtual | ~Polymorphic () |
Protected Attributes | |
| struct { | |
| Interval x | |
| Interval y | |
| } | ranges |
Interface for constructing generic plots from quantities stored in storage.
The plot can currently be only 2D, typically showing a quantity dependence on time or on some spatial coordinate.
|
pure virtual |
Clears all cached data, prepares for next run.
Implemented in SelectedParticlePlot, MultiPlot, DataPlot, SfdPlot, AngularHistogramPlot, HistogramPlot, TemporalPlot, SpatialPlot< TDerived >, SpatialPlot< RadialDistributionPlot >, and SpatialPlot< AxialDistributionPlot >.
|
pure virtual |
Returns the caption of the plot.
Implemented in SelectedParticlePlot, MultiPlot, DataPlot, SfdPlot, AngularHistogramPlot, HistogramPlot, TemporalPlot, SpatialPlot< TDerived >, SpatialPlot< RadialDistributionPlot >, and SpatialPlot< AxialDistributionPlot >.
|
pure virtual |
Updates the plot with new data.
Called every time step.
Implemented in SelectedParticlePlot, MultiPlot, DataPlot, SfdPlot, AngularHistogramPlot, HistogramPlot, and TemporalPlot.
|
pure virtual |
Draws the plot into the drawing context.
Implemented in SelectedParticlePlot, MultiPlot, DataPlot, SfdPlot, AngularHistogramPlot, HistogramPlot, TemporalPlot, SpatialPlot< TDerived >, SpatialPlot< RadialDistributionPlot >, and SpatialPlot< AxialDistributionPlot >.
|
inline |
|
inline |
| struct { ... } IPlot::ranges |