Exemple #1
0
                    /// <summary>
                    /// 线状符号的转化
                    /// </summary>
                    /// <param name="pLineSymbol">线状符号</param>
                    /// <param name="dPageScale">纸张比例尺</param>
                    /// <returns></returns>
                    public EarthView.World.Spatial.Display.LineSymbol ResetLineSymbolWidth(EarthView.World.Spatial.Display.LineSymbol pLineSymbol, double dPageScale)
                    {
                        IntPtr __ptr = EarthView_World_Spatial_Carto_CSymbolConvertor_resetLineSymbolWidth_CLineSymbol_CLineSymbol_ev_real64(this.NativeObject, object.Equals(pLineSymbol, null) ? IntPtr.Zero : pLineSymbol.NativeObject, dPageScale);

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

                        if (csObjClassFactory != null)
                        {
                            csObj.Delegate = true;
                            csObj          = csObjClassFactory.Create() as EarthView.World.Spatial.Display.LineSymbol;
                            csObj.BindNativeObject(__ptr, "CLineSymbol");
                            csObj.Delegate = true;
                        }
                        return(csObj);
                    }
                    /// <summary>
                    /// 获取显示范围框风格
                    /// </summary>
                    /// <param name="pxy">地图控件代理</param>
                    /// <returns></returns>
                    public EarthView.World.Spatial.Display.LineSymbol GetRectSymbol()
                    {
                        IntPtr __ptr = EarthView_World_Spatial2D_Controls_CMapEagleEye_getRectSymbol_CLineSymbol(this.NativeObject);

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

                        if (csObjClassFactory != null)
                        {
                            csObj.Delegate = true;
                            csObj          = csObjClassFactory.Create() as EarthView.World.Spatial.Display.LineSymbol;
                            csObj.BindNativeObject(__ptr, "CLineSymbol");
                            csObj.Delegate = true;
                        }
                        return(csObj);
                    }