protected void EarthView_World_Display_ICachedBitmap_load_void_IBitmap_IPaintDevice_Function(IntPtr bmp, IntPtr ref_destDevice)
                {
                    EarthView.World.Display.Ibitmap csobj_bmp = new EarthView.World.Display.Ibitmap(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_bmp.BindNativeObject(bmp, "IBitmap");
                    csobj_bmp.Delegate = true;
                    IClassFactory csobj_bmpClassFactory = GlobalClassFactoryMap.Get(csobj_bmp.GetCppInstanceTypeName());

                    if (csobj_bmpClassFactory != null)
                    {
                        csobj_bmp.Delegate = true;
                        csobj_bmp          = csobj_bmpClassFactory.Create() as EarthView.World.Display.Ibitmap;
                        csobj_bmp.BindNativeObject(bmp, "IBitmap");
                        csobj_bmp.Delegate = true;
                    }
                    EarthView.World.Display.Ipaintdevice csobj_ref_destDevice = new EarthView.World.Display.Ipaintdevice(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_ref_destDevice.BindNativeObject(ref_destDevice, "IPaintDevice");
                    csobj_ref_destDevice.Delegate = true;
                    IClassFactory csobj_ref_destDeviceClassFactory = GlobalClassFactoryMap.Get(csobj_ref_destDevice.GetCppInstanceTypeName());

                    if (csobj_ref_destDeviceClassFactory != null)
                    {
                        csobj_ref_destDevice.Delegate = true;
                        csobj_ref_destDevice          = csobj_ref_destDeviceClassFactory.Create() as EarthView.World.Display.Ipaintdevice;
                        csobj_ref_destDevice.BindNativeObject(ref_destDevice, "IPaintDevice");
                        csobj_ref_destDevice.Delegate = true;
                    }

                    Load(csobj_bmp, csobj_ref_destDevice);
                }
                protected void EarthView_World_Display_ICachedBitmap_render_void_IPaintDevice_ev_int32_ev_int32_Function(IntPtr destDevice, int x, int y)
                {
                    EarthView.World.Display.Ipaintdevice csobj_destDevice = new EarthView.World.Display.Ipaintdevice(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_destDevice.BindNativeObject(destDevice, "IPaintDevice");
                    csobj_destDevice.Delegate = true;
                    IClassFactory csobj_destDeviceClassFactory = GlobalClassFactoryMap.Get(csobj_destDevice.GetCppInstanceTypeName());

                    if (csobj_destDeviceClassFactory != null)
                    {
                        csobj_destDevice.Delegate = true;
                        csobj_destDevice          = csobj_destDeviceClassFactory.Create() as EarthView.World.Display.Ipaintdevice;
                        csobj_destDevice.BindNativeObject(destDevice, "IPaintDevice");
                        csobj_destDevice.Delegate = true;
                    }

                    Render(csobj_destDevice, x, y);
                }
Beispiel #3
0
 /// <summary>
 /// 加载
 /// </summary>
 /// <param name="bmp">位图</param>
 /// <param name="destDevice">目标设备</param>
 /// <returns></returns>
 public new void Load_NoVirtual(EarthView.World.Display.Ibitmap bmp, EarthView.World.Display.Ipaintdevice ref_destDevice)
 {
     EarthView_World_Display_CCacheBitmap_load_void_IBitmap_IPaintDevice_NoVirtual(this.NativeObject, object.Equals(bmp, null) ? IntPtr.Zero : bmp.NativeObject, object.Equals(ref_destDevice, null) ? IntPtr.Zero : ref_destDevice.NativeObject);
 }
Beispiel #4
0
 /// <summary>
 /// 渲染
 /// </summary>
 /// <param name="destDevice">目标设备</param>
 /// <param name="x">x坐标</param>
 /// <param name="y">y坐标</param>
 /// <returns></returns>
 public override void Render(EarthView.World.Display.Ipaintdevice destDevice, int x, int y)
 {
     EarthView_World_Display_CCacheBitmap_render_void_IPaintDevice_ev_int32_ev_int32(this.NativeObject, object.Equals(destDevice, null) ? IntPtr.Zero : destDevice.NativeObject, x, y);
 }
 /// <summary>
 /// 默认构造函数
 /// </summary>
 /// <param name="device">绘图设备</param>
 /// <param name="symbol">风格</param>
 /// <param name="geoElement">地理元素</param>
 /// <param name="value">要素字符</param>
 /// <returns></returns>
 public void Draw(EarthView.World.Display.Ipaintdevice device, EarthView.World.Spatial.Display.Isymbol symbol, EarthView.World.Spatial.GeoElement geoElement, string value)
 {
     EarthView_World_Spatial_CLabelDrawAlgorithm_draw_void_IPaintDevice_ISymbol_CGeoElement_EarthView_World_Core_ev_string(this.NativeObject, object.Equals(device, null) ? IntPtr.Zero : device.NativeObject, object.Equals(symbol, null) ? IntPtr.Zero : symbol.NativeObject, object.Equals(geoElement, null) ? IntPtr.Zero : geoElement.NativeObject, value);
 }
 /// <summary>
 /// 渲染
 /// </summary>
 /// <param name="destDevice">目标设备</param>
 /// <param name="x">x坐标</param>
 /// <param name="y">y坐标</param>
 /// <returns></returns>
 public virtual void Render_NoVirtual(EarthView.World.Display.Ipaintdevice destDevice, int x, int y)
 {
     EarthView_World_Display_ICachedBitmap_render_void_IPaintDevice_ev_int32_ev_int32_NoVirtual(this.NativeObject, object.Equals(destDevice, null) ? IntPtr.Zero : destDevice.NativeObject, x, y);
 }