Esempio n. 1
0
                /// <summary>
                /// 构造函数
                /// </summary>
                /// <param name="layer">图层对象</param>
                /// <param name="id">id</param>
                /// <param name="operType">操作类型</param>
                /// <returns></returns>
                public CmdDataBase(EarthView.World.Spatial3D.Atlas.Iglobelayer ref_layer, uint id, EarthView.World.Spatial3D.COMMANDOPERTYPE operType) : base(CreatedWhenConstruct.CWC_NotToCreate)
                {
                    NameValuePairList list           = new NameValuePairList();
                    BasePtr           valueref_layer = new BasePtr(ref_layer);

                    list.Add("ref_layer", valueref_layer.PtrVal);
                    BasePtr valueid = new BasePtr(id);

                    list.Add("id", valueid.PtrVal);
                    BasePtr valueoperType = new BasePtr(operType);

                    list.Add("operType", valueoperType.PtrVal);
                    Create("CCmdDataBase", list);
                    RegisterCallBack();
                    this.needDispose = true;
                    GlobalTraceInfoMap.Put(this);
                }
                protected void EarthView_World_Spatial3D_CLayer3DEditorListener_onStartEditing_void_IGlobeLayer_Function(IntPtr pLayer)
                {
                    EarthView.World.Spatial3D.Atlas.Iglobelayer csobj_pLayer = new EarthView.World.Spatial3D.Atlas.Iglobelayer(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_pLayer.BindNativeObject(pLayer, "IGlobeLayer");
                    csobj_pLayer.Delegate = true;
                    IClassFactory csobj_pLayerClassFactory = GlobalClassFactoryMap.Get(csobj_pLayer.GetCppInstanceTypeName());

                    if (csobj_pLayerClassFactory != null)
                    {
                        csobj_pLayer.Delegate = true;
                        csobj_pLayer          = csobj_pLayerClassFactory.Create() as EarthView.World.Spatial3D.Atlas.Iglobelayer;
                        csobj_pLayer.BindNativeObject(pLayer, "IGlobeLayer");
                        csobj_pLayer.Delegate = true;
                    }

                    OnStartEditing(csobj_pLayer);
                }
                protected void EarthView_World_Spatial3D_CLayer3DEditorListener_onEndCommitModel_void_IGlobeLayer_EntityDatasetOperType_ev_uint32_ev_uint32_Function(IntPtr pLayer, EarthView.World.Spatial3D.Dataset.ENTITYDATASETOPERTYPE operType, uint cacheID, uint dbID)
                {
                    EarthView.World.Spatial3D.Atlas.Iglobelayer csobj_pLayer = new EarthView.World.Spatial3D.Atlas.Iglobelayer(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_pLayer.BindNativeObject(pLayer, "IGlobeLayer");
                    csobj_pLayer.Delegate = true;
                    IClassFactory csobj_pLayerClassFactory = GlobalClassFactoryMap.Get(csobj_pLayer.GetCppInstanceTypeName());

                    if (csobj_pLayerClassFactory != null)
                    {
                        csobj_pLayer.Delegate = true;
                        csobj_pLayer          = csobj_pLayerClassFactory.Create() as EarthView.World.Spatial3D.Atlas.Iglobelayer;
                        csobj_pLayer.BindNativeObject(pLayer, "IGlobeLayer");
                        csobj_pLayer.Delegate = true;
                    }

                    OnEndCommitModel(csobj_pLayer, operType, cacheID, dbID);
                }
Esempio n. 4
0
                    /// <summary>
                    /// 构造函数
                    /// </summary>
                    /// <param name="ref_layer">三维数据库型矢量图层</param>
                    /// <param name="id">记录ID</param>
                    /// <returns></returns>
                    public SelectedGeometryStringInterface(EarthView.World.Spatial3D.Atlas.Iglobelayer ref_layer, uint id) : base(CreatedWhenConstruct.CWC_NotToCreate)
                    {
                        NameValuePairList list           = new NameValuePairList();
                        BasePtr           valueref_layer = new BasePtr(ref_layer);

                        list.Add("ref_layer", valueref_layer.PtrVal);
                        BasePtr valueid = new BasePtr(id);

                        list.Add("id", valueid.PtrVal);
                        Create("CSelectedGeometryStringInterfaceProxy", list);
                        if (!"EarthView.World.Spatial3D.Atlas.SelectedGeometryStringInterface".Equals(((Object)this).GetType().ToString()))
                        {
                            this.SetCustomExtend(true);
                        }
                        RegisterCallBack();
                        this.needDispose = true;
                        GlobalTraceInfoMap.Put(this);
                    }
                /// <summary>
                /// 根据三维图层获得该图层的选择集
                /// </summary>
                /// <param name="layer">三维图层</param>
                /// <returns>三维图层选择集</returns>
                public EarthView.World.Spatial.Atlas.Ilayerselection Get(EarthView.World.Spatial3D.Atlas.Iglobelayer layer)
                {
                    IntPtr __ptr = EarthView_World_Spatial3D_CGlobeSelection_get_ILayerSelection_IGlobeLayer(this.NativeObject, object.Equals(layer, null) ? IntPtr.Zero : layer.NativeObject);

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

                    if (csObjClassFactory != null)
                    {
                        csObj.Delegate = true;
                        csObj          = csObjClassFactory.Create() as EarthView.World.Spatial.Atlas.Ilayerselection;
                        csObj.BindNativeObject(__ptr, "ILayerSelection");
                        csObj.Delegate = true;
                    }
                    return(csObj);
                }
                /// <summary>
                /// 根据序号获得三维图层
                /// </summary>
                /// <param name="index">序号</param>
                /// <returns>三维图层</returns>
                public EarthView.World.Spatial3D.Atlas.Iglobelayer Get(uint index)
                {
                    IntPtr __ptr = EarthView_World_Spatial3D_CGlobeSelection_get_IGlobeLayer_ev_uint32(this.NativeObject, index);

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

                    if (csObjClassFactory != null)
                    {
                        csObj.Delegate = true;
                        csObj          = csObjClassFactory.Create() as EarthView.World.Spatial3D.Atlas.Iglobelayer;
                        csObj.BindNativeObject(__ptr, "IGlobeLayer");
                        csObj.Delegate = true;
                    }
                    return(csObj);
                }
 /// <summary>
 /// 开始编辑响应函数
 /// </summary>
 /// <param name=""></param>
 /// <returns></returns>
 public virtual void OnStartEditing_NoVirtual(EarthView.World.Spatial3D.Atlas.Iglobelayer pLayer)
 {
     EarthView_World_Spatial3D_CLayer3DEditorListener_onStartEditing_void_IGlobeLayer_NoVirtual(this.NativeObject, object.Equals(pLayer, null) ? IntPtr.Zero : pLayer.NativeObject);
 }
 /// <summary>
 /// meshxg插入操作
 /// </summary>
 /// <param name="cacheID">未提交前的ID</param>
 /// <param name="dbID">提交后在数据库中的ID</param>
 /// <returns></returns>
 public virtual void OnInsertMeshxg(EarthView.World.Spatial3D.Atlas.Iglobelayer pLayer, uint cacheID, uint recordID)
 {
     EarthView_World_Spatial3D_CLayer3DEditorListener_onInsertMeshxg_void_IGlobeLayer_ev_uint32_ev_uint32(this.NativeObject, object.Equals(pLayer, null) ? IntPtr.Zero : pLayer.NativeObject, cacheID, recordID);
 }
 /// <summary>
 /// 模型操作提交
 /// </summary>
 /// <param name="operType">模型操作类别</param>
 /// <param name="cacheID">未提交前模型的ID</param>
 /// <param name="dbID">提交后在数据库中的ID</param>
 /// <returns></returns>
 public virtual void OnEndCommitModel(EarthView.World.Spatial3D.Atlas.Iglobelayer pLayer, EarthView.World.Spatial3D.Dataset.ENTITYDATASETOPERTYPE operType, uint cacheID, uint dbID)
 {
     EarthView_World_Spatial3D_CLayer3DEditorListener_onEndCommitModel_void_IGlobeLayer_EntityDatasetOperType_ev_uint32_ev_uint32(this.NativeObject, object.Equals(pLayer, null) ? IntPtr.Zero : pLayer.NativeObject, operType, cacheID, dbID);
 }
                /// <summary>
                /// 查询是否存在该三维图层选择集记录
                /// </summary>
                /// <param name="layer">三维图层</param>
                /// <returns>存在返回true,否则返回false</returns>
                public bool Exist(EarthView.World.Spatial3D.Atlas.Iglobelayer layer)
                {
                    byte ret = EarthView_World_Spatial3D_CGlobeSelection_exist_ev_bool_IGlobeLayer(this.NativeObject, object.Equals(layer, null) ? IntPtr.Zero : layer.NativeObject);

                    return(Convert.ToBoolean(ret));
                }
                /// <summary>
                /// 增加一条三维图层选择集记录
                /// </summary>
                /// <param name="ref_layer">三维图层</param>
                /// <param name="ref_selection">图层选择集</param>
                /// <returns>添加成功返回true,失败返回false</returns>
                public bool Add(EarthView.World.Spatial3D.Atlas.Iglobelayer ref_layer, EarthView.World.Spatial.Atlas.Ilayerselection ref_selection)
                {
                    byte ret = EarthView_World_Spatial3D_CGlobeSelection_add_ev_bool_IGlobeLayer_ILayerSelection(this.NativeObject, object.Equals(ref_layer, null) ? IntPtr.Zero : ref_layer.NativeObject, object.Equals(ref_selection, null) ? IntPtr.Zero : ref_selection.NativeObject);

                    return(Convert.ToBoolean(ret));
                }
Esempio n. 12
0
 /// <summary>
 /// 设置图层对象
 /// </summary>
 /// <param name=""></param>
 /// <returns>图层对象</returns>
 public void SetLayer(EarthView.World.Spatial3D.Atlas.Iglobelayer ref_pLayer)
 {
     EarthView_World_Spatial3D_CCmdDataBase_setLayer_void_IGlobeLayer(this.NativeObject, object.Equals(ref_pLayer, null) ? IntPtr.Zero : ref_pLayer.NativeObject);
 }
Esempio n. 13
0
                    /// <summary>
                    /// 获取图层名
                    /// </summary>
                    /// <param name="ref_layer">图层</param>
                    /// <param name="id">元素id</param>
                    /// <returns>返回是否成功</returns>
                    public bool UpdateParams(EarthView.World.Spatial3D.Atlas.Iglobelayer ref_layer, uint id)
                    {
                        byte ret = EarthView_World_Spatial3D_Atlas_CSelectedGeometryStringInterface_updateParams_ev_bool_IGlobeLayer_ev_uint32(this.NativeObject, object.Equals(ref_layer, null) ? IntPtr.Zero : ref_layer.NativeObject, id);

                        return(Convert.ToBoolean(ret));
                    }