Version: 0.6.0
XYDynamicSerie Class Reference

#include <xydynamicdataset.h>

Inheritance diagram for XYDynamicSerie:
Collaboration diagram for XYDynamicSerie:

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 ( 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

Here is the call graph for this function:

void XYDynamicSerie::AddXY ( const wxRealPointArray &  data)

Adds XY points to end of data.

Parameters
datapoints array

Here is the call graph for this function:

void XYDynamicSerie::Clear ( )

Remove all points from serie.

Here is the call graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

void XYDynamicSerie::SetName ( const wxString &  name)

Sets serie name.

Parameters
namenew serie name

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