wxFreeChart
Public Member Functions | Friends | List of all members
XYDynamicSerie Class Reference

XY dynamic serie. More...

#include <xydynamicdataset.h>

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

Public Member Functions

 XYDynamicSerie (const wxRealPointArray &data)
 
double GetX (size_t index)
 Returns x coordinate at specified index. More...
 
double GetY (size_t index)
 Returns y coordinate at specified index. More...
 
wxRealPoint GetXY (size_t index)
 Returns point at specified index. More...
 
size_t GetCount ()
 Returns points count. More...
 
const wxString & GetName ()
 Returns serie name. More...
 
void SetName (const wxString &name)
 Sets serie name. More...
 
void AddXY (double x, double y)
 Adds XY point to end of data. More...
 
void AddXY (const wxRealPoint &xy)
 Adds XY point to end of data. More...
 
void AddXY (const wxRealPointArray &data)
 Adds XY points to end of data. More...
 
void Insert (size_t index, double x, double y)
 Insert XY point at specified position. More...
 
void Insert (size_t index, const wxRealPoint &xy)
 Insert XY point at specified position. More...
 
void Insert (size_t index, const wxRealPointArray &data)
 Insert XY points at specified position. More...
 
void Remove (size_t index, size_t count=1)
 Remove number of points from specified index. More...
 
void Clear ()
 Remove all points from serie.
 

Friends

class XYDynamicDataset
 

Detailed Description

XY dynamic serie.

Allows dynamic data add/insert/remove.

Definition at line 31 of file xydynamicdataset.h.

Member Function Documentation

void XYDynamicSerie::AddXY ( double  x,
double  y 
)

Adds XY point to end of data.

Parameters
xx coordinate
yy coordinate
void XYDynamicSerie::AddXY ( const wxRealPoint &  xy)

Adds XY point to end of data.

Parameters
xypoint to be inserted
void XYDynamicSerie::AddXY ( const wxRealPointArray &  data)

Adds XY points to end of data.

Parameters
datapoints array
size_t XYDynamicSerie::GetCount ( )

Returns points count.

Returns
points count
const wxString& XYDynamicSerie::GetName ( )

Returns serie name.

Returns
serie name
double XYDynamicSerie::GetX ( size_t  index)

Returns x coordinate at specified index.

Parameters
indexindex of coordinate
Returns
x coordinate at specified index
wxRealPoint XYDynamicSerie::GetXY ( size_t  index)

Returns point at specified index.

Parameters
indexindex of point
Returns
point at specified index
double XYDynamicSerie::GetY ( size_t  index)

Returns y coordinate at specified index.

Parameters
indexindex of coordinate
Returns
y coordinate at specified index
void XYDynamicSerie::Insert ( size_t  index,
double  x,
double  y 
)

Insert XY point at specified position.

Parameters
indexindex before which to insert point
xx coordinate
yy coordinate
void XYDynamicSerie::Insert ( size_t  index,
const wxRealPoint &  xy 
)

Insert XY point at specified position.

Parameters
indexindex before which to insert point
xypoint to be inserted
void XYDynamicSerie::Insert ( size_t  index,
const wxRealPointArray &  data 
)

Insert XY points at specified position.

Parameters
indexindex before which to insert
datapoints array to be inserted
void XYDynamicSerie::Remove ( size_t  index,
size_t  count = 1 
)

Remove number of points from specified index.

Parameters
indexindex from which to remove
countnumber of points to remove
void XYDynamicSerie::SetName ( const wxString &  name)

Sets serie name.

Parameters
namenew serie name

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