11 #ifndef __XYDYNAMICDATASET_H 12 #define __XYDYNAMICDATASET_H 15 #include <wx/gdicmn.h> 16 #include <wx/dynarray.h> 18 #include "wx/wxfreechartdefs.h" 19 #include "wx/xy/xydataset.h" 23 WX_DECLARE_USER_EXPORTED_OBJARRAY(wxRealPoint
25 , WXDLLIMPEXP_FREECHART);
49 double GetX(
size_t index);
56 double GetY(
size_t index);
63 wxRealPoint GetXY(
size_t index);
75 const wxString &GetName();
81 void SetName(
const wxString &name);
88 void AddXY(
double x,
double y);
94 void AddXY(
const wxRealPoint& xy);
100 void AddXY(
const wxRealPointArray& data);
108 void Insert(
size_t index,
double x,
double y);
115 void Insert(
size_t index,
const wxRealPoint& xy);
122 void Insert(
size_t index,
const wxRealPointArray& data);
129 void Remove(
size_t index,
size_t count = 1);
139 wxRealPointArray m_data;
145 , XYDynamicSerieArray
146 , WXDLLIMPEXP_FREECHART);
165 void AddSerie(
const wxRealPointArray& data);
176 void SetSerieName(
size_t serie,
const wxString &name);
178 virtual double GetX(
size_t index,
size_t serie);
179 virtual double GetY(
size_t index,
size_t serie);
180 virtual size_t GetCount(
size_t serie);
183 XYDynamicSerieArray m_series;
virtual size_t GetSerieCount()=0
Returns serie count in this dataset.
virtual size_t GetCount(size_t serie)
Returns value count in serie specified by index.
virtual double GetX(size_t index, size_t serie)=0
Returns x value at index.
virtual double GetY(size_t index, size_t serie)=0
Returns y value at index.
virtual double GetY(size_t index, size_t serie)
Returns y value at index.
virtual size_t GetCount(size_t serie)=0
Returns value count in serie specified by index.
virtual double GetX(size_t index, size_t serie)
Returns x value at index.
Base class for XY datasets.
virtual wxString GetSerieName(size_t serie)=0
Returns serie name.