#include <plot.h>
Public Member Functions | |
virtual void | Draw (wxDC &dc, wxRect rc) |
virtual void | DrawNoDataMessage (wxDC &dc, wxRect rc) |
void | SetChartPanel (wxChartPanel *chartPanel) |
wxChartPanel * | GetChartPanel () |
void | SetBackground (AreaDraw *background) |
void | SetTextNoData (const wxString &textNoData) |
Public Member Functions inherited from Observable< PlotObserver > | |
void | AddObserver (PlotObserver *_observer) |
void | RemoveObserver (PlotObserver *_observer) |
Protected Member Functions | |
virtual bool | HasData ()=0 |
virtual void | DrawData (wxDC &dc, wxRect rc)=0 |
virtual void | ChartPanelChanged (wxChartPanel *oldPanel, wxChartPanel *newPanel) |
FIRE_WITH_THIS (PlotNeedRedraw) | |
Additional Inherited Members | |
Public Types inherited from Observable< PlotObserver > | |
typedef PlotObserver | Observer |
Public Attributes inherited from Observable< PlotObserver > | |
std::vector< PlotObserver * > ::iterator | OIt |
Protected Attributes inherited from Observable< PlotObserver > | |
std::vector< PlotObserver * > | observers |
Base class for all plots.
|
protectedvirtual |
Called when chart panel is changed.
oldPanel | old chart panel |
newPanel | new chart panel |
|
virtual |
Draws plot
dc | device context |
rc | rectangle where to draw |
|
protectedpure virtual |
|
virtual |
Draws "no data" message. Can be overriden by derivative classes.
dc | device context |
rc | rectangle where to draw |
wxChartPanel * Plot::GetChartPanel | ( | ) |
Returns chart panel (GUI component, at top level) if it
|
protectedpure virtual |
|
inline |
Sets plot background.
background | new background for plot |
|
inline |
Sets text message drawn, when plot has no data to draw
textNoData | text message drawn, when plot has no data to draw |