/// <summary> /// 克隆 /// </summary> /// <returns>克隆对象的指针</returns> public override EarthView.World.Spatial.TilePathRule Clone() { IntPtr __ptr = EarthView_World_Spatial_CTileDBPathRule_clone_CTilePathRule(this.NativeObject); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Spatial.TilePathRule csObj = new EarthView.World.Spatial.TilePathRule(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "CTilePathRule"); IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Spatial.TilePathRule; csObj.BindNativeObject(__ptr, "CTilePathRule"); } return(csObj); }
/// <summary> /// 生成瓦片路径规则 /// </summary> /// <param name="dataType">数据类型,影像、矢量、DEM</param> /// <param name="tilePathType">路径类型,离散文件、库文件</param> /// <param name="tileModeType">模式,WGS84、Mercator还是古唐</param> /// <returns></returns> public static EarthView.World.Spatial.TilePathRule CreateTilePathRule(EarthView.World.Spatial.EVTILEDATATYPE dataType, EarthView.World.Spatial.EVTILEPATHTYPE tilePathType, EarthView.World.Spatial.EVTILEMODETYPE tileModeType) { IntPtr __ptr = EarthView_World_Spatial_CTilePathRuleFactory_createTilePathRule_CTilePathRule_EVTileDataType_EVTilePathType_EVTileModeType(dataType, tilePathType, tileModeType); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Spatial.TilePathRule csObj = new EarthView.World.Spatial.TilePathRule(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "CTilePathRule"); IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Spatial.TilePathRule; csObj.BindNativeObject(__ptr, "CTilePathRule"); } return(csObj); }