#include <barrenderer.h>

Public Member Functions | |
| BarType (double base) | |
| virtual void | Draw (BarRenderer *barRenderer, wxDC &dc, wxRect rc, Axis *horizAxis, Axis *vertAxis, bool vertical, size_t item, CategoryDataset *dataset) |
| virtual double | GetMinValue (CategoryDataset *dataset, bool verticalAxis) |
| virtual double | GetMaxValue (CategoryDataset *dataset, bool verticalAxis) |
Protected Member Functions | |
| virtual void | GetBarGeometry (CategoryDataset *dataset, size_t item, size_t serie, int &width, wxCoord &shift, double &base, double &value)=0 |
Protected Attributes | |
| double | m_base |
Bar types base class. This class performs bars drawing.
|
virtual |
Performs bar drawing.
| barRenderer | bar renderer |
| dc | device context |
| rc | rectangle where to draw |
| horizAxis | horizontal axis |
| vertAxis | vertical axis |
| vertical | true to draw vertical bars |
| item | dataset item index |
| dataset | dataset to draw bars |


|
protectedpure virtual |
Called to calculate bar geometry params. Must be implemented by derivate classes.
| dataset | dataset |
| item | item index |
| serie | serie index |
| width | output for bar width |
| shift | output for bar shift |
| base | output for bar base |
| value | output for bar value |
Implemented in LayeredBarType, StackedBarType, and NormalBarType.
