wxFreeChart
|
Bar types base class. More...
#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) |
Performs bar drawing. More... | |
virtual double | GetMinValue (CategoryDataset *dataset) |
virtual double | GetMaxValue (CategoryDataset *dataset) |
Protected Member Functions | |
virtual void | GetBarGeometry (CategoryDataset *dataset, size_t item, size_t serie, int &width, wxCoord &shift, double &base, double &value)=0 |
Called to calculate bar geometry params. More... | |
Protected Attributes | |
double | m_base |
Bar types base class.
This class performs bars drawing.
Definition at line 23 of file barrenderer.h.
|
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.