10 #ifndef XYSIMPLEDATASET_H_ 11 #define XYSIMPLEDATASET_H_ 13 #include <wx/xy/xydataset.h> 15 #include <wx/dynarray.h> 28 wxDEPRECATED_MSG(
"Use XYSerie(const wxVector&<wxRealPoint>) instead.")
29 XYSerie(
double *data,
size_t count);
35 XYSerie(
const wxVector<wxRealPoint>& seriesData);
39 void Append(
const wxRealPoint& values);
41 void Insert(
size_t index,
const wxRealPoint& values);
43 void Remove(
size_t index);
50 double GetX(
size_t index);
57 double GetY(
size_t index);
64 void UpdateX(
size_t index,
double x);
71 void UpdateY(
size_t index,
double y);
78 void UpdatePoint(
size_t index,
const wxRealPoint& values);
83 const wxString &GetName();
85 void SetName(
const wxString &name);
88 wxVector<wxRealPoint> m_newdata;
92 WX_DECLARE_USER_EXPORTED_OBJARRAY(
XYSerie *, XYSerieArray, WXDLLIMPEXP_FREECHART);
109 wxDEPRECATED_MSG(
"Use AddSerie(new XYSerie(const wxVector&<wxRealPoint>)) instead.")
110 void AddSerie(
double *data,
size_t count);
118 XYSerie* GetSerie(
size_t series);
120 virtual double GetX(
size_t index,
size_t serie) wxOVERRIDE;
122 virtual double GetY(
size_t index,
size_t serie) wxOVERRIDE;
126 virtual size_t GetCount(
size_t serie);
128 wxDEPRECATED_MSG(
"Use GetSeries()->GetName() instead.")
131 wxDEPRECATED_MSG(
"Use GetSeries()->SetName() instead.")
132 void SetSerieName(
size_t serie,
const wxString &name);
135 XYSerieArray m_series;
136 wxVector<wxSharedPtr<XYSerie> > m_series2;
virtual size_t GetSerieCount()=0
Returns serie count in this dataset.
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 size_t GetCount(size_t serie)=0
Returns value count in serie specified by index.
Base class for XY datasets.
Holds data for one XY serie.
virtual wxString GetSerieName(size_t serie)=0
Returns serie name.