Пример #1
0
                    protected void EarthView_World_Spatial_Atlas_ILayerSelection_setSelectionSymbol_void_ISymbol_Function(IntPtr symbol)
                    {
                        EarthView.World.Spatial.Display.Isymbol csobj_symbol = new EarthView.World.Spatial.Display.Isymbol(CreatedWhenConstruct.CWC_NotToCreate);
                        csobj_symbol.BindNativeObject(symbol, "ISymbol");
                        csobj_symbol.Delegate = true;
                        IClassFactory csobj_symbolClassFactory = GlobalClassFactoryMap.Get(csobj_symbol.GetCppInstanceTypeName());

                        if (csobj_symbolClassFactory != null)
                        {
                            csobj_symbol.Delegate = true;
                            csobj_symbol          = csobj_symbolClassFactory.Create() as EarthView.World.Spatial.Display.Isymbol;
                            csobj_symbol.BindNativeObject(symbol, "ISymbol");
                            csobj_symbol.Delegate = true;
                        }

                        SetSelectionSymbol(csobj_symbol);
                    }
                    protected string EarthView_World_Spatial_Display_ISymbolListener_customSymbolToXml_EVString_ISymbol_Function(IntPtr symbol)
                    {
                        EarthView.World.Spatial.Display.Isymbol csobj_symbol = new EarthView.World.Spatial.Display.Isymbol(CreatedWhenConstruct.CWC_NotToCreate);
                        csobj_symbol.BindNativeObject(symbol, "ISymbol");
                        csobj_symbol.Delegate = true;
                        IClassFactory csobj_symbolClassFactory = GlobalClassFactoryMap.Get(csobj_symbol.GetCppInstanceTypeName());

                        if (csobj_symbolClassFactory != null)
                        {
                            csobj_symbol.Delegate = true;
                            csobj_symbol          = csobj_symbolClassFactory.Create() as EarthView.World.Spatial.Display.Isymbol;
                            csobj_symbol.BindNativeObject(symbol, "ISymbol");
                            csobj_symbol.Delegate = true;
                        }

                        string csret = CustomSymbolToXml(csobj_symbol);

                        return(csret);
                    }
Пример #3
0
                    protected void EarthView_World_Spatial2D_Renderer_CDrawTheme_draw_void_ISpatialDisplay_ISymbol_IFeature_Function(IntPtr ref_display, IntPtr symbol, IntPtr feature)
                    {
                        EarthView.World.Spatial.Display.Ispatialdisplay csobj_ref_display = new EarthView.World.Spatial.Display.Ispatialdisplay(CreatedWhenConstruct.CWC_NotToCreate);
                        csobj_ref_display.BindNativeObject(ref_display, "ISpatialDisplay");
                        csobj_ref_display.Delegate = true;
                        IClassFactory csobj_ref_displayClassFactory = GlobalClassFactoryMap.Get(csobj_ref_display.GetCppInstanceTypeName());

                        if (csobj_ref_displayClassFactory != null)
                        {
                            csobj_ref_display.Delegate = true;
                            csobj_ref_display          = csobj_ref_displayClassFactory.Create() as EarthView.World.Spatial.Display.Ispatialdisplay;
                            csobj_ref_display.BindNativeObject(ref_display, "ISpatialDisplay");
                            csobj_ref_display.Delegate = true;
                        }
                        EarthView.World.Spatial.Display.Isymbol csobj_symbol = new EarthView.World.Spatial.Display.Isymbol(CreatedWhenConstruct.CWC_NotToCreate);
                        csobj_symbol.BindNativeObject(symbol, "ISymbol");
                        csobj_symbol.Delegate = true;
                        IClassFactory csobj_symbolClassFactory = GlobalClassFactoryMap.Get(csobj_symbol.GetCppInstanceTypeName());

                        if (csobj_symbolClassFactory != null)
                        {
                            csobj_symbol.Delegate = true;
                            csobj_symbol          = csobj_symbolClassFactory.Create() as EarthView.World.Spatial.Display.Isymbol;
                            csobj_symbol.BindNativeObject(symbol, "ISymbol");
                            csobj_symbol.Delegate = true;
                        }
                        EarthView.World.Spatial.GeoDataset.Ifeature csobj_feature = new EarthView.World.Spatial.GeoDataset.Ifeature(CreatedWhenConstruct.CWC_NotToCreate);
                        csobj_feature.BindNativeObject(feature, "IFeature");
                        csobj_feature.Delegate = true;
                        IClassFactory csobj_featureClassFactory = GlobalClassFactoryMap.Get(csobj_feature.GetCppInstanceTypeName());

                        if (csobj_featureClassFactory != null)
                        {
                            csobj_feature.Delegate = true;
                            csobj_feature          = csobj_featureClassFactory.Create() as EarthView.World.Spatial.GeoDataset.Ifeature;
                            csobj_feature.BindNativeObject(feature, "IFeature");
                            csobj_feature.Delegate = true;
                        }

                        Draw(csobj_ref_display, csobj_symbol, csobj_feature);
                    }
Пример #4
0
                    public override EarthView.World.Spatial.Display.Isymbol GetSelectionSymbol()
                    {
                        IntPtr __ptr = EarthView_World_Spatial_VectorFileParser_IVectorFileLayerSelection_getSelectionSymbol_ISymbol(this.NativeObject);

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

                        if (csObjClassFactory != null)
                        {
                            csObj.Delegate = true;
                            csObj          = csObjClassFactory.Create() as EarthView.World.Spatial.Display.Isymbol;
                            csObj.BindNativeObject(__ptr, "ISymbol");
                            csObj.Delegate = true;
                        }
                        return(csObj);
                    }
Пример #5
0
                    /// <summary>
                    /// 获取顶点风格
                    /// </summary>
                    /// <param name=""></param>
                    /// <returns>风格</returns>
                    public EarthView.World.Spatial.Display.Isymbol GetVertexSymbol()
                    {
                        IntPtr __ptr = EarthView_World_Spatial2D_Controls_CTrackingGeomItemEx_getVertexSymbol_ISymbol(this.NativeObject);

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

                        if (csObjClassFactory != null)
                        {
                            csObj.Delegate = true;
                            csObj          = csObjClassFactory.Create() as EarthView.World.Spatial.Display.Isymbol;
                            csObj.BindNativeObject(__ptr, "ISymbol");
                            csObj.Delegate = true;
                        }
                        return(csObj);
                    }
                    /// <summary>
                    /// 从XML中恢复用户自定义类型的符号
                    /// </summary>
                    /// <param name="strXml">符号的XML文本</param>
                    public virtual EarthView.World.Spatial.Display.Isymbol CustomSymbolFromXml_NoVirtual(string strXml)
                    {
                        IntPtr __ptr = EarthView_World_Spatial_Display_ISymbolListener_customSymbolFromXml_ISymbol_EVString_NoVirtual(this.NativeObject, strXml);

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

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