Ejemplo n.º 1
0
                protected void EarthView_World_Graphic_CShadowCameraSetup_getShadowCamera_void_CSceneManager_CCamera_CViewport_CLight_CCamera_ev_size_t_Function(IntPtr sm, IntPtr cam, IntPtr vp, IntPtr light, IntPtr texCam, ulong iteration)
                {
                    EarthView.World.Graphic.SceneManager csobj_sm = new EarthView.World.Graphic.SceneManager(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_sm.BindNativeObject(sm, "CSceneManager");
                    csobj_sm.Delegate = true;
                    IClassFactory csobj_smClassFactory = GlobalClassFactoryMap.Get(csobj_sm.GetCppInstanceTypeName());

                    if (csobj_smClassFactory != null)
                    {
                        csobj_sm.Delegate = true;
                        csobj_sm          = csobj_smClassFactory.Create() as EarthView.World.Graphic.SceneManager;
                        csobj_sm.BindNativeObject(sm, "CSceneManager");
                        csobj_sm.Delegate = true;
                    }
                    EarthView.World.Graphic.Camera csobj_cam = new EarthView.World.Graphic.Camera(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_cam.BindNativeObject(cam, "CCamera");
                    csobj_cam.Delegate = true;
                    IClassFactory csobj_camClassFactory = GlobalClassFactoryMap.Get(csobj_cam.GetCppInstanceTypeName());

                    if (csobj_camClassFactory != null)
                    {
                        csobj_cam.Delegate = true;
                        csobj_cam          = csobj_camClassFactory.Create() as EarthView.World.Graphic.Camera;
                        csobj_cam.BindNativeObject(cam, "CCamera");
                        csobj_cam.Delegate = true;
                    }
                    EarthView.World.Graphic.Viewport csobj_vp = new EarthView.World.Graphic.Viewport(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_vp.BindNativeObject(vp, "CViewport");
                    csobj_vp.Delegate = true;
                    IClassFactory csobj_vpClassFactory = GlobalClassFactoryMap.Get(csobj_vp.GetCppInstanceTypeName());

                    if (csobj_vpClassFactory != null)
                    {
                        csobj_vp.Delegate = true;
                        csobj_vp          = csobj_vpClassFactory.Create() as EarthView.World.Graphic.Viewport;
                        csobj_vp.BindNativeObject(vp, "CViewport");
                        csobj_vp.Delegate = true;
                    }
                    EarthView.World.Graphic.Light csobj_light = new EarthView.World.Graphic.Light(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_light.BindNativeObject(light, "CLight");
                    csobj_light.Delegate = true;
                    IClassFactory csobj_lightClassFactory = GlobalClassFactoryMap.Get(csobj_light.GetCppInstanceTypeName());

                    if (csobj_lightClassFactory != null)
                    {
                        csobj_light.Delegate = true;
                        csobj_light          = csobj_lightClassFactory.Create() as EarthView.World.Graphic.Light;
                        csobj_light.BindNativeObject(light, "CLight");
                        csobj_light.Delegate = true;
                    }
                    EarthView.World.Graphic.Camera csobj_texCam = new EarthView.World.Graphic.Camera(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_texCam.BindNativeObject(texCam, "CCamera");
                    csobj_texCam.Delegate = true;
                    IClassFactory csobj_texCamClassFactory = GlobalClassFactoryMap.Get(csobj_texCam.GetCppInstanceTypeName());

                    if (csobj_texCamClassFactory != null)
                    {
                        csobj_texCam.Delegate = true;
                        csobj_texCam          = csobj_texCamClassFactory.Create() as EarthView.World.Graphic.Camera;
                        csobj_texCam.BindNativeObject(texCam, "CCamera");
                        csobj_texCam.Delegate = true;
                    }

                    GetShadowCamera(csobj_sm, csobj_cam, csobj_vp, csobj_light, csobj_texCam, iteration);
                }
Ejemplo n.º 2
0
 //// CFunction to implement -- must set the shadow camera properties
 /// <summary>
 /// 摄像机阴影类默认函数
 /// </summary>
 /// <param name="sm"></param>
 /// <param name="cam"></param>
 /// <param name="vp"></param>
 /// <param name="light"></param>
 /// <param name="texCam"></param>
 /// <param name="iteration"></param>
 /// <returns></returns>
 public virtual void GetShadowCamera_NoVirtual(EarthView.World.Graphic.SceneManager sm, EarthView.World.Graphic.Camera cam, EarthView.World.Graphic.Viewport vp, EarthView.World.Graphic.Light light, EarthView.World.Graphic.Camera texCam, ulong iteration)
 {
     EarthView_World_Graphic_CShadowCameraSetup_getShadowCamera_void_CSceneManager_CCamera_CViewport_CLight_CCamera_ev_size_t_NoVirtual(this.NativeObject, object.Equals(sm, null) ? IntPtr.Zero : sm.NativeObject, object.Equals(cam, null) ? IntPtr.Zero : cam.NativeObject, object.Equals(vp, null) ? IntPtr.Zero : vp.NativeObject, object.Equals(light, null) ? IntPtr.Zero : light.NativeObject, object.Equals(texCam, null) ? IntPtr.Zero : texCam.NativeObject, iteration);
 }
                /// <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);
                }
 public override void PostFindVisibleObjects(EarthView.World.Graphic.SceneManager source, EarthView.World.Graphic.SceneManager.ILLUMINATIONRENDERSTAGE irs, EarthView.World.Graphic.Viewport v)
 {
     base.PostFindVisibleObjects_NoVirtual(source, irs, v);
 }
 public override bool HandleFrameEvent(EarthView.World.Spatial.SystemUI.Guievent EVevent, EarthView.World.Graphic.Viewport viewport)
 {
     return(base.HandleFrameEvent_NoVirtual(EVevent, viewport));
 }