Exemplo n.º 1
0
 /// <summary>
 /// 单例模式添加单例实体
 /// </summary>
 /// <returns></returns>
 public static SmObjectLocator getInstance()
 {
     if (smObjectLocator == null)
     {
         smObjectLocator = new SmObjectLocator();
         globeObject = new SceneControl();
     }
     return smObjectLocator;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 单例模式添加单例实体
 /// </summary>
 /// <returns></returns>
 public static SmObjectLocator getInstance()
 {
     //初始化三维基本对象
     if (smObjectLocator == null)
     {
         smObjectLocator = new SmObjectLocator();
         globeObject = new SceneControl();
         flyManagerObject = globeObject.Scene.FlyManager;
     }
     return smObjectLocator;
 }