X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=include%2Fphantom.h;h=f8187c2f3d0d303cb40ac24625ad7ef875932682;hp=7d9b43392837c47e7b3cdd22a803095eaa346b78;hb=4076fbc077adfd9ee610beef09b52d9e12c14abb;hpb=c39188dafe238b70c0e2dd45fd1cd2e2be95a7dc diff --git a/include/phantom.h b/include/phantom.h index 7d9b433..f8187c2 100644 --- a/include/phantom.h +++ b/include/phantom.h @@ -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;} 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; void printDefinitions (std::ostream& os) const; + void printDefinitions (std::ostringstream& os) const; 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));}