/// <summary> /// 创建空的几何体对象。 /// </summary> /// <param name=""></param> /// <returns></returns> public EarthView.World.Spatial.Geometry.Igeometry CreateEmptyGeometry(EarthView.World.Spatial.Geometry.EVGEOMETRYTYPE type) { IntPtr __ptr = EarthView_World_Spatial_Geometry_CGeometryFactory_createEmptyGeometry_IGeometry_EVGeometryType(this.NativeObject, type); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Spatial.Geometry.Igeometry csObj = new EarthView.World.Spatial.Geometry.Igeometry(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "IGeometry"); IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Spatial.Geometry.Igeometry; csObj.BindNativeObject(__ptr, "IGeometry"); } return(csObj); }
private static extern IntPtr EarthView_World_Spatial_Geometry_CGeometryFactory_createEmptyGeometry_IGeometry_EVGeometryType(IntPtr pNativeObject, EarthView.World.Spatial.Geometry.EVGEOMETRYTYPE type);