Example #1
0
        public static RayHelper getInstance()
        {
            if (instance == null)
            {
                lock (syncRoot)
                {
                    if (instance == null)
                    {
                        instance = new RayHelper();

                        tbDTgrids = new HashSet <string>();
                        getGrids1();
                    }
                }
            }
            return(instance);
        }
Example #2
0
        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);
        }
Example #3
0
 //用于每次生成一个小区的路测数据后,清空路测栅格实例,jinhj
 public static void clearInstance()
 {
     instance = null;
     tbDTgrids.Clear();
 }