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);
                        }
                    }
Exemple #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);
                    }
                    protected byte EarthView_World_Graphic_RTShaderSystem_CProgramProcessor_compactVsOutputs_bool_CFunction_CFunction_Function(IntPtr vsMain, IntPtr fsMain)
                    {
                        EarthView.World.Graphic.Rtshadersystem.Function csobj_vsMain = new EarthView.World.Graphic.Rtshadersystem.Function(CreatedWhenConstruct.CWC_NotToCreate);
                        csobj_vsMain.BindNativeObject(vsMain, "CFunction");
                        csobj_vsMain.Delegate = true;
                        IClassFactory csobj_vsMainClassFactory = GlobalClassFactoryMap.Get(csobj_vsMain.GetCppInstanceTypeName());

                        if (csobj_vsMainClassFactory != null)
                        {
                            csobj_vsMain.Delegate = true;
                            csobj_vsMain          = csobj_vsMainClassFactory.Create() as EarthView.World.Graphic.Rtshadersystem.Function;
                            csobj_vsMain.BindNativeObject(vsMain, "CFunction");
                            csobj_vsMain.Delegate = true;
                        }
                        EarthView.World.Graphic.Rtshadersystem.Function csobj_fsMain = new EarthView.World.Graphic.Rtshadersystem.Function(CreatedWhenConstruct.CWC_NotToCreate);
                        csobj_fsMain.BindNativeObject(fsMain, "CFunction");
                        csobj_fsMain.Delegate = true;
                        IClassFactory csobj_fsMainClassFactory = GlobalClassFactoryMap.Get(csobj_fsMain.GetCppInstanceTypeName());

                        if (csobj_fsMainClassFactory != null)
                        {
                            csobj_fsMain.Delegate = true;
                            csobj_fsMain          = csobj_fsMainClassFactory.Create() as EarthView.World.Graphic.Rtshadersystem.Function;
                            csobj_fsMain.BindNativeObject(fsMain, "CFunction");
                            csobj_fsMain.Delegate = true;
                        }

                        bool csret = CompactVsOutputs(csobj_vsMain, csobj_fsMain);

                        return(Convert.ToByte(csret));
                    }
                protected IntPtr EarthView_World_Graphic_CParticleEmitterFactory_createEmitter_CParticleEmitter_CParticleSystem_Function(IntPtr psys)
                {
                    EarthView.World.Graphic.ParticleSystem csobj_psys = new EarthView.World.Graphic.ParticleSystem(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_psys.BindNativeObject(psys, "CParticleSystem");
                    csobj_psys.Delegate = true;
                    IClassFactory csobj_psysClassFactory = GlobalClassFactoryMap.Get(csobj_psys.GetCppInstanceTypeName());

                    if (csobj_psysClassFactory != null)
                    {
                        csobj_psys.Delegate = true;
                        csobj_psys          = csobj_psysClassFactory.Create() as EarthView.World.Graphic.ParticleSystem;
                        csobj_psys.BindNativeObject(psys, "CParticleSystem");
                        csobj_psys.Delegate = true;
                    }

                    EarthView.World.Graphic.ParticleEmitter csret = CreateEmitter(csobj_psys);

                    if (!object.Equals(csret, null))
                    {
                        csret.Delegate = true;
                        return(csret.NativeObject);
                    }
                    else
                    {
                        return(IntPtr.Zero);
                    }
                }
                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);
                }
                /// <summary>
                /// 创建简单的线材质
                /// </summary>
                /// <param name=""></param>
                /// <param name="groupName">资源组名称</param>
                /// <returns>材质</returns>
                public static EarthView.World.Graphic.MaterialPtr ColorToLineMaterial(EarthView.World.Spatial.Display.Icolor color, ref string symbolName, string groupName)
                {
                    IntPtr __ptrsymbolName = Marshal.StringToHGlobalAnsi(symbolName);
                    IntPtr pTmpsymbolName  = __ptrsymbolName;

                    IntPtr __ptr = EarthView_World_Geometry3D_CSymbolToMaterial_colorToLineMaterial_CMaterialPtr_IColor_EVString_EVString(object.Equals(color, null) ? IntPtr.Zero : color.NativeObject, ref __ptrsymbolName, groupName);

                    Marshal.FreeHGlobal(pTmpsymbolName);
                    symbolName = Marshal.PtrToStringAnsi(__ptrsymbolName);
                    ClassFactory.FreeString(ref __ptrsymbolName);
                    if (__ptr == IntPtr.Zero)
                    {
                        return(null);
                    }
                    EarthView.World.Graphic.MaterialPtr csObj = new EarthView.World.Graphic.MaterialPtr(CreatedWhenConstruct.CWC_NotToCreate);
                    csObj.BindNativeObject(__ptr, "CMaterialPtr");
                    IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName());

                    if (csObjClassFactory != null)
                    {
                        csObj.Delegate = true;
                        csObj          = csObjClassFactory.Create() as EarthView.World.Graphic.MaterialPtr;
                        csObj.BindNativeObject(__ptr, "CMaterialPtr");
                    }
                    return(csObj);
                }
                    protected IntPtr EarthView_World_Spatial_Atlas_ISceneFactory_createScene_IScene_CDataStream_Function(IntPtr stream)
                    {
                        EarthView.World.Core.DataStream csobj_stream = new EarthView.World.Core.DataStream(CreatedWhenConstruct.CWC_NotToCreate);
                        csobj_stream.BindNativeObject(stream, "CDataStream");
                        csobj_stream.Delegate = true;
                        IClassFactory csobj_streamClassFactory = GlobalClassFactoryMap.Get(csobj_stream.GetCppInstanceTypeName());

                        if (csobj_streamClassFactory != null)
                        {
                            csobj_stream.Delegate = true;
                            csobj_stream          = csobj_streamClassFactory.Create() as EarthView.World.Core.DataStream;
                            csobj_stream.BindNativeObject(stream, "CDataStream");
                            csobj_stream.Delegate = true;
                        }

                        EarthView.World.Spatial.Atlas.Iscene csret = CreateScene(csobj_stream);

                        if (!object.Equals(csret, null))
                        {
                            csret.Delegate = true;
                            return(csret.NativeObject);
                        }
                        else
                        {
                            return(IntPtr.Zero);
                        }
                    }
