00001 /**************************************************************************** 00002 * * 00003 * Program: FDDlib * 00004 * Version: 1.1 * 00005 * * 00006 * Copyright (C) 2002 - 2004 by Eric Miller and Dana Brooks * 00007 * All rights reserved. * 00008 * * 00009 * This software is Version 1.1 of the fddlib tomography toolbox. * 00010 * It is not to be redistributed or used for any commercial purpose * 00011 * without the prior written consent of the authors and Northeastern * 00012 * University. * 00013 * * 00014 * This software is provided as is, and any express or implied warranties, * 00015 * including but not limited to the implied warranty of merchantability * 00016 * and the implied warranty of fitness for a particular purpose, are dis- * 00017 * claimed. In no event shall the authors or Northeastern University be * 00018 * liable for any direct, indirect, incidental, special, exemplary, or * 00019 * consequential damages (including but not limited to procurement of * 00020 * substitute goods or services; loss of use, data, or profits; or busi- * 00021 * ness interruption) however caused and on any theory of liability, * 00022 * whether in contract, strict liability, or tort (including negligence or * 00023 * otherwise) arising in any way from the use of this software, even if * 00024 * advised of the possibility of such damage. * 00025 * * 00026 * Portions of this code benefit from ideas from Kyle Guilbert, Greg * 00027 * Boverman, Derek Uluski, David Kaeli, and Jennifer Black * 00028 * * 00029 ****************************************************************************/ 00030 00031 #ifndef _ARB_DET3D_H_ 00032 #define _ARB_DET3D_H_ 00033 00034 #include "Detector3D.h" 00035 #include "Location3D.h" 00036 #include "Complex.h" 00037 #include "CartesianNode3D.h" 00038 #include <vector> 00039 #include <string> 00040 00041 namespace FDDlib { 00042 00046 class ArbitraryDetector3D : public Detector3D 00047 { 00048 00049 public: 00050 00052 struct s_adentry { 00053 00055 Location3D location; 00056 00058 Complex<double> weight; 00059 00061 Complex<double> data; 00062 00063 }; 00064 00065 protected: 00066 00068 std::vector<s_adentry> aperture_; 00069 00070 public: 00071 00073 ArbitraryDetector3D(); 00074 00079 void addLocation(const Location3D& location, const Complex<double>& weight); 00080 00082 int getApertureSize() const; 00083 00087 s_adentry getEntry(int entIndex) const throw(std::string); 00088 00096 void setData(const CartesianNode3D& node, const Complex<double>& data); 00097 00101 Complex<double> getData() const; 00102 00108 Complex<double> getData(const CartesianNode3D& node) const; 00109 00110 }; 00111 00112 } 00113 00114 #endif
1.2.18