wxFreeChart
|
Vector implementation of XYDataset. More...
#include <vectordataset.h>
Public Member Functions | |
VectorDataset () | |
Construct new VectorDataset instance. More... | |
virtual size_t | GetSerieCount () |
Returns serie count in this dataset. More... | |
virtual size_t | GetCount (size_t serie) |
Returns value count in serie specified by index. More... | |
virtual wxString | GetSerieName (size_t serie) |
Returns serie name. 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... | |
void | Add (double y) |
Adds y values to dataset. More... | |
void | Replace (size_t index, double y) |
Replaces y value at specified index. More... | |
void | RemoveAt (size_t index) |
Removes value at specified index. More... | |
void | Clear () |
Removes all values from dataset. | |
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... | |
virtual double | GetMinValue (bool verticalAxis) |
Returns minimal value. More... | |
virtual double | GetMaxValue (bool verticalAxis) |
Returns maximal 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 XYDataset | |
virtual bool | AcceptRenderer (Renderer *r) |
Checks whether renderer is acceptable by this dataset. More... | |
Protected Attributes inherited from Dataset | |
Renderer * | m_renderer |
Vector implementation of XYDataset.
Where is y values specified, and X values is an index (0....Count) Allows y data addition and removal.
Definition at line 23 of file vectordataset.h.
VectorDataset::VectorDataset | ( | ) |
Construct new VectorDataset instance.
_name | name of dataset |
autoUpdate | if true any changes in data will fire dataset updated event |
void VectorDataset::Add | ( | double | y | ) |
Adds y values to dataset.
y | y value |
|
virtual |
Returns value count in serie specified by index.
serie | index |
Implements Dataset.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
void VectorDataset::RemoveAt | ( | size_t | index | ) |
Removes value at specified index.
index | of value |
void VectorDataset::Replace | ( | size_t | index, |
double | y | ||
) |
Replaces y value at specified index.
index | index of value |
y | new y value |