/// <summary>
                /// 深度拷贝
                /// </summary>
                /// <returns>新对象指针</returns>
                public EarthView.World.Spatial.TileLevel Clone()
                {
                    IntPtr __ptr = EarthView_World_Spatial_CTileLevel_clone_CTileLevel(this.NativeObject);

                    if (__ptr == IntPtr.Zero)
                    {
                        return(null);
                    }
                    EarthView.World.Spatial.TileLevel csObj = new EarthView.World.Spatial.TileLevel(CreatedWhenConstruct.CWC_NotToCreate);
                    csObj.BindNativeObject(__ptr, "CTileLevel");
                    IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName());

                    if (csObjClassFactory != null)
                    {
                        csObj.Delegate = true;
                        csObj          = csObjClassFactory.Create() as EarthView.World.Spatial.TileLevel;
                        csObj.BindNativeObject(__ptr, "CTileLevel");
                    }
                    return(csObj);
                }
Esempio n. 2
0
 /// <summary>
 /// 设置瓦片级别信息
 /// </summary>
 /// <param name="tileLevel">瓦片级别信息对象</param>
 /// <returns></returns>
 public void SetTileLevel(EarthView.World.Spatial.TileLevel tileLevel)
 {
     EarthView_World_Spatial_CTileRule_setTileLevel_void_CTileLevel(this.NativeObject, object.Equals(tileLevel, null) ? IntPtr.Zero : tileLevel.NativeObject);
 }