SPH
|
Temporal plot of currently selected particle. More...
#include <Plots.h>
Public Member Functions | |
SelectedParticlePlot (const Float initialPeriod) | |
~SelectedParticlePlot () | |
void | selectParticle (const Optional< Size > idx) |
void | setColorizer (const SharedPtr< IColorizer > &newColorizer) |
virtual std::string | getCaption () const override |
Returns the caption of the plot. More... | |
virtual void | onTimeStep (const Storage &storage, const Statistics &stats) override |
Updates the plot with new data. More... | |
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 | ~Polymorphic () |
Additional Inherited Members | |
![]() | |
struct { | |
Interval x | |
Interval y | |
} | ranges |
Temporal plot of currently selected particle.
Uses current colorizer as a source quantity. If either colorizer or selected particle changes, plot is cleared. It also holds a cache of previously selected particles, so that if a previously plotted particle is re-selected, the cached data are redrawn.
|
explicit |
|
default |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
void SelectedParticlePlot::setColorizer | ( | const SharedPtr< IColorizer > & | newColorizer | ) |