#include <categorysimpledataset.h>
Public Member Functions | |
CategorySimpleDataset (wxString *names, size_t count) | |
void | AddSerie (const wxString &name, double *values, size_t count) |
void | AddSerie (CategorySerie *serie) |
virtual double | GetValue (size_t index, size_t serie) |
virtual size_t | GetSerieCount () |
virtual wxString | GetName (size_t index) |
virtual size_t | GetCount () |
virtual wxString | GetSerieName (size_t serie) |
Public Member Functions inherited from CategoryDataset | |
virtual bool | HasValue (size_t index, size_t serie) |
virtual double | GetMinValue (bool verticalAxis) |
virtual double | GetMaxValue (bool verticalAxis) |
virtual double | GetX (size_t index, size_t serie) |
virtual double | GetY (size_t index, size_t serie) |
virtual size_t | GetCount (size_t serie) |
BarRenderer * | GetRenderer () |
Public Member Functions inherited from XYDataset | |
XYRenderer * | GetRenderer () |
virtual double | GetMaxY () |
virtual double | GetMinY () |
virtual double | GetMaxX () |
virtual double | GetMinX () |
Public Member Functions inherited from Dataset | |
void | SetRenderer (Renderer *renderer) |
Renderer * | GetBaseRenderer () |
void | BeginUpdate () |
void | EndUpdate () |
virtual DateTimeDataset * | AsDateTimeDataset () |
void | AddMarker (Marker *marker) |
size_t | GetMarkersCount () |
Marker * | GetMarker (size_t index) |
virtual void | NeedRedraw (DrawObject *obj) |
Public Member Functions inherited from RefObject | |
void | AddRef () |
void | Unref () |
int | RefCount () |
Public Member Functions inherited from Observable< DatasetObserver > | |
void | AddObserver (DatasetObserver *_observer) |
void | RemoveObserver (DatasetObserver *_observer) |
Additional Inherited Members | |
Public Types inherited from Observable< DatasetObserver > | |
typedef DatasetObserver | Observer |
Public Attributes inherited from Observable< DatasetObserver > | |
std::vector< DatasetObserver * > ::iterator | OIt |
Protected Member Functions inherited from CategoryDataset | |
virtual bool | AcceptRenderer (Renderer *r) |
Protected Member Functions inherited from Dataset | |
void | DatasetChanged () |
Protected Attributes inherited from Dataset | |
Renderer * | m_renderer |
Protected Attributes inherited from Observable< DatasetObserver > | |
std::vector< DatasetObserver * > | observers |
Simple category dataset implementation. It's general purpose implementation, and useful for many applications.
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.