Version: 0.6.0
VectorDataset Class Reference

#include <vectordataset.h>

Inheritance diagram for VectorDataset:
Collaboration diagram for VectorDataset:

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
XYRendererGetRenderer ()
 
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)
 
RendererGetBaseRenderer ()
 
void BeginUpdate ()
 
void EndUpdate ()
 
virtual DateTimeDatasetAsDateTimeDataset ()
 
void AddMarker (Marker *marker)
 
size_t GetMarkersCount ()
 
MarkerGetMarker (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
Rendererm_renderer
 
- Protected Attributes inherited from Observable< DatasetObserver >
std::vector< DatasetObserver * > observers
 

Detailed Description

Vector implementation of XYDataset. Where is y values specified, and X values is an index (0....Count) Allows y data addition and removal.

Constructor & Destructor Documentation

VectorDataset::VectorDataset ( )

Construct new VectorDataset instance.

Parameters
_namename of dataset
autoUpdateif true any changes in data will fire dataset updated event

Member Function Documentation

void VectorDataset::Add ( double  y)

Adds y values to dataset.

Parameters
yy value

Here is the call graph for this function:

void VectorDataset::Clear ( )

Removes all values from dataset.

Here is the call graph for this function:

size_t VectorDataset::GetCount ( size_t  serie)
virtual

Returns value count in serie specified by index.

Parameters
serieindex
Returns
value count

Implements Dataset.

size_t VectorDataset::GetSerieCount ( )
virtual

Returns serie count in this dataset.

Returns
serie count

Implements Dataset.

wxString VectorDataset::GetSerieName ( size_t  serie)
virtual

Returns serie name.

Parameters
serieindex
Returns
serie name

Implements Dataset.

double VectorDataset::GetX ( size_t  index,
size_t  serie 
)
virtual

Returns x value at index.

Parameters
indexindex
Returns
x value

Implements XYDataset.

double VectorDataset::GetY ( size_t  index,
size_t  serie 
)
virtual

Returns y value at index.

Parameters
indexindex
Returns
y value

Implements XYDataset.

void VectorDataset::RemoveAt ( size_t  index)

Removes value at specified index.

Parameters
indexof value

Here is the call graph for this function:

void VectorDataset::Replace ( size_t  index,
double  y 
)

Replaces y value at specified index.

Parameters
indexindex of value
ynew y value

Here is the call graph for this function:


The documentation for this class was generated from the following files:
  • /home/bishop/work/projects/nextgismanager/include/freechart/wx/xy/vectordataset.h
  • /home/bishop/work/projects/nextgismanager/src/freechart/xy/vectordataset.cpp