10 #ifndef XYLINERENDERER_H_ 11 #define XYLINERENDERER_H_ 13 #include <wx/xy/xyrenderer.h> 20 XYLineRendererBase(
bool drawSymbols,
bool drawLines,
int defaultWidth = 2, wxPenStyle defaultStyle = wxPENSTYLE_SOLID);
42 void SetSeriePen(
size_t serie, wxPen *pen);
49 wxPen *GetSeriePen(
size_t serie);
59 virtual void DrawLines(wxDC &dc, wxRect rc,
Axis *horizAxis,
Axis *vertAxis,
XYDataset *dataset) = 0;
60 virtual void DrawSymbols(wxDC &dc, wxRect rc,
Axis *horizAxis,
Axis *vertAxis,
XYDataset *dataset);
68 int m_defaultPenWidth;
69 wxPenStyle m_defaultPenStyle;
86 XYLineRenderer(
bool drawSymbols =
false,
bool drawLines =
true,
int defaultWidth = 2, wxPenStyle defaultStyle = wxPENSTYLE_SOLID);
91 virtual void DrawLines(wxDC &dc, wxRect rc,
Axis *horizAxis,
Axis *vertAxis,
XYDataset *dataset);
108 virtual void DrawLines(wxDC &dc, wxRect rc,
Axis *horizAxis,
Axis *vertAxis,
XYDataset *dataset);
111 size_t GetFirstVisibleIndex(
Axis *horizAxis,
Axis *vertAxis,
XYDataset *dataset,
size_t serie);
virtual void Draw(wxDC &dc, wxRect rc, Axis *horizAxis, Axis *vertAxis, XYDataset *dataset)=0
Draws dataset.
virtual void SetSerieColour(size_t serie, wxColour *color)
Sets color for serie.
Base class for all XYDataset renderers.
Renderer for drawing lines from xy datasets.
virtual wxColour GetSerieColour(size_t serie)
Returns serie color.
Renderer for xy datasets, where next x coordinate is always greater than previous.
Base class for XY datasets.
virtual void DrawLegendSymbol(wxDC &dc, wxRect rcSymbol, size_t serie)
Draws legend symbol.