#include <multiplot.h>
Public Member Functions | |
MultiPlot (int rows, int cols, wxCoord horizGap, wxCoord vertGap) | |
void | AddPlot (Plot *subPlot) |
virtual void | PlotNeedRedraw (Plot *plot) |
Protected Member Functions | |
virtual bool | HasData () |
virtual void | DrawData (wxDC &dc, wxRect rc) |
MultiPlot::MultiPlot | ( | int | rows, | |
int | cols, | |||
wxCoord | horizGap, | |||
wxCoord | vertGap | |||
) |
Constructs new multiplot.
rows | number of rows for subplots | |
cols | number of columns for subplots | |
horizGap | distance between columns | |
vertGap | distance between rows |
void MultiPlot::AddPlot | ( | Plot * | subPlot | ) | [inline] |
Add plot to this multiplot.
subPlot | plot to be added |
References Observable< O >::AddObserver().
virtual void MultiPlot::DrawData | ( | wxDC & | dc, | |
wxRect | rc | |||
) | [protected, virtual] |
Perform data rendering. Must be overriden by derivative classes.
dc | device context | |
rc | rectangle where to draw |
Implements Plot.
virtual bool MultiPlot::HasData | ( | ) | [protected, virtual] |
Checks whether plot has data. Must be overriden by derivative classes.
Implements Plot.
virtual void MultiPlot::PlotNeedRedraw | ( | Plot * | _plot | ) | [virtual] |
Called when plot has been changed and need to be redrawn.
_plot | plot |
Implements PlotObserver.