X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;ds=sidebyside;f=include%2Fphantom.h;h=4a2680b16ab00977a10f3ca5c7583cb2ae10a599;hb=08f34bf3ba14d4f436f4d2ef0ee5af1d6eb266ac;hp=b3765c687970562ce7a44e365f9ebf5ceb0707b1;hpb=6e9304595677d093974038ffad44f8d54178e741;p=ctsim.git diff --git a/include/phantom.h b/include/phantom.h index b3765c6..4a2680b 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.3 2000/06/22 10:17:28 kevin Exp $ +** $Id: phantom.h,v 1.4 2000/06/25 17:32:24 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 @@ -132,6 +132,11 @@ class Phantom PHM_UNITPULSE /* Unit pulse phantom */ } PhantomID; + static const char PHM_HERMAN_STR[]= "herman"; + static const char PHM_BHERMAN_STR[]= "bherman"; + static const char PHM_ROWLAND_STR[]= "rowland"; + static const char PHM_BROWLAND_STR[]= "browland"; + static const char PHM_UNITPULSE_STR[]= "unitpulse"; Phantom (void); Phantom (const char* const phmName); @@ -158,14 +163,10 @@ class Phantom void convertToImagefile (ImageFile& im, const int in_nsample, const int trace) const; - bool fail(void) const - {return m_fail;} - - const string& name(void) const - {return m_name;} - - const PhantomID id(void) const - {return m_id;} + bool fail(void) const {return m_fail;} + const string& failMessage(void) const {return m_failMessage;} + const string& name(void) const {return m_name;} + const PhantomID id(void) const {return m_id;} #if HAVE_SGP void show (void) const; @@ -199,13 +200,9 @@ class Phantom string m_name; PhantomID m_id; bool m_fail; + string m_failMessage; // Standard phantomsa - static const char PHM_HERMAN_STR[]= "herman"; - static const char PHM_BHERMAN_STR[]= "bherman"; - static const char PHM_ROWLAND_STR[]= "rowland"; - static const char PHM_BROWLAND_STR[]= "browland"; - static const char PHM_UNITPULSE_STR[]= "unitpulse"; static PhantomID convertNameToPhantomID (const char* const phmName); static const char* convertPhantomIDToName (const PhantomID phmID);