Example #1
0
                    /// <summary>
                    /// 获取"工作命令"中的数据
                    /// </summary>
                    /// <param name=""></param>
                    /// <returns>数据</returns>
                    public EarthView.World.Core.BaseObject GetData()
                    {
                        IntPtr __ptr = EarthView_World_Spatial_GeoDataset_CWorkCommand_getData_CBaseObject(this.NativeObject);

                        if (__ptr == IntPtr.Zero)
                        {
                            return(null);
                        }
                        EarthView.World.Core.BaseObject csObj = new EarthView.World.Core.BaseObject(CreatedWhenConstruct.CWC_NotToCreate);
                        csObj.BindNativeObject(__ptr, "CBaseObject");
                        csObj.Delegate = true;
                        IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName());

                        if (csObjClassFactory != null)
                        {
                            csObj.Delegate = true;
                            csObj          = csObjClassFactory.Create() as EarthView.World.Core.BaseObject;
                            csObj.BindNativeObject(__ptr, "CBaseObject");
                            csObj.Delegate = true;
                        }
                        return(csObj);
                    }
Example #2
0
 /// <summary>
 /// 设置"工作命令"数据
 /// </summary>
 /// <param name="data">数据</param>
 /// <returns></returns>
 public void SetData(EarthView.World.Core.BaseObject ref_data)
 {
     EarthView_World_Spatial_GeoDataset_CWorkCommand_setData_void_CBaseObject(this.NativeObject, object.Equals(ref_data, null) ? IntPtr.Zero : ref_data.NativeObject);
 }
 /// <summary>
 /// 消毁对象(延迟消毁)
 /// </summary>
 public void Destroy(EarthView.World.Core.BaseObject obj)
 {
     EarthView_World_Spatial2D_Controls_CDestroyLater_destroy_void_CBaseObject(this.NativeObject, object.Equals(obj, null) ? IntPtr.Zero : obj.NativeObject);
 }