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

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

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