/// <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_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_Spatial3D_DataExchange_CModelDataExchangeListener_processLog_void_EVString_Function(ref IntPtr info) { string strinfo = Marshal.PtrToStringAnsi(info); ClassFactory.FreeString(ref info); ProcessLog(strinfo); }
public virtual string GetType_NoVirtual() { IntPtr __ptr = EarthView_World_Core_CArchiveFactory_getType_EVString_NoVirtual(this.NativeObject); string ret = Marshal.PtrToStringAnsi(__ptr); ClassFactory.FreeString(ref __ptr); return(ret); }
public string GetRootQuadKey() { IntPtr __ptr = EarthView_World_Spatial3D_Atlas_CBingMapTree_getRootQuadKey_EVString(this.NativeObject); string ret = Marshal.PtrToStringAnsi(__ptr); ClassFactory.FreeString(ref __ptr); return(ret); }
public string At(ulong n) { IntPtr __ptr = EarthView_World_Core_StringVector_at_EVString_ev_size_t(this.NativeObject, n); string ret = Marshal.PtrToStringAnsi(__ptr); ClassFactory.FreeString(ref __ptr); return(ret); }
/// <summary> /// 获取制定索引的关键字 /// </summary> /// <param name="index">索引</param> /// <returns>指定关键字</returns> public string GetKeyword(uint index) { IntPtr __ptr = EarthView_World_Spatial_CTileMatrix_getKeyword_EVString_ev_uint32(this.NativeObject, index); string ret = Marshal.PtrToStringAnsi(__ptr); ClassFactory.FreeString(ref __ptr); return(ret); }
/// <summary> /// 得到ID /// </summary> /// <param name=""></param> /// <returns>返回ID名称</returns> /// <memo></memo> public string GetID() { IntPtr __ptr = EarthView_World_Spatial3DProxy_CEffectTreeviewEvent_getID_EVString(this.NativeObject); string ret = Marshal.PtrToStringAnsi(__ptr); ClassFactory.FreeString(ref __ptr); return(ret); }
/// <summary> /// 得到库的名字 /// </summary> /// <param name=""></param> /// <returns>返回库的名字</returns> public string GetName() { IntPtr __ptr = EarthView_World_Core_CDynLib_getName_EVString(this.NativeObject); string ret = Marshal.PtrToStringAnsi(__ptr); ClassFactory.FreeString(ref __ptr); return(ret); }
/// <summary> /// 返回属性变换器的名称 /// </summary> /// <param name=""></param> /// <returns></returns> public string GetType() { IntPtr __ptr = EarthView_World_Graphic_CParticleAffector_getType_EVString(this.NativeObject); string ret = Marshal.PtrToStringAnsi(__ptr); ClassFactory.FreeString(ref __ptr); return(ret); }
/// <summary> /// 获取操作的名称 /// </summary> public virtual string GetName_NoVirtual() { IntPtr __ptr = EarthView_World_Layout_Controls_CLayoutOperation_getName_EVString_NoVirtual(this.NativeObject); string ret = Marshal.PtrToStringAnsi(__ptr); ClassFactory.FreeString(ref __ptr); return(ret); }
/// <summary> /// 获取数据集对象。 /// </summary> /// <param name="dataSourceAliasName">数据源的别名。</param> /// <param name="datasetName">数据集的别名。</param> /// <returns>获取的EarthView::World::Spatial::GeoDataset::IDataset数据集对象。</returns> //EarthView::World::Spatial::GeoDataset::IDataset* getDataset(const EVString& dataSourceAliasName, const EVString& datasetName); /// <summary> /// 获取错误信息。在任何一个方法返回false之后通过此函数获取错误信息。 /// ***注意该函数为静态方法,意味着本类对象析构后仍然可以正确获取错误信息。 /// </summary> /// <returns>错误信息。</returns> public static string GetLastErrorString() { IntPtr __ptr = EarthView_World_Utilities_AppDataSource_getLastErrorString_EVString(); string ret = Marshal.PtrToStringAnsi(__ptr); ClassFactory.FreeString(ref __ptr); return(ret); }
public virtual string GetType_NoVirtual() { IntPtr __ptr = EarthView_World_Graphic_CParticleSystemRendererFactoryObj_getType_EVString_NoVirtual(this.NativeObject); string ret = Marshal.PtrToStringAnsi(__ptr); ClassFactory.FreeString(ref __ptr); return(ret); }
public new string GetName_NoVirtual() { IntPtr __ptr = EarthView_World_Plugin_ParticleFX_CPointEmitterFactory_getName_EVString_NoVirtual(this.NativeObject); string ret = Marshal.PtrToStringAnsi(__ptr); ClassFactory.FreeString(ref __ptr); return(ret); }
public static string TileXYToQuadKey(uint tileX, uint tileY, uint levelOfDetail) { IntPtr __ptr = EarthView_World_Spatial3D_Atlas_CBingMapMath_TileXYToQuadKey_EVString_ev_uint32_ev_uint32_ev_uint32(tileX, tileY, levelOfDetail); string ret = Marshal.PtrToStringAnsi(__ptr); ClassFactory.FreeString(ref __ptr); return(ret); }
public static string FormatPath(string path, string file) { IntPtr __ptr = EarthView_World_Core_CDirectory_formatPath_EVString_EVString_EVString(path, file); string ret = Marshal.PtrToStringAnsi(__ptr); ClassFactory.FreeString(ref __ptr); return(ret); }
/// <summary> /// 获取支持的坐标参考系统 /// </summary> /// <returns>获取支持的坐标参考系统</returns> public string GetSupportedCRS() { IntPtr __ptr = EarthView_World_Spatial_CTileMatrixSet_getSupportedCRS_EVString(this.NativeObject); string ret = Marshal.PtrToStringAnsi(__ptr); ClassFactory.FreeString(ref __ptr); return(ret); }
public string GetFontFamily() { IntPtr __ptr = EarthView_World_Graphic_FontStyle_getFontFamily_EVString(this.NativeObject); string ret = Marshal.PtrToStringAnsi(__ptr); ClassFactory.FreeString(ref __ptr); return(ret); }
/// <summary> /// 获取数据集的名称 /// </summary> /// <returns>数据集的名称</returns> public virtual string GetName() { IntPtr __ptr = EarthView_World_Spatial_GeoDataset_IDataMetaInfo_getName_EVString(this.NativeObject); string ret = Marshal.PtrToStringAnsi(__ptr); ClassFactory.FreeString(ref __ptr); return(ret); }
/// <summary> /// 获取用户guid /// </summary> /// <param name=""></param> /// <returns></returns> public static string GetUserGuid() { IntPtr __ptr = EarthView_World_Core_GUID_getUserGuid_ev_string(); string ret = Marshal.PtrToStringAnsi(__ptr); ClassFactory.FreeString(ref __ptr); return(ret); }
/// <summary> /// 获取TileMatrix的标识 /// </summary> /// <returns>TileMatrix的标识</returns> public string GetIdentifier() { IntPtr __ptr = EarthView_World_Spatial_CTileMatrix_getIdentifier_EVString(this.NativeObject); string ret = Marshal.PtrToStringAnsi(__ptr); ClassFactory.FreeString(ref __ptr); return(ret); }
public virtual string GetTargetLanguage_NoVirtual() { IntPtr __ptr = EarthView_World_Graphic_RTShaderSystem_CProgramProcessor_getTargetLanguage_EVString_NoVirtual(this.NativeObject); string ret = Marshal.PtrToStringAnsi(__ptr); ClassFactory.FreeString(ref __ptr); return(ret); }
public string Back() { IntPtr __ptr = EarthView_World_Core_StringVector_back_EVString(this.NativeObject); string ret = Marshal.PtrToStringAnsi(__ptr); ClassFactory.FreeString(ref __ptr); return(ret); }
/// <summary> /// 获取指定参数的路径 /// </summary> /// <param name="level">级别</param> /// <param name="row">行</param> /// <param name="col">列</param> /// <param name="format">数据格式,如“db”</param> /// <returns>相应路径</returns> public override string GetPath(int level, uint row, uint col, string format) { IntPtr __ptr = EarthView_World_Spatial_CTileDBPathRule_getPath_EVString_ev_int32_ev_uint32_ev_uint32_EVString(this.NativeObject, level, row, col, format); string ret = Marshal.PtrToStringAnsi(__ptr); ClassFactory.FreeString(ref __ptr); return(ret); }
/// <summary> /// 获取任务的类型 /// </summary> /// <param name=""></param> /// <returns>任务类型</returns> public new string GetName_NoVirtual() { IntPtr __ptr = EarthView_World_Spatial2D_Controls_CModifyFeatureTask_getName_EVString_NoVirtual(this.NativeObject); string ret = Marshal.PtrToStringAnsi(__ptr); ClassFactory.FreeString(ref __ptr); return(ret); }
/// <summary> /// /// </summary> /// <returns></returns> public string GenKmlOrKmzCache(string kmlPath) { IntPtr __ptr = EarthView_World_Spatial3D_KmlManager_CKmlCacheManager_genKmlOrKmzCache_EVString_EVString(this.NativeObject, kmlPath); string ret = Marshal.PtrToStringAnsi(__ptr); ClassFactory.FreeString(ref __ptr); return(ret); }
/// <summary> /// 获取任务的类型 /// </summary> /// <param name=""></param> /// <returns>任务类型</returns> public override string GetName() { IntPtr __ptr = EarthView_World_Spatial2D_Controls_CFeatureUnionTask_getName_EVString(this.NativeObject); string ret = Marshal.PtrToStringAnsi(__ptr); ClassFactory.FreeString(ref __ptr); return(ret); }
/// <summary> /// /// </summary> /// <returns></returns> public string GenKmlModelCache(string modelPath, EarthView.World.Graphic.SceneManager sceneMgr) { IntPtr __ptr = EarthView_World_Spatial3D_KmlManager_CKmlCacheManager_genKmlModelCache_EVString_EVString_CSceneManager(this.NativeObject, modelPath, object.Equals(sceneMgr, null) ? IntPtr.Zero : sceneMgr.NativeObject); string ret = Marshal.PtrToStringAnsi(__ptr); ClassFactory.FreeString(ref __ptr); return(ret); }
public override string GetName() { IntPtr __ptr = EarthView_World_Plugin_ParticleFX_CColourImageAffectorFactory_getName_EVString(this.NativeObject); string ret = Marshal.PtrToStringAnsi(__ptr); ClassFactory.FreeString(ref __ptr); return(ret); }
/// <summary> /// 获取字段名称 /// </summary> /// <returns>字段名称</returns> public string GetFieldName() { IntPtr __ptr = EarthView_World_Spatial_CAttributionElement_getFieldName_EarthView_World_Core_ev_string(this.NativeObject); string ret = Marshal.PtrToStringAnsi(__ptr); ClassFactory.FreeString(ref __ptr); return(ret); }