Vlaxicon

screenthread.h

00001 #ifndef SCREENTHREAD_H
00002 #define SCREENTHREAD_H
00003 
00004 #include <wx/thread.h>
00005 #include <wx/wx.h>
00006 #include <wx/plotctrl/plotctrl.h>
00007 
00008 class ObjectBaseShape;
00009 class PlotTool;
00010 
00011 
00012 extern int ID_SCREEN_THREAD;
00013 extern wxEventType wxEVT_SCREEN_THREAD_REFRESH;
00014 
00015 class ScreenThread:public wxThread
00016 {
00017 public:
00020         ScreenThread(ObjectBaseShape *shape);
00021 
00023         virtual ~ScreenThread();
00024 
00026         virtual void* Entry();
00027 
00029         virtual void OnExit();
00030         
00031         wxCriticalSection m_csUpdateRequest;
00032         
00033 protected:
00034         ObjectBaseShape* m_Shape;
00035         PlotTool* m_Control;
00036 
00039         void SendRefreshRequest(wxPlotData* data);
00040 
00041         unsigned char *cDataBlock;
00042         wxPlotData plotDataA;
00043         wxPlotData plotDataB;
00044         int activeBuffer;
00045         bool m_FirstRun;
00046 };
00047 #endif
 All Classes Functions