/// <summary> /// 获取与事件相关联的地图 /// </summary> /// <param name=""></param> /// <returns>地图</returns> public EarthView.World.Spatial.Carto.Ielement GetElement() { IntPtr __ptr = EarthView_World_Spatial_SystemUI_CLayoutOperationEvent_getElement_IElement(this.NativeObject); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Spatial.Carto.Ielement csObj = new EarthView.World.Spatial.Carto.Ielement(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "IElement"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Spatial.Carto.Ielement; csObj.BindNativeObject(__ptr, "IElement"); csObj.Delegate = true; } return(csObj); }
public EarthView.World.Spatial.Display.Icolor GetBlendResult(EarthView.World.Spatial.Display.Icolor arg1, EarthView.World.Spatial.Display.Icolor arg2) { IntPtr __ptr = EarthView_World_Spatial_Display_CColorBlend_getBlendResult_IColor_IColor_IColor(this.NativeObject, object.Equals(arg1, null) ? IntPtr.Zero : arg1.NativeObject, object.Equals(arg2, null) ? IntPtr.Zero : arg2.NativeObject); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Spatial.Display.Icolor csObj = new EarthView.World.Spatial.Display.Icolor(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "IColor"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Spatial.Display.Icolor; csObj.BindNativeObject(__ptr, "IColor"); csObj.Delegate = true; } return(csObj); }
/// <summary> /// 获取单例 /// </summary> /// <returns>单例指针</returns> public static EarthView.World.Graphic.LatticeFontManager GetSingleton() { IntPtr __ptr = EarthView_World_Graphic_CLatticeFontManager_getSingleton_CLatticeFontManager(); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Graphic.LatticeFontManager csObj = new EarthView.World.Graphic.LatticeFontManager(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "CLatticeFontManager"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Graphic.LatticeFontManager; csObj.BindNativeObject(__ptr, "CLatticeFontManager"); csObj.Delegate = true; } return(csObj); }
/// <summary> /// 获取相关的tileReference对象 /// </summary> /// <returns>相关的tileReference对象引用</returns> public EarthView.World.Spatial.TileReference GetTileReferenceRef() { IntPtr __ptr = EarthView_World_Spatial_CTileLevelInfo_getTileReferenceRef_CTileReference(this.NativeObject); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Spatial.TileReference csObj = new EarthView.World.Spatial.TileReference(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "CTileReference"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Spatial.TileReference; csObj.BindNativeObject(__ptr, "CTileReference"); csObj.Delegate = true; } return(csObj); }
/// <summary> /// 下一个结果 /// </summary> /// <param name=""></param> /// <returns>如果移动到最后,返回NULL;否则,返回值有效</returns> public new EarthView.World.Spatial.GeoDataset.Ifeature Next_NoVirtual() { IntPtr __ptr = EarthView_World_Spatial3D_Dataset_CEffectFeatureIterator_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="eWellKnownCS">EarthView::World::Spatial::Utility::EVWellKnownGeoCSType常见地理坐标系统枚举</param> /// <returns>EarthView::World::Spatial::Utility::CSpatialReference*空间参考指针</returns> public static EarthView.World.Spatial.Utility.SpatialReference CreateCoordSys(EarthView.World.Spatial.Utility.EVWELLKNOWNGEOCSTYPE eWellKnownCS) { IntPtr __ptr = EarthView_World_Spatial_Utility_CCoordinateSystemFactory_createCoordSys_CSpatialReference_EVWellKnownGeoCSType(eWellKnownCS); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Spatial.Utility.SpatialReference csObj = new EarthView.World.Spatial.Utility.SpatialReference(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "CSpatialReference"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Spatial.Utility.SpatialReference; csObj.BindNativeObject(__ptr, "CSpatialReference"); csObj.Delegate = true; } return(csObj); }
public EarthView.World.Spatial.Atlas.Ilayer GetLayer(uint index) { IntPtr __ptr = EarthView_World_Spatial_SystemUI_CSelectionChangedEvent_getLayer_ILayer_ev_uint32(this.NativeObject, index); 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); }
/// <summary> /// 得到单体类的实现,跳过标准的单体类的检索,直接跳到需要使用的单体类的实现部分 /// </summary> /// <param name=""></param> /// <returns>返回单体类的引用</returns> public static EarthView.World.Spatial3D.Atlas.Geometry3DFactoryEnum GetSingletonPtr() { IntPtr __ptr = EarthView_World_Spatial3D_Atlas_CGeometry3DFactoryEnum_getSingletonPtr_CGeometry3DFactoryEnum(); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Spatial3D.Atlas.Geometry3DFactoryEnum csObj = new EarthView.World.Spatial3D.Atlas.Geometry3DFactoryEnum(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "CGeometry3DFactoryEnum"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Spatial3D.Atlas.Geometry3DFactoryEnum; csObj.BindNativeObject(__ptr, "CGeometry3DFactoryEnum"); csObj.Delegate = true; } return(csObj); }
public EarthView.World.Spatial3D.Atlas.Igeometry3dfactory GetFactory(ushort type) { IntPtr __ptr = EarthView_World_Spatial3D_Atlas_CGeometry3DFactoryEnum_getFactory_IGeometry3DFactory_ev_uint16(this.NativeObject, type); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Spatial3D.Atlas.Igeometry3dfactory csObj = new EarthView.World.Spatial3D.Atlas.Igeometry3dfactory(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "IGeometry3DFactory"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Spatial3D.Atlas.Igeometry3dfactory; csObj.BindNativeObject(__ptr, "IGeometry3DFactory"); csObj.Delegate = true; } return(csObj); }
/// <summary> /// 下一个数据集对象,如果超出范围,这返回NULL /// </summary> /// <param name=""></param> /// <returns></returns> public override EarthView.World.Spatial.GeoDataset.Idataset Next() { IntPtr __ptr = EarthView_World_Spatial_GeoDataset_CDatasetIterator_next_IDataset(this.NativeObject); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Spatial.GeoDataset.Idataset csObj = new EarthView.World.Spatial.GeoDataset.Idataset(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "IDataset"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Spatial.GeoDataset.Idataset; csObj.BindNativeObject(__ptr, "IDataset"); csObj.Delegate = true; } return(csObj); }
public new EarthView.World.Graphic.ParticleAffector CreateAffector_NoVirtual(EarthView.World.Graphic.ParticleSystem psys) { IntPtr __ptr = EarthView_World_Plugin_ParticleFX_CDirectionRandomiserAffectorFactory_createAffector_CParticleAffector_CParticleSystem_NoVirtual(this.NativeObject, object.Equals(psys, null) ? IntPtr.Zero : psys.NativeObject); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Graphic.ParticleAffector csObj = new EarthView.World.Graphic.ParticleAffector(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "CParticleAffector"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Graphic.ParticleAffector; csObj.BindNativeObject(__ptr, "CParticleAffector"); 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); }
public virtual EarthView.World.Core.StringVector GetScriptPatterns_NoVirtual() { IntPtr __ptr = EarthView_World_Graphic_CScriptLoader_getScriptPatterns_StringVector_NoVirtual(this.NativeObject); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Core.StringVector csObj = new EarthView.World.Core.StringVector(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "StringVector"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Core.StringVector; csObj.BindNativeObject(__ptr, "StringVector"); csObj.Delegate = true; } return(csObj); }
/// <summary> /// 返回一个指向下一个粒子的指针,移动迭代器一个元素 /// </summary> /// <param name=""></param> /// <returns>返回指向下一个粒子的指针</returns> public EarthView.World.Graphic.Particle GetNext() { IntPtr __ptr = EarthView_World_Graphic_CParticleIterator_getNext_CParticle(this.NativeObject); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Graphic.Particle csObj = new EarthView.World.Graphic.Particle(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "CParticle"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Graphic.Particle; csObj.BindNativeObject(__ptr, "CParticle"); csObj.Delegate = true; } return(csObj); }
///<summary> ///根据给定格式的投影参考文本 创建相应的坐标系统 ///</summary> /// <param name="eStrType">EVSpatialReferenceStrTypes文本格式</param> /// <param name="strReference">空间参考的字符串描述</param> /// <returns>EarthView::World::Spatial::Utility::CSpatialReference*空间参考指针</returns> public static EarthView.World.Spatial.Utility.SpatialReference CreateCoordSys(EarthView.World.Spatial.Utility.EVSPATIALREFERENCESTRINGTYPE eStrType, string pszReference) { IntPtr __ptr = EarthView_World_Spatial_Utility_CCoordinateSystemFactory_createCoordSys_CSpatialReference_EVSpatialReferenceStringType_EVString(eStrType, pszReference); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Spatial.Utility.SpatialReference csObj = new EarthView.World.Spatial.Utility.SpatialReference(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "CSpatialReference"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Spatial.Utility.SpatialReference; csObj.BindNativeObject(__ptr, "CSpatialReference"); csObj.Delegate = true; } return(csObj); }
public EarthView.World.Graphic.SceneManager GetSceneManager() { IntPtr __ptr = EarthView_World_Spatial3D_ModelManager_CLodObjectFactory_getSceneManager_CSceneManager(this.NativeObject); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Graphic.SceneManager csObj = new EarthView.World.Graphic.SceneManager(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "CSceneManager"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Graphic.SceneManager; csObj.BindNativeObject(__ptr, "CSceneManager"); csObj.Delegate = true; } return(csObj); }
///<summary> ///从流创建一个坐标参考系统 ///</summary> /// <param name="objStream">流</param> /// <returns>EarthView::World::Spatial::Utility::CSpatialReference*从流创建指针</returns> public static EarthView.World.Spatial.Utility.SpatialReference CreateCoordSys(ref EarthView.World.Core.DataStream objStream) { IntPtr __ptr = EarthView_World_Spatial_Utility_CCoordinateSystemFactory_createCoordSys_CSpatialReference_CDataStream(object.Equals(objStream, null) ? IntPtr.Zero : objStream.NativeObject); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Spatial.Utility.SpatialReference csObj = new EarthView.World.Spatial.Utility.SpatialReference(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "CSpatialReference"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Spatial.Utility.SpatialReference; csObj.BindNativeObject(__ptr, "CSpatialReference"); csObj.Delegate = true; } return(csObj); }
/// <summary> /// 创建meshx对象 /// </summary> /// <param name="file">.meshx文件</param> /// <param name="group">资源组</param> /// <returns></returns> public EarthView.World.Spatial3D.ModelManager.MeshxObject CreateMeshxObject(string file, string group) { IntPtr __ptr = EarthView_World_Spatial3D_ModelManager_CLodObjectFactory_createMeshxObject_CMeshxObject_EVString_EVString(this.NativeObject, file, group); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Spatial3D.ModelManager.MeshxObject csObj = new EarthView.World.Spatial3D.ModelManager.MeshxObject(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "CMeshxObject"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Spatial3D.ModelManager.MeshxObject; csObj.BindNativeObject(__ptr, "CMeshxObject"); csObj.Delegate = true; } return(csObj); }
public EarthView.World.Spatial.Atlas.Ispatialcontrol GetSpatialControl() { IntPtr __ptr = EarthView_World_Spatial_SystemUI_CSelectionChangedEvent_getSpatialControl_ISpatialControl(this.NativeObject); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Spatial.Atlas.Ispatialcontrol csObj = new EarthView.World.Spatial.Atlas.Ispatialcontrol(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "ISpatialControl"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Spatial.Atlas.Ispatialcontrol; csObj.BindNativeObject(__ptr, "ISpatialControl"); csObj.Delegate = true; } return(csObj); }
/// <summary> /// 获取工厂句柄 /// </summary> /// <returns>失败则返回NULL</returns> public static EarthView.World.Spatial3D.ModelManager.LodObjectFactory GetFactory(EarthView.World.Graphic.SceneManager pSceneManager) { IntPtr __ptr = EarthView_World_Spatial3D_ModelManager_CLodObjectFactory_getFactory_CLodObjectFactory_CSceneManager(object.Equals(pSceneManager, null) ? IntPtr.Zero : pSceneManager.NativeObject); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Spatial3D.ModelManager.LodObjectFactory csObj = new EarthView.World.Spatial3D.ModelManager.LodObjectFactory(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "CLodObjectFactory"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Spatial3D.ModelManager.LodObjectFactory; csObj.BindNativeObject(__ptr, "CLodObjectFactory"); csObj.Delegate = true; } return(csObj); }
/// <summary> ///克隆风对象 /// </summary> /// <returns>风对象指针</returns> public EarthView.World.Spatial.Effect3D.Wind Clone() { IntPtr __ptr = EarthView_World_Spatial_Effect3D_CWind_clone_CWind(this.NativeObject); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Spatial.Effect3D.Wind csObj = new EarthView.World.Spatial.Effect3D.Wind(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "CWind"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Spatial.Effect3D.Wind; csObj.BindNativeObject(__ptr, "CWind"); csObj.Delegate = true; } return(csObj); }
/// <summary> /// 按ID获取要素 /// </summary> /// <param name="index">要素的ID</param> /// <returns>指定要素对象的指针</returns> public EarthView.World.Spatial.GeoElement GetGeoElementByID(uint id) { IntPtr __ptr = EarthView_World_Spatial_CVectorTile_getGeoElementByID_CGeoElement_ev_uint32(this.NativeObject, id); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Spatial.GeoElement csObj = new EarthView.World.Spatial.GeoElement(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "CGeoElement"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Spatial.GeoElement; csObj.BindNativeObject(__ptr, "CGeoElement"); csObj.Delegate = true; } return(csObj); }
/// <summary> /// 获取字段 /// </summary> /// <param name="index">字段索引</param> /// <returns></returns> public override EarthView.World.Spatial.GeoDataset.Ifield GetField(uint index) { IntPtr __ptr = EarthView_World_Spatial3D_Dataset_CEffectFeatureIterator_getField_IField_ev_uint32(this.NativeObject, index); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Spatial.GeoDataset.Ifield csObj = new EarthView.World.Spatial.GeoDataset.Ifield(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "IField"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Spatial.GeoDataset.Ifield; csObj.BindNativeObject(__ptr, "IField"); csObj.Delegate = true; } return(csObj); }
public static EarthView.XldManager.WaterConservancyManager GetSingletonPtr() { IntPtr __ptr = EarthView_XldManager_CWaterConservancyManager_GetSingletonPtr_CWaterConservancyManager(); if (__ptr == IntPtr.Zero) { return(null); } EarthView.XldManager.WaterConservancyManager csObj = new EarthView.XldManager.WaterConservancyManager(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "CWaterConservancyManager"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.XldManager.WaterConservancyManager; csObj.BindNativeObject(__ptr, "CWaterConservancyManager"); csObj.Delegate = true; } return(csObj); }
/// <summary> /// 获取检查器单例 /// </summary> /// <returns></returns> public static EarthView.World.Spatial.Convertor.Sqlkeychecker GetInstance() { IntPtr __ptr = EarthView_World_Spatial_Convertor_CSQLKeyChecker_getInstance_CSQLKeyChecker(); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Spatial.Convertor.Sqlkeychecker csObj = new EarthView.World.Spatial.Convertor.Sqlkeychecker(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "CSQLKeyChecker"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Spatial.Convertor.Sqlkeychecker; csObj.BindNativeObject(__ptr, "CSQLKeyChecker"); csObj.Delegate = true; } return(csObj); }
///<summary> ///获取选择 ///</summary> ///<returns>选择集指针</return> public new EarthView.World.Spatial.GeoDataset.Ifeatureselection GetSelection_NoVirtual() { IntPtr __ptr = EarthView_World_Spatial3D_Atlas_CLayerSelection3D_getSelection_IFeatureSelection_NoVirtual(this.NativeObject); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Spatial.GeoDataset.Ifeatureselection csObj = new EarthView.World.Spatial.GeoDataset.Ifeatureselection(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "IFeatureSelection"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Spatial.GeoDataset.Ifeatureselection; csObj.BindNativeObject(__ptr, "IFeatureSelection"); csObj.Delegate = true; } return(csObj); }
public override EarthView.World.Graphic.ParticleEmitter CreateEmitter(EarthView.World.Graphic.ParticleSystem psys) { IntPtr __ptr = EarthView_World_Plugin_ParticleFX_CHollowEllipsoidEmitterFactory_createEmitter_CParticleEmitter_CParticleSystem(this.NativeObject, object.Equals(psys, null) ? IntPtr.Zero : psys.NativeObject); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Graphic.ParticleEmitter csObj = new EarthView.World.Graphic.ParticleEmitter(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "CParticleEmitter"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Graphic.ParticleEmitter; csObj.BindNativeObject(__ptr, "CParticleEmitter"); csObj.Delegate = true; } return(csObj); }
///<summary> ///根据给定椭球体和投影参数 创建坐标系统 如果pObjProjParameter = NULL则 ///创建地理坐标系统 否则创建投影坐标系统 ///</summary> /// <param name="pobjEllipseSphere">CEllipseShpere指针</param> /// <param name="pObjProjParameter">EarthView::World::Spatial::Utility::CProjParameter指针,为NULL时表示创建地理坐标系统</param> /// <returns>EarthView::World::Spatial::Utility::CSpatialReference*空间参考指针</returns> public static EarthView.World.Spatial.Utility.SpatialReference CreateCoordSys(EarthView.World.Spatial.Geometry.Iellipsespheriod pobjEllipseSphere, EarthView.World.Spatial.Utility.ProjParameter pObjProjParameter) { IntPtr __ptr = EarthView_World_Spatial_Utility_CCoordinateSystemFactory_createCoordSys_CSpatialReference_IEllipseSpheriod_CProjParameter(object.Equals(pobjEllipseSphere, null) ? IntPtr.Zero : pobjEllipseSphere.NativeObject, object.Equals(pObjProjParameter, null) ? IntPtr.Zero : pObjProjParameter.NativeObject); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Spatial.Utility.SpatialReference csObj = new EarthView.World.Spatial.Utility.SpatialReference(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "CSpatialReference"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Spatial.Utility.SpatialReference; csObj.BindNativeObject(__ptr, "CSpatialReference"); csObj.Delegate = true; } return(csObj); }
public void TestGetFunc() { var i1Mock = new I1[1]; Func <I1> func = () => i1Mock[0]; internalContainer.ExpectBuildGetFunc(context, func); context.Expect(c => c.BeginConstruct(testType)); context.Expect(c => c.EndConstruct(testType)); IClassFactory classFactory = classCreator.BuildFactory( new ContainerConstructorInfo { ConstructorInfo = testType.GetConstructor(new[] { typeof(Func <I1>) }) }, null); object instance = classFactory.Create(context, new object[0]); Assert.That(instance, Is.InstanceOf(testType)); Assert.AreSame(func, ((I2Impl)instance).i1Func); i1Mock[0] = NewMock <I1>(); Assert.AreSame(i1Mock[0], ((I2Impl)instance).i1Func()); }
/// <summary> /// 从XML中恢复用户自定义类型的符号 /// </summary> /// <param name="strXml">符号的XML文本</param> public virtual EarthView.World.Spatial.Display.Isymbol CustomSymbolFromXml_NoVirtual(string strXml) { IntPtr __ptr = EarthView_World_Spatial_Display_ISymbolListener_customSymbolFromXml_ISymbol_EVString_NoVirtual(this.NativeObject, strXml); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Spatial.Display.Isymbol csObj = new EarthView.World.Spatial.Display.Isymbol(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "ISymbol"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Spatial.Display.Isymbol; csObj.BindNativeObject(__ptr, "ISymbol"); csObj.Delegate = true; } return(csObj); }