Exemple #1
0
                    /// <summary>
                    /// 获取工厂句柄
                    /// </summary>
                    /// <returns>失败则返回NULL</returns>
                    public static EarthView.World.Spatial3D.ModelManager.LodObjectFactory GetFactory(EarthView.World.Graphic.SceneManager pSceneManager)
                    {
                        IntPtr __ptr = EarthView_World_Spatial3D_ModelManager_CLodObjectFactory_getFactory_CLodObjectFactory_CSceneManager(object.Equals(pSceneManager, null) ? IntPtr.Zero : pSceneManager.NativeObject);

                        if (__ptr == IntPtr.Zero)
                        {
                            return(null);
                        }
                        EarthView.World.Spatial3D.ModelManager.LodObjectFactory csObj = new EarthView.World.Spatial3D.ModelManager.LodObjectFactory(CreatedWhenConstruct.CWC_NotToCreate);
                        csObj.BindNativeObject(__ptr, "CLodObjectFactory");
                        csObj.Delegate = true;
                        IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName());

                        if (csObjClassFactory != null)
                        {
                            csObj.Delegate = true;
                            csObj          = csObjClassFactory.Create() as EarthView.World.Spatial3D.ModelManager.LodObjectFactory;
                            csObj.BindNativeObject(__ptr, "CLodObjectFactory");
                            csObj.Delegate = true;
                        }
                        return(csObj);
                    }
Exemple #2
0
 /// <summary>
 /// 释放工厂句柄
 /// </summary>
 /// <param name=""></param>
 /// <returns></returns>
 public static void ReleaseFactory(EarthView.World.Spatial3D.ModelManager.LodObjectFactory factory)
 {
     EarthView_World_Spatial3D_ModelManager_CLodObjectFactory_releaseFactory_void_CLodObjectFactory(object.Equals(factory, null) ? IntPtr.Zero : factory.NativeObject);
 }