/// <summary> /// 创建EarthView::World::Spatial3D::Dataset::CResourceGeometry对象 /// </summary> /// <param name=""></param> /// <returns>EarthView::World::Spatial3D::Dataset::CResourceGeometry 对象</returns> public EarthView.World.Spatial3D.Dataset.ResourceGeometry CreateInstance() { IntPtr __ptr = EarthView_World_Spatial3D_Dataset_CResourceGeometryFactory_createInstance_CResourceGeometry(this.NativeObject); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Spatial3D.Dataset.ResourceGeometry csObj = new EarthView.World.Spatial3D.Dataset.ResourceGeometry(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "CResourceGeometry"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Spatial3D.Dataset.ResourceGeometry; csObj.BindNativeObject(__ptr, "CResourceGeometry"); csObj.Delegate = true; } return(csObj); }
/// <summary> /// 释放EarthView::World::Spatial3D::Dataset::CResourceGeometry对象 /// </summary> /// <param name="geom">需要释放的对象</param> /// <returns></returns> public void ReleaseInstance(EarthView.World.Spatial3D.Dataset.ResourceGeometry geom) { EarthView_World_Spatial3D_Dataset_CResourceGeometryFactory_releaseInstance_void_CResourceGeometry(this.NativeObject, object.Equals(geom, null) ? IntPtr.Zero : geom.NativeObject); }