Beispiel #1
0
                    protected void EarthView_World_Spatial2D_Renderer_CDrawTheme_startDraw_void_ISpatialDisplay_ITheme_Function(IntPtr ref_display, IntPtr ref_theme)
                    {
                        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.Theme.Itheme csobj_ref_theme = new EarthView.World.Spatial.Theme.Itheme(CreatedWhenConstruct.CWC_NotToCreate);
                        csobj_ref_theme.BindNativeObject(ref_theme, "ITheme");
                        csobj_ref_theme.Delegate = true;
                        IClassFactory csobj_ref_themeClassFactory = GlobalClassFactoryMap.Get(csobj_ref_theme.GetCppInstanceTypeName());

                        if (csobj_ref_themeClassFactory != null)
                        {
                            csobj_ref_theme.Delegate = true;
                            csobj_ref_theme          = csobj_ref_themeClassFactory.Create() as EarthView.World.Spatial.Theme.Itheme;
                            csobj_ref_theme.BindNativeObject(ref_theme, "ITheme");
                            csobj_ref_theme.Delegate = true;
                        }

                        StartDraw(csobj_ref_display, csobj_ref_theme);
                    }
Beispiel #2
0
                    public EarthView.World.Spatial.Theme.Itheme GetLayerTheme()
                    {
                        IntPtr __ptr = EarthView_World_Spatial3D_Atlas_CVectorCache3DLayerInfo_getLayerTheme_ITheme(this.NativeObject);

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

                        if (csObjClassFactory != null)
                        {
                            csObj.Delegate = true;
                            csObj          = csObjClassFactory.Create() as EarthView.World.Spatial.Theme.Itheme;
                            csObj.BindNativeObject(__ptr, "ITheme");
                            csObj.Delegate = true;
                        }
                        return(csObj);
                    }
Beispiel #3
0
                    /// <summary>
                    /// 通过xmlElement恢复专题图信息
                    /// </summary>
                    /// <param name="xmlText">xmlElement字符串</param>
                    /// <returns></returns>
                    public EarthView.World.Spatial.Theme.Itheme CreateThemeFromXmlElement(ref EarthView.World.Core.XmlElement element)
                    {
                        IntPtr __ptr = EarthView_World_Spatial_Theme_CThemeFactory_createThemeFromXmlElement_ITheme_CXmlElement(this.NativeObject, object.Equals(element, null) ? IntPtr.Zero : element.NativeObject);

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

                        if (csObjClassFactory != null)
                        {
                            csObj.Delegate = true;
                            csObj          = csObjClassFactory.Create() as EarthView.World.Spatial.Theme.Itheme;
                            csObj.BindNativeObject(__ptr, "ITheme");
                            csObj.Delegate = true;
                        }
                        return(csObj);
                    }
                    /// <summary>
                    /// 获取专题图
                    /// </summary>
                    /// <param name=""></param>
                    /// <returns>返回专题图</returns>
                    public virtual EarthView.World.Spatial.Theme.Itheme GetTheme_NoVirtual()
                    {
                        IntPtr __ptr = EarthView_World_Spatial2D_Display_IFeatureRenderer_getTheme_ITheme_NoVirtual(this.NativeObject);

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

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