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

Holds data for one XY serie. More...

#include <xysimpledataset.h>

Public Member Functions

 wxDEPRECATED_MSG ("Use XYSerie(const wxVector&<wxRealPoint>) instead.") XYSerie(double *data
 Constructs new xy serie. More...
 
 XYSerie (const wxVector< wxRealPoint > &seriesData)
 Constructs a new XY series using data that is already stored in the prepared vector. More...
 
void Append (const wxRealPoint &values)
 
void Insert (size_t index, const wxRealPoint &values)
 
void Remove (size_t index)
 
double GetX (size_t index)
 Retrieves the X value of an existing data point within the series. More...
 
double GetY (size_t index)
 Retrieves the Y value of an existing data point within the series. More...
 
void UpdateX (size_t index, double x)
 Updates the X value of an existing data point within the series. More...
 
void UpdateY (size_t index, double y)
 Updates the Y value of an existing data point within the series. More...
 
void UpdatePoint (size_t index, const wxRealPoint &values)
 Updates the X and Y values of an existing data point within the series. More...
 
size_t GetCount ()
 
const wxString & GetName ()
 
void SetName (const wxString &name)
 

Public Attributes

size_t count
 

Detailed Description

Holds data for one XY serie.

Definition at line 20 of file xysimpledataset.h.

Constructor & Destructor Documentation

XYSerie::XYSerie ( const wxVector< wxRealPoint > &  seriesData)

Constructs a new XY series using data that is already stored in the prepared vector.

Parameters
seriesDataThe data that will be displayed by this series.

Member Function Documentation

double XYSerie::GetX ( size_t  index)

Retrieves the X value of an existing data point within the series.

Parameters
indexThe position of the data point within the series.
Returns
The X value for the selected data point.
double XYSerie::GetY ( size_t  index)

Retrieves the Y value of an existing data point within the series.

Parameters
indexThe position of the data point within the series.
Returns
The Y value for the selected data point.
void XYSerie::UpdatePoint ( size_t  index,
const wxRealPoint &  values 
)

Updates the X and Y values of an existing data point within the series.

Parameters
indexThe position of the data point within the series.
valuesThe new values for X and Y.
void XYSerie::UpdateX ( size_t  index,
double  x 
)

Updates the X value of an existing data point within the series.

Parameters
indexThe position of the data point within the series.
valuesThe new values for X.
void XYSerie::UpdateY ( size_t  index,
double  y 
)

Updates the Y value of an existing data point within the series.

Parameters
indexThe position of the data point within the series.
valuesThe new value for Y.
XYSerie::wxDEPRECATED_MSG ( "Use XYSerie(const wxVector&<wxRealPoint>) instead."  )

Constructs new xy serie.

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

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