protected IntPtr EarthView_World_Spatial_Display_CColorRampFactory_createColorRampFromXmlElement_CColorRamp_CXmlElement_Function(IntPtr element) { EarthView.World.Core.XmlElement csobj_element = new EarthView.World.Core.XmlElement(CreatedWhenConstruct.CWC_NotToCreate); csobj_element.BindNativeObject(element, "CXmlElement"); csobj_element.Delegate = true; IClassFactory csobj_elementClassFactory = GlobalClassFactoryMap.Get(csobj_element.GetCppInstanceTypeName()); if (csobj_elementClassFactory != null) { csobj_element.Delegate = true; csobj_element = csobj_elementClassFactory.Create() as EarthView.World.Core.XmlElement; csobj_element.BindNativeObject(element, "CXmlElement"); csobj_element.Delegate = true; } EarthView.World.Spatial.Display.ColorRamp csret = CreateColorRampFromXmlElement(ref csobj_element); if (!object.Equals(csret, null)) { csret.Delegate = true; return(csret.NativeObject); } else { return(IntPtr.Zero); } }
public EarthView.World.Core.XmlElement ToXmlElement() { IntPtr __ptr = EarthView_World_Spatial2D_Raster_CRasterHistogram_toXmlElement_CXmlElement(this.NativeObject); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Core.XmlElement csObj = new EarthView.World.Core.XmlElement(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "CXmlElement"); IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Core.XmlElement; csObj.BindNativeObject(__ptr, "CXmlElement"); } return(csObj); }
/// <summary> /// 从xml要素中恢复一个图层 /// </summary> /// <param name=""></param> /// <returns>图层</returns> public override EarthView.World.Spatial.Atlas.Ilayer CreateInstance(ref EarthView.World.Core.XmlElement element) { IntPtr __ptr = EarthView_World_Spatial2D_Atlas_CLayerFactory_createInstance_ILayer_CXmlElement(this.NativeObject, object.Equals(element, null) ? IntPtr.Zero : element.NativeObject); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Spatial.Atlas.Ilayer csObj = new EarthView.World.Spatial.Atlas.Ilayer(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "ILayer"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Spatial.Atlas.Ilayer; csObj.BindNativeObject(__ptr, "ILayer"); csObj.Delegate = true; } return(csObj); }
public void FromXmlElement(EarthView.World.Core.XmlElement element) { EarthView_World_Spatial2D_Raster_CRasterHistogram_fromXmlElement_void_CXmlElement(this.NativeObject, object.Equals(element, null) ? IntPtr.Zero : element.NativeObject); }
/// <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); }
public static EarthView.World.Spatial2D.Raster.Irasterrenderer CreateRendererFromXmlElement(ref EarthView.World.Core.XmlElement element) { IntPtr __ptr = EarthView_World_Spatial2D_Raster_CRasterRendererFactory_createRendererFromXmlElement_IRasterRenderer_CXmlElement(object.Equals(element, null) ? IntPtr.Zero : element.NativeObject); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Spatial2D.Raster.Irasterrenderer csObj = new EarthView.World.Spatial2D.Raster.Irasterrenderer(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "IRasterRenderer"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Spatial2D.Raster.Irasterrenderer; csObj.BindNativeObject(__ptr, "IRasterRenderer"); csObj.Delegate = true; } return(csObj); }
/// <summary> /// 通过xmlElement恢复Color信息 /// </summary> /// <param name="xmlText">xmlElement字符串</param> /// <returns></returns> public virtual EarthView.World.Spatial.Display.ColorRamp CreateColorRampFromXmlElement(ref EarthView.World.Core.XmlElement element) { IntPtr __ptr = EarthView_World_Spatial_Display_CColorRampFactory_createColorRampFromXmlElement_CColorRamp_CXmlElement(this.NativeObject, object.Equals(element, null) ? IntPtr.Zero : element.NativeObject); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Spatial.Display.ColorRamp csObj = new EarthView.World.Spatial.Display.ColorRamp(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "CColorRamp"); IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Spatial.Display.ColorRamp; csObj.BindNativeObject(__ptr, "CColorRamp"); } return(csObj); }
/// <summary> /// 从xml元素中恢复出来一个map /// </summary> /// <param name="element">xml要素</param> /// <returns>地图</returns> public new EarthView.World.Spatial.Atlas.Imap CreateMapFromXMLElement_NoVirtual(ref EarthView.World.Core.XmlElement element) { IntPtr __ptr = EarthView_World_Spatial2D_Atlas_CMapFactory_createMapFromXMLElement_IMap_CXmlElement_NoVirtual(this.NativeObject, object.Equals(element, null) ? IntPtr.Zero : element.NativeObject); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Spatial.Atlas.Imap csObj = new EarthView.World.Spatial.Atlas.Imap(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "IMap"); IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Spatial.Atlas.Imap; csObj.BindNativeObject(__ptr, "IMap"); } return(csObj); }