+ void collectProjections (Projections& proj, const Phantom& phm, const int trace = Trace::TRACE_NONE, SGP* pSGP = NULL);
+
+ void collectProjections (Projections& proj, const Phantom& phm, const int iStartView, const int iNumViews, bool bStoreAtViewPosition, const int trace = Trace::TRACE_NONE, SGP* pSGP = NULL);
+
+ void setNView (int nView);
+
+ bool fail() const {return m_fail;}
+ const std::string& failMessage() const {return m_failMessage;}
+ unsigned int nDet() const {return m_nDet;}
+ unsigned int nView() const {return m_nView;}
+
+ double rotInc() const {return m_rotInc;}
+ double detInc() const {return m_detInc;}
+ double detLen() const {return m_detLen;}
+ double focalLength() const {return m_dFocalLength;}
+ double viewDiameter() const {return m_dViewDiameter;}
+ double scanDiameter() const {return m_dScanDiameter;}
+ double fanBeamAngle() const {return m_dFanBeamAngle;}
+
+ int geometry() const {return m_idGeometry;}
+
+ static int getGeometryCount() {return s_iGeometryCount;}
+ static const char** getGeometryNameArray() {return s_aszGeometryName;}
+ static const char** getGeometryTitleArray() {return s_aszGeometryTitle;}
+ static int convertGeometryNameToID (const char* const geometryName);
+ static const char* convertGeometryIDToName (const int idGeometry);
+ static const char* convertGeometryIDToTitle (const int idGeometry);
+
+ private:
+ bool m_fail;
+ std::string m_failMessage;
+ int m_idGeometry;
+ unsigned int m_nDet; /* Number of detectors in array */
+ unsigned int m_nView; /* Number of rotated views */
+ unsigned int m_nSample; /* Number of rays per detector */
+ double m_dFocalLength; // Focal Length
+ double m_dViewDiameter; // Diameter of area being processed
+ double m_dScanDiameter; // Diamer of area being scanned
+ double m_dViewRatio; // View Ratio to diameter phantom
+ double m_dFocalLengthRatio; // Focal Length ratio to radius phantom
+ double m_dScanRatio; // Scan length to view length ratio
+ double m_dFanBeamAngle;
+ double m_detLen; // Total length of detector array
+ double m_rotLen; // Rotation angle length in radians (norm 2PI)
+ double m_detInc; // Increment between centers of detectors
+ double m_rotInc; // Increment in rotation angle between views
+ double m_dXCenter; // Center of Phantom
+ double m_dYCenter;
+ double m_dAngularDetIncrement;
+ double m_dAngularDetLen;
+
+ int m_trace;
+ struct {
+ double xd1,yd1,xd2,yd2; /* Coordinates of detector endpoints */
+ double xs1,ys1,xs2,ys2; /* Coordinates of source endpoints */
+ double angle; /* Starting angle */
+ double dAngularDet;
+ } m_initPos;
+
+ GRFMTX_2D m_rotmtxIncrement;