XYDynamicSerie Class Reference

#include <xydynamicdataset.h>

Collaboration diagram for XYDynamicSerie:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 XYDynamicSerie (const wxRealPointArray &data)
double GetX (size_t index)
double GetY (size_t index)
wxRealPoint GetXY (size_t index)
size_t GetCount ()
const wxString & GetName ()
void SetName (const wxString &name)
void AddXY (double x, double y)
void AddXY (const wxRealPoint &xy)
void AddXY (const wxRealPointArray &data)
void Insert (size_t index, double x, double y)
void Insert (size_t index, const wxRealPoint &xy)
void Insert (size_t index, const wxRealPointArray &data)
void Remove (size_t index, size_t count=1)
void Clear ()

Friends

class XYDynamicDataset


Detailed Description

XY dynamic serie. Allows dynamic data add/insert/remove.

Member Function Documentation

void XYDynamicSerie::AddXY ( const wxRealPointArray &  data  ) 

Adds XY points to end of data.

Parameters:
data points array

void XYDynamicSerie::AddXY ( const wxRealPoint &  xy  ) 

Adds XY point to end of data.

Parameters:
xy point to be inserted

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

Adds XY point to end of data.

Parameters:
x x coordinate
y y coordinate

void XYDynamicSerie::Clear (  ) 

Remove all points from serie.

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:
index index of coordinate
Returns:
x coordinate at specified index

wxRealPoint XYDynamicSerie::GetXY ( size_t  index  ) 

Returns point at specified index.

Parameters:
index index of point
Returns:
point at specified index

double XYDynamicSerie::GetY ( size_t  index  ) 

Returns y coordinate at specified index.

Parameters:
index index of coordinate
Returns:
y coordinate at specified index

void XYDynamicSerie::Insert ( size_t  index,
const wxRealPointArray &  data 
)

Insert XY points at specified position.

Parameters:
index index before which to insert
data points array to be inserted

void XYDynamicSerie::Insert ( size_t  index,
const wxRealPoint &  xy 
)

Insert XY point at specified position.

Parameters:
index index before which to insert point
xy point to be inserted

void XYDynamicSerie::Insert ( size_t  index,
double  x,
double  y 
)

Insert XY point at specified position.

Parameters:
index index before which to insert point
x x coordinate
y y coordinate

void XYDynamicSerie::Remove ( size_t  index,
size_t  count = 1 
)

Remove number of points from specified index.

Parameters:
index index from which to remove
count number of points to remove

void XYDynamicSerie::SetName ( const wxString &  name  ) 

Sets serie name.

Parameters:
name new serie name


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

Generated on Mon Feb 15 21:32:30 2010 for wxFreeChart by  doxygen 1.5.8