/// <summary>
                /// 构造函数
                /// </summary>
                /// <param name="tilepathrule">瓦片路径规则</param>
                /// <returns></returns>
                public TilePath(EarthView.World.Spatial.TilePathRule tilepathrule) : base(CreatedWhenConstruct.CWC_NotToCreate)
                {
                    NameValuePairList list = new NameValuePairList();
                    BasePtr           valuetilepathrule = new BasePtr(tilepathrule);

                    list.Add("tilepathrule", valuetilepathrule.PtrVal);
                    Create("CTilePath", list);
                    RegisterCallBack();
                    this.needDispose = true;
                    GlobalTraceInfoMap.Put(this);
                }
                protected IntPtr EarthView_World_Spatial_CTilePathRule_clone_CTilePathRule_Function()
                {
                    EarthView.World.Spatial.TilePathRule csret = Clone();

                    if (!object.Equals(csret, null))
                    {
                        csret.Delegate = true;
                        return(csret.NativeObject);
                    }
                    else
                    {
                        return(IntPtr.Zero);
                    }
                }
                /// <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);
                }
 /// <summary>
 /// 设置瓦片路径规则
 /// </summary>
 /// <param name="tilepathrule">瓦片路径规则对象</param>
 /// <returns></returns>
 public void SetTilePathRule(EarthView.World.Spatial.TilePathRule tilepathrule)
 {
     EarthView_World_Spatial_CTilePath_setTilePathRule_void_CTilePathRule(this.NativeObject, object.Equals(tilepathrule, null) ? IntPtr.Zero : tilepathrule.NativeObject);
 }