wxFreeChart
Public Member Functions | Public Attributes | List of all members
XYSimpleDataset Class Reference

Simple xy dataset. More...

#include <xysimpledataset.h>

Inheritance diagram for XYSimpleDataset:
Inheritance graph
[legend]
Collaboration diagram for XYSimpleDataset:
Collaboration graph
[legend]

Public Member Functions

 wxDEPRECATED_MSG ("Use AddSerie(new XYSerie(const wxVector&<wxRealPoint>)) instead.") void AddSerie(double *data
 Adds new xy serie. More...
 
void AddSerie (XYSerie *serie)
 Constructs new xy serie. More...
 
XYSerieGetSerie (size_t series)
 
virtual double GetX (size_t index, size_t serie) wxOVERRIDE
 Returns x value at index. More...
 
virtual double GetY (size_t index, size_t serie) wxOVERRIDE
 Returns y value at index. 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...
 
 wxDEPRECATED_MSG ("Use GetSeries()->GetName() instead.") virtual wxString GetSerieName(size_t serie)
 
 wxDEPRECATED_MSG ("Use GetSeries()->SetName() instead.") void SetSerieName(size_t serie
 
- Public Member Functions inherited from XYDataset
XYRendererGetRenderer ()
 
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...
 
RendererGetBaseRenderer ()
 
void BeginUpdate ()
 Called to begin dataset update. More...
 
void EndUpdate ()
 Called to end dataset update. More...
 
virtual wxString GetSerieName (size_t serie)=0
 Returns serie name. More...
 
virtual DateTimeDatasetAsDateTimeDataset ()
 
void AddMarker (Marker *marker)
 Adds marker to plot. More...
 
size_t GetMarkersCount ()
 Returns marker count. More...
 
MarkerGetMarker (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 ()
 

Public Attributes

size_t count
 
const wxString & name
 

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
Rendererm_renderer
 

Detailed Description

Simple xy dataset.

Definition at line 97 of file xysimpledataset.h.

Member Function Documentation

void XYSimpleDataset::AddSerie ( XYSerie serie)

Constructs new xy serie.

Parameters
serienew serie
virtual size_t XYSimpleDataset::GetCount ( size_t  serie)
virtual

Returns value count in serie specified by index.

Parameters
serieindex
Returns
value count

Implements Dataset.

virtual size_t XYSimpleDataset::GetSerieCount ( )
virtual

Returns serie count in this dataset.

Returns
serie count

Implements Dataset.

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

Returns x value at index.

Parameters
indexindex
Returns
x value

Implements XYDataset.

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

Returns y value at index.

Parameters
indexindex
Returns
y value

Implements XYDataset.

XYSimpleDataset::wxDEPRECATED_MSG ( "Use AddSerie(new XYSerie(const wxVector&<wxRealPoint>)) instead."  )

Adds new xy serie.

Parameters
datadouble [x, y] array
countpoint count in data array

The documentation for this class was generated from the following file: