Update copyright date; remove old CVS keyword
[ctsim.git] / src / threadraster.h
index b161c03abb84dfe57279e279af6e8f932e424eb7..b2224456b7a72825ac7be1915e0b414170e196f8 100644 (file)
@@ -7,9 +7,7 @@
 **   Date Started:  February 2001
 **
 **  This is part of the CTSim program
-**  Copyright (C) 1983-2001 Kevin Rosenberg
-**
-**  $Id: threadraster.h,v 1.1 2001/02/27 03:59:30 kevin Exp $
+**  Copyright (C) 1983-2009 Kevin Rosenberg
 **
 **  This program is free software; you can redistribute it and/or modify
 **  it under the terms of the GNU General Public License (version 2) as
@@ -28,6 +26,8 @@
 #ifndef _THREADRASTER_H
 #define _THREADRASTER_H
 
+#ifdef HAVE_WXTHREADS
+
 #include <vector>
 #include <wx/thread.h>
 #include <wx/progdlg.h>
@@ -48,13 +48,12 @@ private:
   const int m_iNY;
   const int m_iNSample;
   const double m_dViewRatio;
-  const std::string m_strLabel;
+  const wxString m_strLabel;
 
 public:
-  RasterizerSupervisorThread(PhantomFileView* pProjView, int iNX, int iNY, int iNSample, double dViewRatio, const char* const pszLabel);
+  RasterizerSupervisorThread(PhantomFileView* pProjView, int iNX, int iNY, int iNSample, double dViewRatio, wxChar const* strLabel);
 
   virtual wxThread::ExitCode Entry();
-
   virtual void OnExit();
 };
 
@@ -63,20 +62,20 @@ public:
 class RasterizerSupervisor : public BackgroundSupervisor {
 private:
 
+  PhantomFileView* m_pPhantomView;
   std::vector<ImageFile*> m_vecpChildImageFiles;
   PhantomFileDocument* m_pPhantomDoc;
-  PhantomFileView* m_pPhantomView;
-  
+
   const int m_iNX;
   const int m_iNY;
   const int m_iNSample;
   const double m_dViewRatio;
-  const char* const m_pszLabel;
+  const wxString m_strLabel;
 
 
 public:
-   RasterizerSupervisor (SupervisorThread* pThread, PhantomFileView* pProjView, int iNX, int iNY, 
-   int iNSample, double dViewRatio, const char* const pszLabel);
+   RasterizerSupervisor (SupervisorThread* pThread, PhantomFileView* pProjView, int iNX, int iNY,
+   int iNSample, double dViewRatio, wxChar const* pszLabel);
 
    virtual BackgroundWorkerThread* createWorker (int iThread, int iStartUnit, int iNumUnits);
 
@@ -102,11 +101,11 @@ private:
 
 
 public:
-  RasterizerWorker (RasterizerSupervisor* pSupervisor, int iThread, int iStartView, int iNumViews) 
+  RasterizerWorker (RasterizerSupervisor* pSupervisor, int iThread, int iStartView, int iNumViews)
     : BackgroundWorkerThread (pSupervisor, iThread, iStartView, iNumViews)
   {}
-  
-  void SetParameters (PhantomFileView* pPhantomFile, ImageFile* pImageFile, int iNX, int iY, 
+
+  void SetParameters (PhantomFileView* pPhantomFile, ImageFile* pImageFile, int iNX, int iY,
    int iNSample, double dViewRatio);
 
   virtual wxThread::ExitCode Entry();      // thread execution starts here
@@ -114,6 +113,6 @@ public:
   virtual void OnExit();
 };
 
+#endif // HAVE_WXTHREADS
+#endif // _THREADRASTER_H_
 
-#endif
-