// $Id: Phantom.h,v 1.2 2006/08/02 03:39:28 pkaz Exp $ // // Contains Phantom class. This is static class that contains design // information about the phantom -- primarily the names of the points // and the CNC coordinates. It could have been implemented using the // Singleton design pattern and/or it could read the CNC data from a // file rather than having it hard-coded. #ifndef _phantom_h #define _phantom_h #include // Class for phantom class Phantom { static int numpts; static int numregpts; static char *names[]; static vctDouble3 values[]; public: Phantom(); ~Phantom(); static int GetNumPts() { return numpts; } static int GetNumRegPts() { return numregpts; } static vctDouble3* GetCNC() { return values; } static const char *GetName(int i) { return names[i]; } static int LookupName(char *name); static bool IsRegpoint(int i); }; #endif