#include <dataset.h>
Public Member Functions | |
void | SetRenderer (Renderer *renderer) |
Renderer * | GetBaseRenderer () |
void | BeginUpdate () |
void | EndUpdate () |
virtual size_t | GetSerieCount ()=0 |
virtual size_t | GetCount (size_t serie)=0 |
virtual wxString | GetSerieName (size_t serie)=0 |
virtual double | GetMinValue (bool vertical)=0 |
virtual double | GetMaxValue (bool vertical)=0 |
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) |
Protected Member Functions | |
virtual bool | AcceptRenderer (Renderer *r)=0 |
void | DatasetChanged () |
Protected Attributes | |
Renderer * | m_renderer |
Protected Attributes inherited from Observable< DatasetObserver > | |
std::vector< DatasetObserver * > | observers |
Additional Inherited Members | |
Public Types inherited from Observable< DatasetObserver > | |
typedef DatasetObserver | Observer |
Public Attributes inherited from Observable< DatasetObserver > | |
std::vector< DatasetObserver * > ::iterator | OIt |
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 | ) |
Adds marker to plot. Plot takes ownership of marker.
marker | marker to be added |
void Dataset::BeginUpdate | ( | ) |
Called to begin dataset update. Each call must have corresponding EndUpdate call. Increment dataset update counter.
|
protected |
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, CategorySimpleDataset, XYSimpleDataset, OHLCDataset, GanttSimpleDataset, Polynom, SineFunction, VectorDataset, MovingAverage, JulianTimeSeriesDataset, and TimeSeriesDataset.
|
pure virtual |
Returns serie name.
serie | index |
Implemented in XYDynamicDataset, CategorySimpleDataset, XYSimpleDataset, OHLCDataset, GanttSimpleDataset, Polynom, SineFunction, VectorDataset, MovingAverage, JulianTimeSeriesDataset, and TimeSeriesDataset.
|
virtual |
Called when object is need to be redrawed.
obj | object that need to be redrawed |
Implements DrawObserver.
void Dataset::SetRenderer | ( | Renderer * | renderer | ) |
Sets renderer for this dataset.
renderer | new renderer |