X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=src%2Fthreadproj.h;h=c4303d30055809fc45919a77a76ca3f5919716c3;hp=49212f4a92693ab70b3acf1373c455edb76ccb1f;hb=9ac3b88884957e2c07bf365c2503c6c1fbeaa60e;hpb=edd35e8663bc7abd7b8a02b5cc5ec169a5edc0ac diff --git a/src/threadproj.h b/src/threadproj.h index 49212f4..c4303d3 100644 --- a/src/threadproj.h +++ b/src/threadproj.h @@ -7,9 +7,7 @@ ** Date Started: February 2001 ** ** This is part of the CTSim program -** Copyright (C) 1983-2001 Kevin Rosenberg -** -** $Id: threadproj.h,v 1.6 2001/03/04 04:27:55 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 @@ -48,6 +46,7 @@ private: PhantomFileView* m_pPhantomView; const int m_iNDet; const int m_iNView; + const int m_iOffsetView; const std::string m_strGeometry; const int m_iNSample; const double m_dRotation; @@ -55,12 +54,12 @@ private: const double m_dCenterDetectorLength; const double m_dViewRatio; const double m_dScanRatio; - const std::string m_strLabel; + const wxString m_strLabel; public: - ProjectorSupervisorThread(PhantomFileView* pProjView, int iNDet, int iNView, + ProjectorSupervisorThread(PhantomFileView* pProjView, int iNDet, int iNView, int iOffsetView, const char* pszGeometry, int iNSample, double dRotation, double dFocalLength, double dCenterDetectorLength, - double dViewRatio, double dScanRatio, const char* const pszLabel); + double dViewRatio, double dScanRatio, wxChar const* strLabel); virtual wxThread::ExitCode Entry(); @@ -76,9 +75,10 @@ private: PhantomFileView* m_pPhantomView; PhantomFileDocument* m_pPhantomDoc; Scanner* m_pScanner; - + const int m_iNDet; const int m_iNView; + const int m_iOffsetView; const char* const m_pszGeometry; const int m_iNSample; const double m_dRotation; @@ -86,13 +86,13 @@ private: const double m_dCenterDetectorLength; const double m_dViewRatio; const double m_dScanRatio; - const char* const m_pszLabel; + const wxString m_strLabel; public: - ProjectorSupervisor (SupervisorThread* pThread, PhantomFileView* pProjView, int iNDet, int iNView, + ProjectorSupervisor (SupervisorThread* pThread, PhantomFileView* pProjView, int iNDet, int iNView, int iOffsetView, const char* pszGeometry, int iNSample, double dRotation, double dFocalLength, double dCenterDetectorLength, - double dViewRatio, double dScanRatio, const char* const pszLabel); + double dViewRatio, double dScanRatio, wxChar const* pszLabel); virtual BackgroundWorkerThread* createWorker (int iThread, int iStartUnit, int iNumUnits); @@ -114,6 +114,7 @@ private: Scanner* m_pScanner; int m_iNDet; int m_iNView; + int m_iOffsetView; const char* m_pszGeometry; int m_iNSample; double m_dRotation; @@ -124,12 +125,12 @@ private: public: - ProjectorWorker (ProjectorSupervisor* pSupervisor, int iThread, int iStartView, int iNumViews) + ProjectorWorker (ProjectorSupervisor* pSupervisor, int iThread, int iStartView, int iNumViews) : BackgroundWorkerThread (pSupervisor, iThread, iStartView, iNumViews) {} - - void SetParameters (PhantomFileView* pPhantomFile, Projections* pProjections, Scanner* pScanner, - int iNDet, int iView, + + void SetParameters (PhantomFileView* pPhantomFile, Projections* pProjections, Scanner* pScanner, + int iNDet, int iView, int iOffsetView, const char* const pszGeometry, int iNSample, double dRotation, double dFocalLength, double dCenterDetectorLength, double dViewRatio, double dScanRatio); @@ -141,4 +142,4 @@ public: #endif // HAVE_WXTHREADS #endif // _THREADPROJ_H_ - +