r333: *** empty log message ***
[ctsim.git] / include / phantom.h
index 7d9b43392837c47e7b3cdd22a803095eaa346b78..f8187c2f3d0d303cb40ac24625ad7ef875932682 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: phantom.h,v 1.18 2001/01/02 05:33:37 kevin Exp $
+**  $Id: phantom.h,v 1.19 2001/01/02 07:47:36 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
@@ -81,6 +81,7 @@ class PhantomElement
     const double v() const {return m_v;}\r
 \r
     void printDefinition (std::ostream& os) const;
+    void printDefinition (std::ostringstream& os) const;
 
  private:
     PhmElemType m_type;             // pelem type (box, ellipse, etc)
@@ -170,6 +171,7 @@ class Phantom
     void convertToImagefile (ImageFile& im, const int in_nsample, const int trace) const;
 \r
     void printDefinitions (std::ostream& os) const;\r
+    void printDefinitions (std::ostringstream& os) const;\r
 
     bool fail() const             {return m_fail;}
     const std::string& failMessage() const {return m_failMessage;}
@@ -188,6 +190,7 @@ class Phantom
     void addStdSheppLoganBordered ();
 
     void print (std::ostream& os) const;
+    void print (std::ostringstream& os) const;
 
     const double maxAxisLength () const {return (((m_xmax - m_xmin) > (m_ymax - m_ymin)) ? (m_xmax - m_xmin) : (m_ymax - m_ymin));}