public static RayHelper getInstance() { if (instance == null) { lock (syncRoot) { if (instance == null) { instance = new RayHelper(); tbDTgrids = new HashSet <string>(); getGrids1(); } } } return(instance); }
public static RayHelper getInstance(int CI, double radius) { if (instance == null) { lock (syncRoot) { if (instance == null) { instance = new RayHelper(); tbDTgrids = new HashSet <string>(); getGridsForACell(CI, radius); } } } return(instance); }
//用于每次生成一个小区的路测数据后,清空路测栅格实例,jinhj public static void clearInstance() { instance = null; tbDTgrids.Clear(); }