r244: *** empty log message ***
authorKevin M. Rosenberg <kevin@rosenberg.net>
Mon, 4 Dec 2000 05:36:57 +0000 (05:36 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Mon, 4 Dec 2000 05:36:57 +0000 (05:36 +0000)
include/ct.h
include/imagefile.h
include/phantom.h
include/projections.h
libctgraphics/pol.cpp
libctsim/imagefile.cpp
libctsim/phantom.cpp
libctsim/projections.cpp

index ad04701926bbe9f4589d2c886bf197c78cbec345..0928b91f8807dcc25d3cb986ba13e68248f2bf21 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: ct.h,v 1.40 2000/12/04 04:15:48 kevin Exp $
+**  $Id: ct.h,v 1.41 2000/12/04 05:36:57 kevin Exp $
 **
 **  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
@@ -28,7 +28,7 @@
 #ifndef CT_H
 #define CT_H
 
-#ifdef _WIN32
+#ifdef MSVC
   extern "C" {int strcasecmp(const char*, const char*);}
   typedef long off_t;
   #define HAVE_STRING_H 1
index 6b6b4d530fac706ddf664dedb534ee74dc13df68..ae090e78e713eff199121e4f77c0dc09278bf74c 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: imagefile.h,v 1.19 2000/12/04 04:15:48 kevin Exp $
+**  $Id: imagefile.h,v 1.20 2000/12/04 05:36:57 kevin Exp $
 **
 **  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,17 +48,8 @@ using namespace std;
 class F32Image : public Array2dFile
 {
 public:
-  F32Image (int nx, int ny)
-      : Array2dFile::Array2dFile (nx, ny, sizeof(kfloat32), Array2dFile::PIXEL_FLOAT32)
-  {
-  }
-
-  F32Image (void)
-      : Array2dFile::Array2dFile()
-  {
-      setPixelFormat (Array2dFile::PIXEL_FLOAT32);
-      setPixelSize (sizeof(kfloat32));
-  }
+  F32Image (int nx, int ny);     
+  F32Image (void);\r
 
   kfloat32** getArray (void)
       { return (kfloat32**) (m_arrayData); }
@@ -81,17 +72,8 @@ class F64Image : public Array2dFile
 {
  public:
 
-  F64Image (int nx, int ny)
-      : Array2dFile::Array2dFile (nx, ny, sizeof(kfloat64), Array2dFile::PIXEL_FLOAT64)
-  {
-  }
-
-  F64Image (void)
-      : Array2dFile::Array2dFile ()
-  {
-      setPixelFormat (PIXEL_FLOAT64);
-      setPixelSize (sizeof(kfloat64));
-  }
+  F64Image (int nx, int ny);
+  F64Image (void);
 
   kfloat64** getArray (void)
       { return (kfloat64**) (m_arrayData); }
index 399c542a02a98d7491635164c5d070d3c722dc48..bc245ee7512e7a5477e875399ba8574aa712c955 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: phantom.h,v 1.14 2000/09/04 09:06:46 kevin Exp $
+**  $Id: phantom.h,v 1.15 2000/12/04 05:36:57 kevin Exp $
 **
 **  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
@@ -28,7 +28,9 @@
 #ifndef PHANTOM_H
 #define PHANTOM_H
 
+#ifndef MSVC\r
 #include <slist>
+#endif\r
 #include "ctsupport.h"
 
 using namespace std;
@@ -96,8 +98,8 @@ class PhantomElement
     double* m_yOutline;
     double  m_rectLimits[4];
 
-    static const int POINTS_PER_CIRCLE = 360;
-    static const double SCALE_PELEM_EXTENT=0.005;  // increase pelem limits by 0.5% 
+    static const int POINTS_PER_CIRCLE;
+    static const double SCALE_PELEM_EXTENT;  // increase pelem limits by 0.5% 
 
     static PhmElemType PhantomElement::convertNameToType (const char* const typeName);
 
index eb1e853db11a3b9a8d0536fa5c566ebff0be8d22..4bad1e4d8be2e4ccc085da1967c06d2418ed93cc 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: projections.h,v 1.14 2000/09/02 05:10:39 kevin Exp $
+**  $Id: projections.h,v 1.15 2000/12/04 05:36:57 kevin Exp $
 **
 **
 **  This program is free software; you can redistribute it and/or modify
@@ -32,7 +32,9 @@
 class Scanner;
 class DetectorArray;
 class Array2dFileLabel;
-class ostringstream;
+\r
+#include <sstream>\r
+
 
 // Projections
 class Projections
@@ -91,7 +93,7 @@ class Projections
  private:
   int m_headerSize;            // Size of disk file header 
   int m_geometry;              // Geometry of scanner 
-  struct DetectorArray **m_projData;   // Pointer to array of detarray_st pointers 
+  class DetectorArray **m_projData;    // Pointer to array of detarray_st pointers 
   string m_remark;             // description of raysum data 
   int m_nDet;                  // number of detectors in array 
   int m_nView;                 // number of rotated views 
@@ -112,7 +114,7 @@ class Projections
   string m_filename;
   Array2dFileLabel m_label;
 
-  const static kuint16 m_signature = ('P'*256 + 'J');
+  const static kuint16 m_signature;
 
   bool headerRead ();
   bool headerWrite ();
index dbc8b64d2915c53a40a60e782be55190067e86ab..035f323a106b39d3e3c716e65ff4e982a5760945 100644 (file)
@@ -6,7 +6,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: pol.cpp,v 1.2 2000/07/31 14:48:35 kevin Exp $
+**  $Id: pol.cpp,v 1.3 2000/12/04 05:36:57 kevin Exp $
 **
 **  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
@@ -24,6 +24,7 @@
 /*                                                                     */
 /*----------------------------------------------------------------------*/
 
+#include "ct.h"\r
 #include <math.h>
 #include <stdio.h>
 #include <ctype.h>
index 343470a6ecbdb9aaea3c09b1c2101e832b50b592..96577555ac68a27ea21503f3c6c6eeda23a48059 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: imagefile.cpp,v 1.15 2000/11/22 16:39:59 kevin Exp $
+**  $Id: imagefile.cpp,v 1.16 2000/12/04 05:36:57 kevin Exp $
 **
 **  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
 #include "ct.h"
 
 
+F32Image::F32Image (int nx, int ny)\r
+      : Array2dFile::Array2dFile (nx, ny, sizeof(kfloat32), Array2dFile::PIXEL_FLOAT32)\r
+  {\r
+  }\r
+\r
+F32Image::F32Image (void)[\r
+      : Array2dFile::Array2dFile()\r
+  {\r
+      setPixelFormat (Array2dFile::PIXEL_FLOAT32);\r
+      setPixelSize (sizeof(kfloat32));\r
+  }\r
+\r
+F64Image::F64Image (int nx, int ny)\r
+      : Array2dFile::Array2dFile (nx, ny, sizeof(kfloat64), Array2dFile::PIXEL_FLOAT64)\r
+  {\r
+  }\r
+\r
+F64Image::F64Image (void)\r
+      : Array2dFile::Array2dFile ()\r
+  {\r
+      setPixelFormat (PIXEL_FLOAT64);\r
+      setPixelSize (sizeof(kfloat64));\r
+  }\r
 
 void 
 ImageFile::filterResponse (const char* const domainName, double bw, const char* const filterName, double filt_param)
index 59b46ce4ccf3dc5aca9950999dd820c5c8170341..6058ce77e947c6789bb8919088d54b1b8d25474a 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: phantom.cpp,v 1.19 2000/11/09 00:12:25 kevin Exp $
+**  $Id: phantom.cpp,v 1.20 2000/12/04 05:36:57 kevin Exp $
 **
 **  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
@@ -27,6 +27,8 @@
 
 #include "ct.h"
 
+const int Phantom::POINTS_PER_CIRCLE = 360;\r
+const double Phantom::SCALE_PELEM_EXTENT=0.005;  // increase pelem limits by 0.5% \r
 
 const int Phantom::PHM_INVALID = -1;
 const int Phantom::PHM_HERMAN = 0;
index 7fdda64bfd5603d5ebae628a50a484b92ea42278..ea3074b486bf68da1424c6c2cf3b810532c78ba5 100644 (file)
@@ -8,7 +8,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: projections.cpp,v 1.26 2000/09/07 05:51:52 kevin Exp $
+**  $Id: projections.cpp,v 1.27 2000/12/04 05:36:57 kevin Exp $
 **
 **  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
@@ -25,7 +25,8 @@
 ******************************************************************************/
 
 #include "ct.h"
-
+\r
+const kuint16 Projections::m_signature = ('P'*256 + 'J');\r
 
 /* NAME
  *    Projections              Constructor for projections matrix storage