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
virtual size_t GetCount(size_t serie)
Definition: xydynamicdataset.cpp:219
Definition: xydynamicdataset.h:31
virtual double GetX(size_t index, size_t serie)=0
virtual double GetY(size_t index, size_t serie)=0
virtual double GetY(size_t index, size_t serie)
Definition: xydynamicdataset.cpp:212
virtual double GetX(size_t index, size_t serie)
Definition: xydynamicdataset.cpp:205
Definition: xydynamicdataset.h:151
Definition: xydataset.h:21
virtual size_t GetCount(size_t serie)=0
virtual wxString GetSerieName(size_t serie)=0