X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=include%2Fphantom.h;h=dbaf169fc430d46ba8d7f09b12c773d112607505;hb=ab4a3ba2c1ba9672136b5022897f81fc55d03493;hp=09af2b30bb0b56bf82af18b4849e1b4c584ab7ea;hpb=3fba6928127cd65870bdcd96c8114ad5894247ae;p=ctsim.git diff --git a/include/phantom.h b/include/phantom.h index 09af2b3..dbaf169 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.5 2000/07/13 07:03:21 kevin Exp $ +** $Id: phantom.h,v 1.8 2000/07/19 04:33:27 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 @@ -56,7 +56,7 @@ class PhantomElement ~PhantomElement (void); - bool isPointInside (double x, double y, const CoordType coord_type); + bool isPointInside (double x, double y, const CoordType coord_type) const; bool clipLineNormalizedCoords (double& x1, double& y1, double& x2, double& y2) const; @@ -109,6 +109,8 @@ class PhantomElement static int numCirclePoints (double theta); + PhantomElement (const PhantomElement& rhs); // copy constructor + PhantomElement& operator= (const PhantomElement&); // assignment operator }; @@ -138,6 +140,12 @@ class Phantom static const char PHM_BROWLAND_STR[]= "browland"; static const char PHM_UNITPULSE_STR[]= "unitpulse"; + static const char PHM_HERMAN_TITLE_STR[]= "Herman Head"; + static const char PHM_BHERMAN_TITLE_STR[]= "Herman Head Bordered"; + static const char PHM_ROWLAND_TITLE_STR[]= "Rowland Head"; + static const char PHM_BROWLAND_TITLE_STR[]= "Rowland Head Bordered"; + static const char PHM_UNITPULSE_TITLE_STR[]= "Unit Pulse"; + Phantom (void); Phantom (const char* const phmName); @@ -207,6 +215,9 @@ class Phantom static const char* convertPhantomIDToName (const PhantomID phmID); void init(void); + + Phantom (const Phantom& rhs); // copy constructor + Phantom& operator= (const Phantom&); // assignment operator }; typedef slist::iterator PElemIterator;