Exemple #8
0
                    protected IntPtr EarthView_World_Spatial_VectorFileParser_CFeatureClassDriver_openDataset_IDataset_IFileDataSource_EVString_Function(IntPtr pDataSource, ref IntPtr name)
                    {
                        EarthView.World.Spatial.GeoDataset.Ifiledatasource csobj_pDataSource = new EarthView.World.Spatial.GeoDataset.Ifiledatasource(CreatedWhenConstruct.CWC_NotToCreate);
                        csobj_pDataSource.BindNativeObject(pDataSource, "IFileDataSource");
                        csobj_pDataSource.Delegate = true;
                        IClassFactory csobj_pDataSourceClassFactory = GlobalClassFactoryMap.Get(csobj_pDataSource.GetCppInstanceTypeName());

                        if (csobj_pDataSourceClassFactory != null)
                        {
                            csobj_pDataSource.Delegate = true;
                            csobj_pDataSource          = csobj_pDataSourceClassFactory.Create() as EarthView.World.Spatial.GeoDataset.Ifiledatasource;
                            csobj_pDataSource.BindNativeObject(pDataSource, "IFileDataSource");
                            csobj_pDataSource.Delegate = true;
                        }
                        string strname = Marshal.PtrToStringAnsi(name);

                        ClassFactory.FreeString(ref name);

                        EarthView.World.Spatial.GeoDataset.Idataset csret = OpenDataset(csobj_pDataSource, strname);

                        if (!object.Equals(csret, null))
                        {
                            csret.Delegate = true;
                            return(csret.NativeObject);
                        }
                        else
                        {
                            return(IntPtr.Zero);
                        }
                    }
                    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);
                    }
