예제 #1
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);
                    }
예제 #2
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);
                    }