13 #include <wx/wxfreechartdefs.h> 17 #include <wx/refobject.h> 19 #include <wx/chartrenderer.h> 20 #include <wx/marker.h> 22 #include <wx/dynarray.h> 27 #define FOREACH_SERIE(index, dataset) \ 28 for (size_t index = 0; index < dataset->GetSerieCount(); index++) 30 #define FOREACH_DATAITEM(index, serie, dataset) \ 31 for (size_t index = 0; index < dataset->GetCount(serie); index++) 33 wxDECLARE_EVENT(EVT_DATASET_CHANGED, wxCommandEvent);
50 void SetRenderer(
Renderer *renderer);
72 virtual size_t GetSerieCount() = 0;
79 virtual size_t GetCount(
size_t serie) = 0;
86 virtual wxString GetSerieName(
size_t serie) = 0;
93 virtual double GetMinValue(
bool vertical) = 0;
100 virtual double GetMaxValue(
bool vertical) = 0;
108 void AddMarker(
Marker *marker);
114 size_t GetMarkersCount();
121 Marker *GetMarker(
size_t index);
133 void DatasetChanged();
140 virtual bool AcceptRenderer(
Renderer *r) = 0;
147 MarkerArray m_markers;
164 virtual time_t GetDate(
size_t index) = 0;
170 virtual size_t GetCount() = 0;
173 WX_DECLARE_USER_EXPORTED_OBJARRAY(
Dataset *, DatasetArrayBase, WXDLLIMPEXP_FREECHART);
185 void RemoveAt(
size_t index,
size_t count = 1);
Base class for all renderers.
Object with reference counter.
Base class for objects drawn on chart or perform drawing of another objects (like renderers...
Base class for all datasets (XYDatasets, XYZDatasets, CategoryDatasets, OHLCDatasets, etc).
Base class for datasets, with date/time.