** Date Started: July 1, 1984
**
** This is part of the CTSim program
-** Copyright (c) 1983-2001 Kevin Rosenberg
-**
-** $Id$
+** Copyright (c) 1983-2009 Kevin Rosenberg
**
** 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
static const char* const convertTypeToName (PhmElemType iType);
void makeTransformMatrices ();
-
void makeVectorOutline ();
-
void calcArcPoints (double x[], double y[], const int pts, const double xcent, const double ycent, const double r, const double start, const double stop);
-
void calcEllipsePoints (double x[], double y[], const int pts, const double u, const double v);
static int numCirclePoints (double theta);
{ return m_composition; }
bool createFromPhantom (const char* const phmName);
-
bool createFromPhantom (const int phmid);
-
- bool createFromFile (const char* const fname);
-
+ bool createFromPhmFile (const char* const fname);
+ bool createFromImageFile (const char* const fname);
bool fileWrite (const char* const fname);
void addPElem (const PhantomElement& pelem);
-
void addPElem (const char* const composition, const double cx, const double cy, const double u, const double v, const double rot, const double atten);
void convertToImagefile (ImageFile& im, double dViewRatio, const int in_nsample, const int trace) const;
std::list<PhantomElement*>& listPElem() {return m_listPElem;}
const std::list<PhantomElement*>& listPElem() const {return m_listPElem;}
const int nPElem() const {return m_nPElem;}
+ const bool isImagefile(void) const { return m_im != NULL; }
+ const ImageFile* getImagefile() const { return m_im; }
static const int getPhantomCount() {return s_iPhantomCount;}
static const char** getPhantomNameArray() {return s_aszPhantomName;}
static const char* s_aszPhantomName[];
static const char* s_aszPhantomTitle[];
static const int s_iPhantomCount;
+ ImageFile* m_im; // If defining a phantom from an ImageFile
void init();