/// <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);
                }
예제 #2
0
                    /// <summary>
                    /// 获取指定索引的图层选择集
                    /// </summary>
                    /// <param name="index">索引</param>
                    /// <returns>图层选择集</returns>
                    public override EarthView.World.Spatial.Atlas.Ilayerselection GetLayerSelection(uint index)
                    {
                        IntPtr __ptr = EarthView_World_Spatial2D_Atlas_CMapSelection_getLayerSelection_ILayerSelection_ev_uint32(this.NativeObject, index);

                        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);
                    }