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

Plots given array of points. More...

#include <Plot.h>

Inheritance diagram for DataPlot:
IPlot Polymorphic

Public Member Functions

 DataPlot (const Array< Post::HistPoint > &points, const Flags< AxisScaleEnum > scale, const std::string &name)
 
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

Plots given array of points.

Definition at line 348 of file Plot.h.

Constructor & Destructor Documentation

◆ DataPlot()

DataPlot::DataPlot ( const Array< Post::HistPoint > &  points,
const Flags< AxisScaleEnum scale,
const std::string &  name 
)

Definition at line 348 of file Plot.cpp.

Member Function Documentation

◆ clear()

void DataPlot::clear ( )
overridevirtual

Clears all cached data, prepares for next run.

Implements IPlot.

Definition at line 375 of file Plot.cpp.

◆ getCaption()

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

Returns the caption of the plot.

Implements IPlot.

Definition at line 367 of file Plot.cpp.

◆ onTimeStep()

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

Updates the plot with new data.

Called every time step.

Implements IPlot.

Definition at line 371 of file Plot.cpp.

◆ plot()

void DataPlot::plot ( IDrawingContext dc) const
overridevirtual

Draws the plot into the drawing context.

Implements IPlot.

Definition at line 379 of file Plot.cpp.


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