Exemple #10
0
                    protected byte EarthView_World_Spatial2D_Renderer_CDrawTheme_draw_ev_bool_IFeatureClass_IQueryFilter_Function(IntPtr featureClass, IntPtr filter)
                    {
                        EarthView.World.Spatial.GeoDataset.Ifeatureclass csobj_featureClass = new EarthView.World.Spatial.GeoDataset.Ifeatureclass(CreatedWhenConstruct.CWC_NotToCreate);
                        csobj_featureClass.BindNativeObject(featureClass, "IFeatureClass");
                        csobj_featureClass.Delegate = true;
                        IClassFactory csobj_featureClassClassFactory = GlobalClassFactoryMap.Get(csobj_featureClass.GetCppInstanceTypeName());

                        if (csobj_featureClassClassFactory != null)
                        {
                            csobj_featureClass.Delegate = true;
                            csobj_featureClass          = csobj_featureClassClassFactory.Create() as EarthView.World.Spatial.GeoDataset.Ifeatureclass;
                            csobj_featureClass.BindNativeObject(featureClass, "IFeatureClass");
                            csobj_featureClass.Delegate = true;
                        }
                        EarthView.World.Spatial.GeoDataset.Iqueryfilter csobj_filter = new EarthView.World.Spatial.GeoDataset.Iqueryfilter(CreatedWhenConstruct.CWC_NotToCreate);
                        csobj_filter.BindNativeObject(filter, "IQueryFilter");
                        csobj_filter.Delegate = true;
                        IClassFactory csobj_filterClassFactory = GlobalClassFactoryMap.Get(csobj_filter.GetCppInstanceTypeName());

                        if (csobj_filterClassFactory != null)
                        {
                            csobj_filter.Delegate = true;
                            csobj_filter          = csobj_filterClassFactory.Create() as EarthView.World.Spatial.GeoDataset.Iqueryfilter;
                            csobj_filter.BindNativeObject(filter, "IQueryFilter");
                            csobj_filter.Delegate = true;
                        }

                        bool csret = Draw(csobj_featureClass, csobj_filter);

                        return(Convert.ToByte(csret));
                    }
                protected void EarthView_World_Graphic_CRenderObjectListener_notifyRenderSingleObjectStarted_void_CRenderable_CPass_CAutoParamDataSource_LightList_ev_bool_Function(IntPtr rend, IntPtr pass, IntPtr source, IntPtr pLightList, bool suppressRenderStateChanges)
                {
                    EarthView.World.Graphic.Renderable csobj_rend = new EarthView.World.Graphic.Renderable(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_rend.BindNativeObject(rend, "CRenderable");
                    csobj_rend.Delegate = true;
                    IClassFactory csobj_rendClassFactory = GlobalClassFactoryMap.Get(csobj_rend.GetCppInstanceTypeName());

                    if (csobj_rendClassFactory != null)
                    {
                        csobj_rend.Delegate = true;
                        csobj_rend          = csobj_rendClassFactory.Create() as EarthView.World.Graphic.Renderable;
                        csobj_rend.BindNativeObject(rend, "CRenderable");
                        csobj_rend.Delegate = true;
                    }
                    EarthView.World.Graphic.Pass csobj_pass = new EarthView.World.Graphic.Pass(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_pass.BindNativeObject(pass, "CPass");
                    csobj_pass.Delegate = true;
                    IClassFactory csobj_passClassFactory = GlobalClassFactoryMap.Get(csobj_pass.GetCppInstanceTypeName());

                    if (csobj_passClassFactory != null)
                    {
                        csobj_pass.Delegate = true;
                        csobj_pass          = csobj_passClassFactory.Create() as EarthView.World.Graphic.Pass;
                        csobj_pass.BindNativeObject(pass, "CPass");
                        csobj_pass.Delegate = true;
                    }
                    EarthView.World.Graphic.AutoParamDataSource csobj_source = new EarthView.World.Graphic.AutoParamDataSource(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_source.BindNativeObject(source, "CAutoParamDataSource");
                    csobj_source.Delegate = true;
                    IClassFactory csobj_sourceClassFactory = GlobalClassFactoryMap.Get(csobj_source.GetCppInstanceTypeName());

                    if (csobj_sourceClassFactory != null)
                    {
                        csobj_source.Delegate = true;
                        csobj_source          = csobj_sourceClassFactory.Create() as EarthView.World.Graphic.AutoParamDataSource;
                        csobj_source.BindNativeObject(source, "CAutoParamDataSource");
                        csobj_source.Delegate = true;
                    }
                    EarthView.World.Graphic.LightList csobj_pLightList = new EarthView.World.Graphic.LightList(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_pLightList.BindNativeObject(pLightList, "LightList");
                    csobj_pLightList.Delegate = true;
                    IClassFactory csobj_pLightListClassFactory = GlobalClassFactoryMap.Get(csobj_pLightList.GetCppInstanceTypeName());

                    if (csobj_pLightListClassFactory != null)
                    {
                        csobj_pLightList.Delegate = true;
                        csobj_pLightList          = csobj_pLightListClassFactory.Create() as EarthView.World.Graphic.LightList;
                        csobj_pLightList.BindNativeObject(pLightList, "LightList");
                        csobj_pLightList.Delegate = true;
                    }

                    NotifyRenderSingleObjectStarted(csobj_rend, csobj_pass, csobj_source, csobj_pLightList, suppressRenderStateChanges);
                }
Exemple #12
0
                protected void EarthView_World_Graphic_CParticleSystemRendererFactoryObj_destroyInstance_void_CParticleSystemRenderer_Function(IntPtr renderer)
                {
                    EarthView.World.Graphic.ParticleSystemRenderer csobj_renderer = new EarthView.World.Graphic.ParticleSystemRenderer(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_renderer.BindNativeObject(renderer, "CParticleSystemRenderer");
                    csobj_renderer.Delegate = true;
                    IClassFactory csobj_rendererClassFactory = GlobalClassFactoryMap.Get(csobj_renderer.GetCppInstanceTypeName());

                    if (csobj_rendererClassFactory != null)
                    {
                        csobj_renderer.Delegate = true;
                        csobj_renderer          = csobj_rendererClassFactory.Create() as EarthView.World.Graphic.ParticleSystemRenderer;
                        csobj_renderer.BindNativeObject(renderer, "CParticleSystemRenderer");
                        csobj_renderer.Delegate = true;
                    }

                    DestroyInstance(csobj_renderer);
                }
                protected void EarthView_World_Graphic_CParticleAffector__initParticle_void_CParticle_Function(IntPtr pParticle)
                {
                    EarthView.World.Graphic.Particle csobj_pParticle = new EarthView.World.Graphic.Particle(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_pParticle.BindNativeObject(pParticle, "CParticle");
                    csobj_pParticle.Delegate = true;
                    IClassFactory csobj_pParticleClassFactory = GlobalClassFactoryMap.Get(csobj_pParticle.GetCppInstanceTypeName());

                    if (csobj_pParticleClassFactory != null)
                    {
                        csobj_pParticle.Delegate = true;
                        csobj_pParticle          = csobj_pParticleClassFactory.Create() as EarthView.World.Graphic.Particle;
                        csobj_pParticle.BindNativeObject(pParticle, "CParticle");
                        csobj_pParticle.Delegate = true;
                    }

                    _initParticle(csobj_pParticle);
                }
                protected void EarthView_World_Spatial3D_CLayer3DEditorListener_onEndCommitModel_void_IGlobeLayer_EntityDatasetOperType_ev_uint32_ev_uint32_Function(IntPtr pLayer, EarthView.World.Spatial3D.Dataset.ENTITYDATASETOPERTYPE operType, uint cacheID, uint dbID)
                {
                    EarthView.World.Spatial3D.Atlas.Iglobelayer csobj_pLayer = new EarthView.World.Spatial3D.Atlas.Iglobelayer(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_pLayer.BindNativeObject(pLayer, "IGlobeLayer");
                    csobj_pLayer.Delegate = true;
                    IClassFactory csobj_pLayerClassFactory = GlobalClassFactoryMap.Get(csobj_pLayer.GetCppInstanceTypeName());

                    if (csobj_pLayerClassFactory != null)
                    {
                        csobj_pLayer.Delegate = true;
                        csobj_pLayer          = csobj_pLayerClassFactory.Create() as EarthView.World.Spatial3D.Atlas.Iglobelayer;
                        csobj_pLayer.BindNativeObject(pLayer, "IGlobeLayer");
                        csobj_pLayer.Delegate = true;
                    }

                    OnEndCommitModel(csobj_pLayer, operType, cacheID, dbID);
                }
                protected void EarthView_World_Spatial3D_CLayer3DEditorListener_onStartEditing_void_IGlobeLayer_Function(IntPtr pLayer)
                {
                    EarthView.World.Spatial3D.Atlas.Iglobelayer csobj_pLayer = new EarthView.World.Spatial3D.Atlas.Iglobelayer(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_pLayer.BindNativeObject(pLayer, "IGlobeLayer");
                    csobj_pLayer.Delegate = true;
                    IClassFactory csobj_pLayerClassFactory = GlobalClassFactoryMap.Get(csobj_pLayer.GetCppInstanceTypeName());

                    if (csobj_pLayerClassFactory != null)
                    {
                        csobj_pLayer.Delegate = true;
                        csobj_pLayer          = csobj_pLayerClassFactory.Create() as EarthView.World.Spatial3D.Atlas.Iglobelayer;
                        csobj_pLayer.BindNativeObject(pLayer, "IGlobeLayer");
                        csobj_pLayer.Delegate = true;
                    }

                    OnStartEditing(csobj_pLayer);
                }
                    protected void EarthView_World_Spatial_Atlas_ISceneFactory_destroyScene_void_IScene_Function(IntPtr pScene)
                    {
                        EarthView.World.Spatial.Atlas.Iscene csobj_pScene = new EarthView.World.Spatial.Atlas.Iscene(CreatedWhenConstruct.CWC_NotToCreate);
                        csobj_pScene.BindNativeObject(pScene, "IScene");
                        csobj_pScene.Delegate = true;
                        IClassFactory csobj_pSceneClassFactory = GlobalClassFactoryMap.Get(csobj_pScene.GetCppInstanceTypeName());

                        if (csobj_pSceneClassFactory != null)
                        {
                            csobj_pScene.Delegate = true;
                            csobj_pScene          = csobj_pSceneClassFactory.Create() as EarthView.World.Spatial.Atlas.Iscene;
                            csobj_pScene.BindNativeObject(pScene, "IScene");
                            csobj_pScene.Delegate = true;
                        }

                        DestroyScene(csobj_pScene);
                    }
Exemple #17
0
                protected void EarthView_World_Graphic_CCompositorLogic_compositorInstanceCreated_void_CCompositorInstance_Function(IntPtr newInstance)
                {
                    EarthView.World.Graphic.CompositorInstance csobj_newInstance = new EarthView.World.Graphic.CompositorInstance(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_newInstance.BindNativeObject(newInstance, "CCompositorInstance");
                    csobj_newInstance.Delegate = true;
                    IClassFactory csobj_newInstanceClassFactory = GlobalClassFactoryMap.Get(csobj_newInstance.GetCppInstanceTypeName());

                    if (csobj_newInstanceClassFactory != null)
                    {
                        csobj_newInstance.Delegate = true;
                        csobj_newInstance          = csobj_newInstanceClassFactory.Create() as EarthView.World.Graphic.CompositorInstance;
                        csobj_newInstance.BindNativeObject(newInstance, "CCompositorInstance");
                        csobj_newInstance.Delegate = true;
                    }

                    CompositorInstanceCreated(csobj_newInstance);
                }
Exemple #18
0
                    protected void EarthView_World_Spatial_Atlas_ILayerSelection_setSelectionSymbol_void_ISymbol_Function(IntPtr symbol)
                    {
                        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;
                        }

                        SetSelectionSymbol(csobj_symbol);
                    }
                    protected void EarthView_World_Spatial_Geometry_CGeodesicMeasure_polygonMeasure_void_CPolygon_ev_real64_ev_real64_Function(IntPtr polygon, ref double area, ref double periMeter)
                    {
                        EarthView.World.Spatial.Geometry.Polygon csobj_polygon = new EarthView.World.Spatial.Geometry.Polygon(CreatedWhenConstruct.CWC_NotToCreate);
                        csobj_polygon.BindNativeObject(polygon, "CPolygon");
                        csobj_polygon.Delegate = true;
                        IClassFactory csobj_polygonClassFactory = GlobalClassFactoryMap.Get(csobj_polygon.GetCppInstanceTypeName());

                        if (csobj_polygonClassFactory != null)
                        {
                            csobj_polygon.Delegate = true;
                            csobj_polygon          = csobj_polygonClassFactory.Create() as EarthView.World.Spatial.Geometry.Polygon;
                            csobj_polygon.BindNativeObject(polygon, "CPolygon");
                            csobj_polygon.Delegate = true;
                        }

                        PolygonMeasure(csobj_polygon, ref area, ref periMeter);
                    }
                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);
                }
                protected void EarthView_World_Graphic_CParticleEmitterFactory_destroyEmitter_void_CParticleEmitter_Function(IntPtr e)
                {
                    EarthView.World.Graphic.ParticleEmitter csobj_e = new EarthView.World.Graphic.ParticleEmitter(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_e.BindNativeObject(e, "CParticleEmitter");
                    csobj_e.Delegate = true;
                    IClassFactory csobj_eClassFactory = GlobalClassFactoryMap.Get(csobj_e.GetCppInstanceTypeName());

                    if (csobj_eClassFactory != null)
                    {
                        csobj_e.Delegate = true;
                        csobj_e          = csobj_eClassFactory.Create() as EarthView.World.Graphic.ParticleEmitter;
                        csobj_e.BindNativeObject(e, "CParticleEmitter");
                        csobj_e.Delegate = true;
                    }

                    DestroyEmitter(csobj_e);
                }
                    protected void EarthView_World_Spatial_Convertor_IDataExchange_setListener_void_IDataExchangeListener_Function(IntPtr ref_listener)
                    {
                        EarthView.World.Spatial.Convertor.Idataexchangelistener csobj_ref_listener = new EarthView.World.Spatial.Convertor.Idataexchangelistener(CreatedWhenConstruct.CWC_NotToCreate);
                        csobj_ref_listener.BindNativeObject(ref_listener, "IDataExchangeListener");
                        csobj_ref_listener.Delegate = true;
                        IClassFactory csobj_ref_listenerClassFactory = GlobalClassFactoryMap.Get(csobj_ref_listener.GetCppInstanceTypeName());

                        if (csobj_ref_listenerClassFactory != null)
                        {
                            csobj_ref_listener.Delegate = true;
                            csobj_ref_listener          = csobj_ref_listenerClassFactory.Create() as EarthView.World.Spatial.Convertor.Idataexchangelistener;
                            csobj_ref_listener.BindNativeObject(ref_listener, "IDataExchangeListener");
                            csobj_ref_listener.Delegate = true;
                        }

                        SetListener(csobj_ref_listener);
                    }
                    protected void EarthView_World_Spatial3D_Atlas_CBingMapTree_update_void_CCamera_Function(IntPtr camera)
                    {
                        EarthView.World.Graphic.Camera csobj_camera = new EarthView.World.Graphic.Camera(CreatedWhenConstruct.CWC_NotToCreate);
                        csobj_camera.BindNativeObject(camera, "CCamera");
                        csobj_camera.Delegate = true;
                        IClassFactory csobj_cameraClassFactory = GlobalClassFactoryMap.Get(csobj_camera.GetCppInstanceTypeName());

                        if (csobj_cameraClassFactory != null)
                        {
                            csobj_camera.Delegate = true;
                            csobj_camera          = csobj_cameraClassFactory.Create() as EarthView.World.Graphic.Camera;
                            csobj_camera.BindNativeObject(camera, "CCamera");
                            csobj_camera.Delegate = true;
                        }

                        Update(csobj_camera);
                    }
                protected void EarthView_World_Spatial_IViewListener_onViewChanged_void_IViewArgs_Function(IntPtr args)
                {
                    EarthView.World.Spatial.Iviewargs csobj_args = new EarthView.World.Spatial.Iviewargs(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_args.BindNativeObject(args, "IViewArgs");
                    csobj_args.Delegate = true;
                    IClassFactory csobj_argsClassFactory = GlobalClassFactoryMap.Get(csobj_args.GetCppInstanceTypeName());

                    if (csobj_argsClassFactory != null)
                    {
                        csobj_args.Delegate = true;
                        csobj_args          = csobj_argsClassFactory.Create() as EarthView.World.Spatial.Iviewargs;
                        csobj_args.BindNativeObject(args, "IViewArgs");
                        csobj_args.Delegate = true;
                    }

                    OnViewChanged(csobj_args);
                }
                protected void EarthView_World_Graphic_CParticleAffector__affectParticles_void_CParticleSystem_Real_Function(IntPtr pSystem, double timeElapsed)
                {
                    EarthView.World.Graphic.ParticleSystem csobj_pSystem = new EarthView.World.Graphic.ParticleSystem(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_pSystem.BindNativeObject(pSystem, "CParticleSystem");
                    csobj_pSystem.Delegate = true;
                    IClassFactory csobj_pSystemClassFactory = GlobalClassFactoryMap.Get(csobj_pSystem.GetCppInstanceTypeName());

                    if (csobj_pSystemClassFactory != null)
                    {
                        csobj_pSystem.Delegate = true;
                        csobj_pSystem          = csobj_pSystemClassFactory.Create() as EarthView.World.Graphic.ParticleSystem;
                        csobj_pSystem.BindNativeObject(pSystem, "CParticleSystem");
                        csobj_pSystem.Delegate = true;
                    }

                    _affectParticles(csobj_pSystem, timeElapsed);
                }
                protected void EarthView_World_Core_CEventObject_onCustomEvent_void_CEvent_Function(IntPtr e)
                {
                    EarthView.World.Core.Event csobj_e = new EarthView.World.Core.Event(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_e.BindNativeObject(e, "CEvent");
                    csobj_e.Delegate = true;
                    IClassFactory csobj_eClassFactory = GlobalClassFactoryMap.Get(csobj_e.GetCppInstanceTypeName());

                    if (csobj_eClassFactory != null)
                    {
                        csobj_e.Delegate = true;
                        csobj_e          = csobj_eClassFactory.Create() as EarthView.World.Core.Event;
                        csobj_e.BindNativeObject(e, "CEvent");
                        csobj_e.Delegate = true;
                    }

                    OnCustomEvent(csobj_e);
                }
                    protected void EarthView_World_Spatial_Display_CColorRampFactory_destroyColorRamp_void_CColorRamp_Function(IntPtr pColorRamp)
                    {
                        EarthView.World.Spatial.Display.ColorRamp csobj_pColorRamp = new EarthView.World.Spatial.Display.ColorRamp(CreatedWhenConstruct.CWC_NotToCreate);
                        csobj_pColorRamp.BindNativeObject(pColorRamp, "CColorRamp");
                        csobj_pColorRamp.Delegate = true;
                        IClassFactory csobj_pColorRampClassFactory = GlobalClassFactoryMap.Get(csobj_pColorRamp.GetCppInstanceTypeName());

                        if (csobj_pColorRampClassFactory != null)
                        {
                            csobj_pColorRamp.Delegate = true;
                            csobj_pColorRamp          = csobj_pColorRampClassFactory.Create() as EarthView.World.Spatial.Display.ColorRamp;
                            csobj_pColorRamp.BindNativeObject(pColorRamp, "CColorRamp");
                            csobj_pColorRamp.Delegate = true;
                        }

                        DestroyColorRamp(csobj_pColorRamp);
                    }
                    protected void EarthView_World_Spatial_Geometry_CGeodesicMeasure_polylineMeasure_void_CPolyline_ev_real64_Function(IntPtr polyline, ref double distance)
                    {
                        EarthView.World.Spatial.Geometry.Polyline csobj_polyline = new EarthView.World.Spatial.Geometry.Polyline(CreatedWhenConstruct.CWC_NotToCreate);
                        csobj_polyline.BindNativeObject(polyline, "CPolyline");
                        csobj_polyline.Delegate = true;
                        IClassFactory csobj_polylineClassFactory = GlobalClassFactoryMap.Get(csobj_polyline.GetCppInstanceTypeName());

                        if (csobj_polylineClassFactory != null)
                        {
                            csobj_polyline.Delegate = true;
                            csobj_polyline          = csobj_polylineClassFactory.Create() as EarthView.World.Spatial.Geometry.Polyline;
                            csobj_polyline.BindNativeObject(polyline, "CPolyline");
                            csobj_polyline.Delegate = true;
                        }

                        PolylineMeasure(csobj_polyline, ref distance);
                    }
Exemple #29
0
                protected void EarthView_World_Core_CArchiveFactory_destroyInstance_void_CArchive_Function(IntPtr ptr)
                {
                    EarthView.World.Core.Archive csobj_ptr = new EarthView.World.Core.Archive(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_ptr.BindNativeObject(ptr, "CArchive");
                    csobj_ptr.Delegate = true;
                    IClassFactory csobj_ptrClassFactory = GlobalClassFactoryMap.Get(csobj_ptr.GetCppInstanceTypeName());

                    if (csobj_ptrClassFactory != null)
                    {
                        csobj_ptr.Delegate = true;
                        csobj_ptr          = csobj_ptrClassFactory.Create() as EarthView.World.Core.Archive;
                        csobj_ptr.BindNativeObject(ptr, "CArchive");
                        csobj_ptr.Delegate = true;
                    }

                    DestroyInstance(csobj_ptr);
                }
                    protected void EarthView_World_Spatial_Display_CColorFactory_destroyColor_void_IColor_Function(IntPtr pColor)
                    {
                        EarthView.World.Spatial.Display.Icolor csobj_pColor = new EarthView.World.Spatial.Display.Icolor(CreatedWhenConstruct.CWC_NotToCreate);
                        csobj_pColor.BindNativeObject(pColor, "IColor");
                        csobj_pColor.Delegate = true;
                        IClassFactory csobj_pColorClassFactory = GlobalClassFactoryMap.Get(csobj_pColor.GetCppInstanceTypeName());

                        if (csobj_pColorClassFactory != null)
                        {
                            csobj_pColor.Delegate = true;
                            csobj_pColor          = csobj_pColorClassFactory.Create() as EarthView.World.Spatial.Display.Icolor;
                            csobj_pColor.BindNativeObject(pColor, "IColor");
                            csobj_pColor.Delegate = true;
                        }

                        DestroyColor(csobj_pColor);
                    }