wxFreeChart
|
Simple category dataset implementation. More...
#include <categorysimpledataset.h>
Public Member Functions | |
CategorySimpleDataset (wxString *names, size_t count) | |
Constructs new category simple dataset. More... | |
void | AddSerie (const wxString &name, double *values, size_t count) |
Adds serie. More... | |
void | AddSerie (CategorySerie *serie) |
Adds serie. More... | |
virtual double | GetValue (size_t index, size_t serie) |
Returns value associated with category at index. More... | |
virtual size_t | GetSerieCount () |
Returns serie count in this dataset. More... | |
virtual wxString | GetName (size_t index) |
Returns category name at index. More... | |
virtual size_t | GetCount () |
Returns category count. More... | |
virtual wxString | GetSerieName (size_t serie) |
Returns serie name. More... | |
Public Member Functions inherited from CategoryDataset | |
virtual bool | HasValue (size_t index, size_t serie) |
virtual double | GetMinValue (bool verticalAxis) |
Returns minimal value. More... | |
virtual double | GetMaxValue (bool verticalAxis) |
Returns maximal value. More... | |
virtual double | GetX (size_t index, size_t serie) |
Returns x value at index. More... | |
virtual double | GetY (size_t index, size_t serie) |
Returns y value at index. More... | |
virtual size_t | GetCount (size_t serie) |
Returns value count in serie specified by index. More... | |
BarRenderer * | GetRenderer () |
Public Member Functions inherited from XYDataset | |
XYRenderer * | GetRenderer () |
virtual double | GetMaxY () |
Returns maximal y value. More... | |
virtual double | GetMinY () |
Returns minimal y value. More... | |
virtual double | GetMaxX () |
Returns maximal x value. More... | |
virtual double | GetMinX () |
Returns minimal x value. More... | |
Public Member Functions inherited from Dataset | |
void | SetRenderer (Renderer *renderer) |
Sets renderer for this dataset. More... | |
Renderer * | GetBaseRenderer () |
void | BeginUpdate () |
Called to begin dataset update. More... | |
void | EndUpdate () |
Called to end dataset update. More... | |
virtual DateTimeDataset * | AsDateTimeDataset () |
void | AddMarker (Marker *marker) |
Adds marker to plot. More... | |
size_t | GetMarkersCount () |
Returns marker count. More... | |
Marker * | GetMarker (size_t index) |
Returns marker at specified index. More... | |
virtual void | NeedRedraw (DrawObject *obj) |
void | DatasetChanged () |
Called to indicate, that dataset is changed. More... | |
Public Member Functions inherited from RefObject | |
void | AddRef () |
void | Unref () |
int | RefCount () |
Additional Inherited Members | |
Protected Member Functions inherited from CategoryDataset | |
virtual bool | AcceptRenderer (Renderer *r) |
Checks whether renderer is acceptable by this dataset. More... | |
Protected Attributes inherited from Dataset | |
Renderer * | m_renderer |
Simple category dataset implementation.
It's general purpose implementation, and useful for many applications.
Definition at line 58 of file categorysimpledataset.h.
CategorySimpleDataset::CategorySimpleDataset | ( | wxString * | names, |
size_t | count | ||
) |
Constructs new category simple dataset.
names | category names array |
count | names count |
void CategorySimpleDataset::AddSerie | ( | const wxString & | name, |
double * | values, | ||
size_t | count | ||
) |
Adds serie.
name | serie name |
value | serie values array |
count | values array elements count |
void CategorySimpleDataset::AddSerie | ( | CategorySerie * | serie | ) |
Adds serie.
serie | serie to be added |
|
virtual |
|
virtual |
Returns category name at index.
index | index of category name |
Implements CategoryDataset.
|
virtual |
|
virtual |
|
virtual |
Returns value associated with category at index.
index | value associated with category |
Implements CategoryDataset.