r117: *** empty log message ***
[ctsim.git] / include / scanner.h
index aebf7d1b814484204f613501d8022f4dad692f16..d383498e4eed4b7c029f8e82b1ee63325718490c 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: scanner.h,v 1.2 2000/06/19 15:48:23 kevin Exp $
+**  $Id: scanner.h,v 1.4 2000/06/22 10:17:28 kevin Exp $
 **
 **
 **  This program is free software; you can redistribute it and/or modify
 **
 **
 **  This program is free software; you can redistribute it and/or modify
@@ -29,7 +29,8 @@
 #ifndef SCANNER_H
 #define SCANNER_H
 
 #ifndef SCANNER_H
 #define SCANNER_H
 
-#include "projections.h"
+class Projections;
+
 
 // Projections are collected along an array of ndet detectors.  The data
 // for these detectors is stored in the class DetectorArray
 
 // Projections are collected along an array of ndet detectors.  The data
 // for these detectors is stored in the class DetectorArray
@@ -54,6 +55,9 @@ class DetectorArray
   DetectorValue* m_detValues;  /* Pointer to array of values recorded by detector */
   int m_nDet;          /* Number of detectors in array */
   double m_viewAngle;    /* View angle in radians */
   DetectorValue* m_detValues;  /* Pointer to array of values recorded by detector */
   int m_nDet;          /* Number of detectors in array */
   double m_viewAngle;    /* View angle in radians */
+
+  DetectorArray& operator=(const DetectorArray& rhs);
+  DetectorArray& operator()(const DetectorArray& rhs);
 };
 
 typedef enum {
 };
 
 typedef enum {
@@ -71,6 +75,7 @@ class Scanner
   
   void collectProjections (Projections& proj, const Phantom& phm, const int start_view, const int trace);
 
   
   void collectProjections (Projections& proj, const Phantom& phm, const int start_view, const int trace);
 
+  void setNView (int nView);
   const unsigned int nDet(void) const {return m_nDet;}
   const unsigned int nView(void) const {return m_nView;}
   const double phmLen(void) const {return m_phmLen;}
   const unsigned int nDet(void) const {return m_nDet;}
   const unsigned int nView(void) const {return m_nView;}
   const double phmLen(void) const {return m_phmLen;}