Version: 0.6.0
ohlcrenderer.h
1 // Name: ohlcrenderer.h
3 // Purpose: OHLC renderers base class declaration.
4 // Author: Moskvichev Andrey V.
5 // Created: 2008/11/07
6 // Copyright: (c) 2008-2010 Moskvichev Andrey V.
7 // Licence: wxWidgets licence
9 
10 #ifndef OHLCRENDERER_H_
11 #define OHLCRENDERER_H_
12 
13 #include <wx/chartrenderer.h>
14 
19 class WXDLLIMPEXP_FREECHART OHLCColourer
20 {
21 public:
22  virtual wxColor GetColour(int step) = 0;
23 };
24 
28 class WXDLLIMPEXP_FREECHART OHLCRenderer : public Renderer
29 {
30 public:
31  OHLCRenderer();
32  virtual ~OHLCRenderer();
33 
43  virtual void DrawItem(wxDC &dc, wxCoord x, wxCoord open, wxCoord high, wxCoord low, wxCoord close) = 0;
44 
45  void SetColourer(OHLCColourer *colourer);
46  OHLCColourer *GetColourer();
47 
48 protected:
49  OHLCColourer *m_colourer;
50 };
51 
52 #endif /*OHLCRENDERER_H_*/
Definition: chartrenderer.h:21
Definition: ohlcrenderer.h:28
Definition: ohlcrenderer.h:19