wxFreeChart
xyzrenderer.h
1 // Name: xyzrenderer.h
3 // Purpose: xyz renderer declaration
4 // Author: Moskvichev Andrey V.
5 // Created: 2009/04/04
6 // Copyright: (c) 2008-2010 Moskvichev Andrey V.
7 // Licence: wxWidgets licence
9 
10 #ifndef XYZRENDERER_H_
11 #define XYZRENDERER_H_
12 
13 #include <wx/chartrenderer.h>
14 #include <wx/axis/axis.h>
15 #include <wx/xyz/xyzdataset.h>
16 
20 class WXDLLIMPEXP_FREECHART XYZRenderer : public Renderer
21 {
22  DECLARE_CLASS(XYZRenderer)
23 public:
24  XYZRenderer(int minRad, int maxRad);
25  virtual ~XYZRenderer();
26 
27  void Draw(wxDC &dc, wxRect rc, Axis *horizAxis, Axis *vertAxis, XYZDataset *dataset);
28 
29  virtual void SetSerieColor(size_t serie, wxColour *color);
30 
31  virtual wxColour GetSerieColor(size_t serie);
32 
38  void SetSeriePen(size_t serie, wxPen *pen);
39 
45  wxPen *GetSeriePen(size_t serie);
46 
52  void SetSerieBrush(size_t serie, wxBrush *brush);
53 
59  wxBrush *GetSerieBrush(size_t serie);
60 
61 
62 private:
63  int m_minRad;
64  int m_maxRad;
65 
66  PenMap m_seriePens;
67  int m_defaultPenWidth;
68  wxPenStyle m_defaultPenStyle;
69 
70  BrushMap m_serieBrushs;
71  wxBrushStyle m_defaultBrushStyle;
72 };
73 
74 #endif /* XYZRENDERER_H_ */
xyz renderer class.
Definition: xyzrenderer.h:20
Base class for all renderers.
Definition: chartrenderer.h:21
Base class for all axes.
Definition: axis.h:39
Dataset with (x,y,z) coordinate data.
Definition: xyzdataset.h:20