Exemplo n.º 1
0
                /// <summary>
                /// 动态目标管理器场景监听构造函数
                /// </summary>
                /// <param name="ref_manager">动态目标管理器,该参数对象的生命周期要保持大于本对象的生命周期</param>
                public DynamicModelManagerListener(EarthView.IndustryEngine.DynamicModelLibrary.DynamicModelObjectManager ref_manager) : base(CreatedWhenConstruct.CWC_NotToCreate)
                {
                    NameValuePairList list             = new NameValuePairList();
                    BasePtr           valueref_manager = new BasePtr(ref_manager);

                    list.Add("ref_manager", valueref_manager.PtrVal);
                    Create("CDynamicModelManagerListenerProxy", list);
                    if (!"EarthView.IndustryEngine.DynamicModelLibrary.DynamicModelManagerListener".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);
                }