X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=src%2Fthreadraster.h;h=0b637b127e9ffb4cfd3bb50bfaf68576f31a4420;hp=58074f0fadea9e80459a8302ec6838ac3000b88f;hb=f7ee98f7d964ed361068179f0e7ea4475ed1abdf;hpb=8a7697ce57b56cdc43698cd1241ad98d49f9b5ac diff --git a/src/threadraster.h b/src/threadraster.h index 58074f0..0b637b1 100644 --- a/src/threadraster.h +++ b/src/threadraster.h @@ -50,10 +50,10 @@ 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(); @@ -67,17 +67,17 @@ private: PhantomFileView* m_pPhantomView; std::vector m_vecpChildImageFiles; PhantomFileDocument* m_pPhantomDoc; - + 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); @@ -103,11 +103,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 @@ -117,4 +117,4 @@ public: #endif // HAVE_WXTHREADS #endif // _THREADRASTER_H_ - +