public void Initialise(EarthView.World.Spatial3D.Controls.GlobeControl ref_globecontrol, ref string runtimePath) { IntPtr __ptrruntimePath = Marshal.StringToHGlobalAnsi(runtimePath); IntPtr pTmpruntimePath = __ptrruntimePath; EarthView_XldManager_CWaterConservancyManager_Initialise_void_CGlobeControl_EVString(this.NativeObject, object.Equals(ref_globecontrol, null) ? IntPtr.Zero : ref_globecontrol.NativeObject, ref __ptrruntimePath); Marshal.FreeHGlobal(pTmpruntimePath); runtimePath = Marshal.PtrToStringAnsi(__ptrruntimePath); ClassFactory.FreeString(ref __ptrruntimePath); }
/// <summary> /// 构造函数 /// </summary> /// <param name="name">名称</param> /// <param name="ref_pGlobeCtrl">三维控件</param> public MultiTexturePoint3d(string name, EarthView.World.Spatial3D.Controls.GlobeControl ref_pGlobeCtrl) : base(CreatedWhenConstruct.CWC_NotToCreate) { NameValuePairList list = new NameValuePairList(); BasePtr valuename = new BasePtr(name); list.Add("name", valuename.PtrVal); BasePtr valueref_pGlobeCtrl = new BasePtr(ref_pGlobeCtrl); list.Add("ref_pGlobeCtrl", valueref_pGlobeCtrl.PtrVal); Create("CMultiTexturePoint3d", list); RegisterCallBack(); this.needDispose = true; GlobalTraceInfoMap.Put(this); }
public Gui360EventHandler(EarthView.World.Spatial3D.Controls.GlobeControl globeControl) : base(CreatedWhenConstruct.CWC_NotToCreate) { NameValuePairList list = new NameValuePairList(); BasePtr valueglobeControl = new BasePtr(globeControl); list.Add("globeControl", valueglobeControl.PtrVal); Create("CGui360EventHandlerProxy", list); if (!"EarthView.World.Spatial3DProxy.KmlManager.Gui360EventHandler".Equals(((Object)this).GetType().ToString())) { this.SetCustomExtend(true); } RegisterCallBack(); this.needDispose = true; GlobalTraceInfoMap.Put(this); }
/// <summary> /// 构造函数 /// </summary> /// <param name="ref_control">EarthView::World::Spatial3D::Controls::CGlobeControl控件</param> public ScutcheonTextListener(EarthView.World.Spatial3D.Controls.GlobeControl ref_control) : base(CreatedWhenConstruct.CWC_NotToCreate) { NameValuePairList list = new NameValuePairList(); BasePtr valueref_control = new BasePtr(ref_control); list.Add("ref_control", valueref_control.PtrVal); Create("CScutcheonTextListenerProxy", list); if (!"EarthView.IndustryEngine.IndustryGraphic.ScutcheonTextListener".Equals(((Object)this).GetType().ToString())) { this.SetCustomExtend(true); } RegisterCallBack(); this.needDispose = true; GlobalTraceInfoMap.Put(this); }
/// <summary> ///构造函数 /// </summary> /// <param name="animationName">镜头动画的名字</param> /// <param name="camera">镜头</param> /// <param name="sceneManager">场景管理器</param> /// <param name="parentNode">相机挂接节点的父节点</param> /// <param name="localCenter">parentNode的中心点</param> /// <param name="controlPointMap">控制点集合</param> //CCameraAnimationHandler(_in const EVString& animationName,_in EarthView::World::Graphic::CCamera* ref_camera,_in EarthView::World::Graphic::CSceneManager* ref_sceneManager,_in EarthView::World::Graphic::CSceneNode* ref_parentNode,_in const EarthView::World::Spatial::Math::CVector3& localCenter,_in const EarthView::World::Spatial3D::CControlPointMap& controlPointMap); /// <summary> ///构造函数 /// </summary> /// <param name="animationName">镜头动画的名字</param> /// <param name="ref_globeControl"></param> public CameraAnimationHandler(string animationName, EarthView.World.Spatial3D.Controls.GlobeControl ref_globeControl) : base(CreatedWhenConstruct.CWC_NotToCreate) { NameValuePairList list = new NameValuePairList(); BasePtr valueanimationName = new BasePtr(animationName); list.Add("animationName", valueanimationName.PtrVal); BasePtr valueref_globeControl = new BasePtr(ref_globeControl); list.Add("ref_globeControl", valueref_globeControl.PtrVal); Create("CCameraAnimationHandlerProxy", list); if (!"EarthView.World.Spatial3D.Controls.CameraAnimationHandler".Equals(((Object)this).GetType().ToString())) { this.SetCustomExtend(true); } RegisterCallBack(); this.needDispose = true; GlobalTraceInfoMap.Put(this); }
/// <summary> /// 相机锁定输入交互控制器构造函数 /// </summary> /// <param name="ref_camera">相机</param> /// <param name="ref_sceneManager">场景管理器</param> /// <param name="ref_viewport">视口</param> /// <param name="ref_dynamicModelManager">动态目标管理器,该参数对象的生命周期要与本对象保持一致</param> /// <param name="ref_globeControl">地球窗体</param> public DynamicCameraLockHandler(EarthView.World.Spatial3D.GlobeCamera ref_camera, EarthView.World.Graphic.SceneManager ref_sceneManager, EarthView.World.Graphic.Viewport ref_viewport, EarthView.IndustryEngine.DynamicModelLibrary.DynamicModelObjectManager ref_dynamicModelManager, EarthView.World.Spatial3D.Controls.GlobeControl ref_globeControl) : base(CreatedWhenConstruct.CWC_NotToCreate) { NameValuePairList list = new NameValuePairList(); BasePtr valueref_camera = new BasePtr(ref_camera); list.Add("ref_camera", valueref_camera.PtrVal); BasePtr valueref_sceneManager = new BasePtr(ref_sceneManager); list.Add("ref_sceneManager", valueref_sceneManager.PtrVal); BasePtr valueref_viewport = new BasePtr(ref_viewport); list.Add("ref_viewport", valueref_viewport.PtrVal); BasePtr valueref_dynamicModelManager = new BasePtr(ref_dynamicModelManager); list.Add("ref_dynamicModelManager", valueref_dynamicModelManager.PtrVal); BasePtr valueref_globeControl = new BasePtr(ref_globeControl); list.Add("ref_globeControl", valueref_globeControl.PtrVal); Create("CDynamicCameraLockHandlerProxy", list); if (!"EarthView.IndustryEngine.DynamicModelLibrary.DynamicCameraLockHandler".Equals(((Object)this).GetType().ToString())) { this.SetCustomExtend(true); } RegisterCallBack(); this.needDispose = true; GlobalTraceInfoMap.Put(this); }
/// <summary> /// 拖拽事件 /// </summary> /// <param name="id">对象id</param> /// <param name="layer">图层指针</param> /// <param name="globecontrol">球控件</param> /// <param name="dropx">屏幕坐标x</param> /// <param name="dropy">屏幕坐标y</param> /// <returns></returns> public void DragDrop(uint id, EarthView.World.Spatial.Atlas.Ilayer layer, EarthView.World.Spatial3D.Controls.GlobeControl globecontrol, uint dropx, uint dropy) { EarthView_World_Spatial3DProxy_CGlobeViewEventObject_dragDrop_void_ev_uint32_ILayer_CGlobeControl_ev_uint32_ev_uint32(this.NativeObject, id, object.Equals(layer, null) ? IntPtr.Zero : layer.NativeObject, object.Equals(globecontrol, null) ? IntPtr.Zero : globecontrol.NativeObject, dropx, dropy); }