wxFreeChart
chartsplitpanel.h
1 // Name: chartsplitpanel.h
3 // Purpose:
4 // Author: Moskvichev Andrey V.
5 // Created: 28.01.2010
6 // RCS-ID: $Id: wxAdvTable.h,v 1.3 2008/11/07 16:42:58 moskvichev Exp $
7 // Copyright: (c) 2010 Moskvichev Andrey V.
8 // Licence: wxWidgets licence
10 
11 #ifndef CHARTSPLITPANEL_H_
12 #define CHARTSPLITPANEL_H_
13 
14 #include <wx/aui/aui.h>
15 
16 #include "wx/wxfreechartdefs.h"
17 #include "wx/plot.h"
18 #include "wx/multiplot.h" // for PlotArray
19 
24 class WXDLLIMPEXP_FREECHART wxChartSplitPanel : public wxPanel
25 {
26 public:
27  wxChartSplitPanel(wxWindow *parent, wxWindowID id = wxID_ANY,
28  const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize);
29  virtual ~wxChartSplitPanel();
30 
31  void AddPlot(Plot *plot, int pos, bool allowRemove);
32  void RemovePlot(Plot *plot);
33  void RemovePlot(size_t nPlot);
34 
35  void RemoveAllPlots();
36 
37  Plot *GetPlot(size_t index);
38 
39 private:
40  wxAuiManager *m_auiManager;
41 
42  PlotArray m_plots;
43 };
44 
45 #endif /* CHARTSPLITPANEL_H_ */
46 
wxChartSplitPanel is wxWidgets panel, that displays multiple plots.
Base class for all plots.
Definition: plot.h:31