wxFreeChart
|
Base class for all datasets (XYDatasets, XYZDatasets, CategoryDatasets, OHLCDatasets, etc). More...
#include <dataset.h>
Public Member Functions | |
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 size_t | GetSerieCount ()=0 |
Returns serie count in this dataset. More... | |
virtual size_t | GetCount (size_t serie)=0 |
Returns value count in serie specified by index. More... | |
virtual wxString | GetSerieName (size_t serie)=0 |
Returns serie name. More... | |
virtual double | GetMinValue (bool vertical)=0 |
Returns minimal value. More... | |
virtual double | GetMaxValue (bool vertical)=0 |
Returns maximal value. 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 () |
Protected Member Functions | |
virtual bool | AcceptRenderer (Renderer *r)=0 |
Checks whether renderer is acceptable by this dataset. More... | |
Protected Attributes | |
Renderer * | m_renderer |
Base class for all datasets (XYDatasets, XYZDatasets, CategoryDatasets, OHLCDatasets, etc).
|
protectedpure virtual |
Checks whether renderer is acceptable by this dataset.
TODO: this method must be removed, because acceptable renderer type depends on plot type.
Implemented in OHLCDataset, XYDataset, and CategoryDataset.
void Dataset::AddMarker | ( | Marker * | marker | ) |
void Dataset::BeginUpdate | ( | ) |
Called to begin dataset update.
Each call must have corresponding EndUpdate call. Increment dataset update counter.
void Dataset::DatasetChanged | ( | ) |
Called to indicate, that dataset is changed.
For call by derivate classes.
void Dataset::EndUpdate | ( | ) |
Called to end dataset update.
Decrement dataset update counter, and fires DatasetChanged event when counter equal zero.
|
pure virtual |
Returns value count in serie specified by index.
serie | index |
Implemented in XYDynamicDataset, XYSimpleDataset, GanttDataset, OHLCDataset, CategoryDataset, Polynom, VectorDataset, MovingAverage, SineFunction, JulianTimeSeriesDataset, and TimeSeriesDataset.
Marker* Dataset::GetMarker | ( | size_t | index | ) |
Returns marker at specified index.
index | index of marker |
size_t Dataset::GetMarkersCount | ( | ) |
Returns marker count.
|
pure virtual |
Returns maximal value.
vertical | for datasets with XY coordinates, specifies direction |
Implemented in XYDataset, OHLCDataset, and CategoryDataset.
|
pure virtual |
Returns minimal value.
vertical | for datasets with XY coordinates, specifies direction |
Implemented in XYDataset, OHLCDataset, and CategoryDataset.
|
pure virtual |
Returns serie count in this dataset.
Implemented in XYDynamicDataset, XYSimpleDataset, CategorySimpleDataset, OHLCDataset, GanttSimpleDataset, Polynom, SineFunction, VectorDataset, MovingAverage, JulianTimeSeriesDataset, and TimeSeriesDataset.
|
pure virtual |
Returns serie name.
serie | index |
Implemented in XYDynamicDataset, CategorySimpleDataset, OHLCDataset, GanttSimpleDataset, Polynom, SineFunction, VectorDataset, MovingAverage, JulianTimeSeriesDataset, and TimeSeriesDataset.
void Dataset::SetRenderer | ( | Renderer * | renderer | ) |
Sets renderer for this dataset.
renderer | new renderer |