]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/generic/plot.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxPlotWindow
4 // Author: Robert Roebling
7 // Copyright: (c) Robert Roebling
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
16 #pragma interface "plot.h"
19 #include "wx/scrolwin.h"
21 //-----------------------------------------------------------------------------
23 //-----------------------------------------------------------------------------
29 //-----------------------------------------------------------------------------
31 //-----------------------------------------------------------------------------
33 class WXDLLEXPORT wxPlotCurve
: public wxObject
36 wxPlotCurve( int offsetY
);
38 virtual wxInt32
GetStartX() = 0;
39 virtual wxInt32
GetEndX() = 0;
44 virtual double GetY( wxInt32 x
) = 0;
49 DECLARE_ABSTRACT_CLASS(wxPlotCurve
)
52 //-----------------------------------------------------------------------------
54 //-----------------------------------------------------------------------------
56 class WXDLLEXPORT wxPlotArea
: public wxWindow
60 wxPlotArea( wxPlotWindow
*parent
);
62 void OnPaint( wxPaintEvent
&event
);
63 void OnMouse( wxMouseEvent
&event
);
66 wxPlotWindow
*m_owner
;
68 DECLARE_CLASS(wxPlotArea
)
72 //-----------------------------------------------------------------------------
74 //-----------------------------------------------------------------------------
76 class WXDLLEXPORT wxPlotWindow
: public wxScrolledWindow
80 wxPlotWindow( wxWindow
*parent
, wxWindowID id
, const wxPoint
&pos
, const wxSize
&size
, int flags
);
83 void Add( wxPlotCurve
*curve
);
85 wxPlotCurve
*GetAt( size_t n
);
87 void SetCurrent( wxPlotCurve
* current
);
88 wxPlotCurve
*GetCurrent();
90 void OnPaint( wxPaintEvent
&event
);
97 wxPlotCurve
*m_current
;
99 DECLARE_CLASS(wxPlotWindow
)
100 DECLARE_EVENT_TABLE()