00001 #ifndef __PBGLINDEXER_H__ 00002 #define __PBGLINDEXER_H__ 00003 00004 #ifndef __EMCINDEXER_H__ 00005 #include "EmcIndexer.h" 00006 #endif 00007 00012 class PbGlIndexer : public EmcIndexer 00013 { 00014 public: 00016 static PbGlIndexer * buildPbGlIndexer(); 00018 static int deletePbGlIndexer(); 00020 void iCHi24Packi24PackT(int &, int &, int &); 00022 int i24Packi24PackTiCH(int &,int &); 00024 int iCHi144PackT(int &); 00026 int i144PackTiCH(int &); 00028 void SMxySM(int , int &, int &); 00030 int xySTiST(int x, int y) {return y*96+x;} 00032 int SMxySMTiST(int , int , int ); 00034 int SMiSMTiST(int , int ); 00036 void iSTxyST(int const , int &, int &); 00038 int xySMTiSMT(int x, int y) {return y*6+x;} 00040 int xySMiSM(int x, int y); 00042 void iSM24TxySM24T(int , int &, int &); 00044 void iST_SMInd(int const , int &, int &, int &, int &); 00045 00047 int SM24iSM24TiST(int iSM24, int iSM24T); 00048 protected: 00049 PbGlIndexer(); 00050 virtual ~PbGlIndexer(); 00051 00052 private: 00053 static PbGlIndexer * single; 00054 static int access_count; 00055 }; 00057 extern PbGlIndexer * gPbGl; 00058 00059 #endif