SPH
Public Member Functions | List of all members
SfdPlot Class Reference

#include <Plot.h>

Inheritance diagram for SfdPlot:
IPlot Polymorphic

Public Member Functions

 SfdPlot (const Flags< Post::ComponentFlag > connectivity, const Float period)
 Plots SFD of components, given their connectivity. More...
 
 SfdPlot (const Float period)
 Plots SFD of individual particles, makes only sense when merging the particles on collisions. More...
 
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...
 
- Public Member Functions inherited from IPlot
Interval rangeX () const
 Returns the plotted range in x-coordinate. More...
 
Interval rangeY () const
 Returns the plotted range in y-coordinate. More...
 
- Public Member Functions inherited from Polymorphic
virtual ~Polymorphic ()
 

Additional Inherited Members

- Protected Attributes inherited from IPlot
struct {
   Interval   x
 
   Interval   y
 
ranges
 

Detailed Description

Definition at line 316 of file Plot.h.

Constructor & Destructor Documentation

◆ SfdPlot() [1/2]

SfdPlot::SfdPlot ( const Flags< Post::ComponentFlag connectivity,
const Float  period 
)

Plots SFD of components, given their connectivity.

Definition at line 277 of file Plot.cpp.

◆ SfdPlot() [2/2]

SfdPlot::SfdPlot ( const Float  period)

Plots SFD of individual particles, makes only sense when merging the particles on collisions.

Definition at line 284 of file Plot.cpp.

Member Function Documentation

◆ clear()

void SfdPlot::clear ( )
overridevirtual

Clears all cached data, prepares for next run.

Implements IPlot.

Definition at line 325 of file Plot.cpp.

◆ getCaption()

std::string SfdPlot::getCaption ( ) const
overridevirtual

Returns the caption of the plot.

Implements IPlot.

Definition at line 290 of file Plot.cpp.

◆ onTimeStep()

void SfdPlot::onTimeStep ( const Storage storage,
const Statistics stats 
)
overridevirtual

Updates the plot with new data.

Called every time step.

Implements IPlot.

Definition at line 294 of file Plot.cpp.

◆ plot()

void SfdPlot::plot ( IDrawingContext dc) const
overridevirtual

Draws the plot into the drawing context.

Implements IPlot.

Definition at line 331 of file Plot.cpp.


The documentation for this class was generated from the following files: