protected void EarthView_World_Spatial2D_Display_IFeatureRenderer_draw_void_IDisplay2D_IFeature_Function(IntPtr display, IntPtr feature)
                    {
                        EarthView.World.Display.Idisplay2d csobj_display = new EarthView.World.Display.Idisplay2d(CreatedWhenConstruct.CWC_NotToCreate);
                        csobj_display.BindNativeObject(display, "IDisplay2D");
                        csobj_display.Delegate = true;
                        IClassFactory csobj_displayClassFactory = GlobalClassFactoryMap.Get(csobj_display.GetCppInstanceTypeName());

                        if (csobj_displayClassFactory != null)
                        {
                            csobj_display.Delegate = true;
                            csobj_display          = csobj_displayClassFactory.Create() as EarthView.World.Display.Idisplay2d;
                            csobj_display.BindNativeObject(display, "IDisplay2D");
                            csobj_display.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_display, csobj_feature);
                    }
Exemplo n.º 2
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);
                    }
Exemplo n.º 3
0
                    /// <summary>
                    /// 下一个结果
                    /// </summary>
                    /// <returns>如果移动到最后,返回NULL;否则,返回值有效</returns>
                    public virtual EarthView.World.Spatial.GeoDataset.Ifeature Next_NoVirtual()
                    {
                        IntPtr __ptr = EarthView_World_Spatial_GeoDataset_IFeatureIterator_next_IFeature_NoVirtual(this.NativeObject);

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

                        if (csObjClassFactory != null)
                        {
                            csObj.Delegate = true;
                            csObj          = csObjClassFactory.Create() as EarthView.World.Spatial.GeoDataset.Ifeature;
                            csObj.BindNativeObject(__ptr, "IFeature");
                            csObj.Delegate = true;
                        }
                        return(csObj);
                    }
                    /// <summary>
                    /// 返回下一个要素对象
                    /// </summary>
                    /// <param name="bCreateNewOne">是否创建一个新的要素,true需要外部释放</param>
                    /// <returns>获取的要素对象</returns>
                    public EarthView.World.Spatial.GeoDataset.Ifeature Next(bool bCreateNewOne)
                    {
                        IntPtr __ptr = EarthView_World_Spatial3D_Dataset_CWebEntityIterator_next_IFeature_ev_bool(this.NativeObject, Convert.ToByte(bCreateNewOne));

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

                        if (csObjClassFactory != null)
                        {
                            csObj.Delegate = true;
                            csObj          = csObjClassFactory.Create() as EarthView.World.Spatial.GeoDataset.Ifeature;
                            csObj.BindNativeObject(__ptr, "IFeature");
                            csObj.Delegate = true;
                        }
                        return(csObj);
                    }
Exemplo n.º 5
0
                    /// <summary>
                    /// 获取要素
                    /// </summary>
                    /// <param name=""></param>
                    /// <returns>要素对象</returns>
                    public EarthView.World.Spatial.GeoDataset.Ifeature GetFeature()
                    {
                        IntPtr __ptr = EarthView_World_Spatial3D_Dataset_CModelDatasetEditEvent_getFeature_IFeature(this.NativeObject);

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

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