Vlaxicon

plottool.h

00001 #ifndef __PLOTTOOL__
00002 #define __PLOTTOOL__
00003 #ifndef WX_PRECOMP
00004     #include <wx/wx.h>
00005 #endif //WX_PRECOMP
00006 #include "objectbase.h"
00007 #include <wx/plotctrl/plotctrl.h>
00008 #include "plotwinmain.h"
00009 #include "screenthread.h"
00010 
00011 class PlotTool:public ObjectBase
00012 {
00013 public:
00017         PlotTool(wxWindow* parent, ObjectBaseShape* parentShape);
00018         
00020         ~PlotTool();
00021         
00023         void StartScreen();
00024         
00027         bool IsRunning();
00028         
00030         void StopScreen();
00031         
00034         void SetOpenWin(bool isWin){bWin=isWin;}
00035 protected:
00036         enum
00037         {
00038                 ID_EXPORT_PLOT=wxID_HIGHEST + 1,                
00039                 ID_PLOTCTRL=wxID_HIGHEST + 1,
00040                 ID_PLOT_WIN=wxID_HIGHEST + 1,
00041                 ID_TIMER_PLOT = wxID_HIGHEST + 1
00042         };
00043         
00045         void OnButtonExportClick(wxCommandEvent &event);
00046         
00048         void OnButtonWinClick(wxCommandEvent &event);
00049         
00051         void OnRefreshPlot(wxCommandEvent &event);
00052         
00053         
00054         wxPlotCtrl* m_plotCtrl;
00055         wxButton* m_buttonExport;
00056         wxButton* m_buttonWin;  
00057         wxPlotData pActiveData;
00058         bool bWin;
00059         
00060         PlotWinMain *plotWin;
00061         
00062         ScreenThread* scrThread;
00063 };
00064 
00065 #endif //__PLOTTOOL__
 All Classes Functions