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

Helper object used for drawing multiple plots into the same device. More...

#include <Plot.h>

Inheritance diagram for MultiPlot:
IPlot Polymorphic

Public Member Functions

 MultiPlot (Array< AutoPtr< IPlot >> &&plots)
 
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

Helper object used for drawing multiple plots into the same device.

Definition at line 366 of file Plot.h.

Constructor & Destructor Documentation

◆ MultiPlot()

MultiPlot::MultiPlot ( Array< AutoPtr< IPlot >> &&  plots)
inlineexplicit

Definition at line 371 of file Plot.h.

Member Function Documentation

◆ clear()

void MultiPlot::clear ( )
overridevirtual

Clears all cached data, prepares for next run.

Implements IPlot.

Definition at line 405 of file Plot.cpp.

◆ getCaption()

virtual std::string MultiPlot::getCaption ( ) const
inlineoverridevirtual

Returns the caption of the plot.

??

Implements IPlot.

Definition at line 374 of file Plot.h.

◆ onTimeStep()

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

Updates the plot with new data.

Called every time step.

Implements IPlot.

Definition at line 396 of file Plot.cpp.

◆ plot()

void MultiPlot::plot ( IDrawingContext dc) const
overridevirtual

Draws the plot into the drawing context.

Implements IPlot.

Definition at line 412 of file Plot.cpp.


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