#include <vectordataset.h>
Public Member Functions | |
VectorDataset () | |
virtual size_t | GetSerieCount () |
virtual size_t | GetCount (size_t serie) |
virtual wxString | GetSerieName (size_t serie) |
virtual double | GetX (size_t index, size_t serie) |
virtual double | GetY (size_t index, size_t serie) |
void | Add (double y) |
void | Replace (size_t index, double y) |
void | RemoveAt (size_t index) |
void | Clear () |
Public Member Functions inherited from XYDataset | |
XYRenderer * | GetRenderer () |
virtual double | GetMaxY () |
virtual double | GetMinY () |
virtual double | GetMaxX () |
virtual double | GetMinX () |
virtual double | GetMinValue (bool verticalAxis) |
virtual double | GetMaxValue (bool verticalAxis) |
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 XYDataset | |
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 |
Vector implementation of XYDataset. Where is y values specified, and X values is an index (0....Count) Allows y data addition and removal.
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 |
void VectorDataset::Clear | ( | ) |
Removes all values from dataset.
|
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 |