// 4개의 뷰포트마다 저마다 다른 카메라를 가진다 private void ChangeCameraAndViewPort(VIEWPORT v) { Vector3 ISSPos = new Vector3(0, 0, 0); switch (v) { case VIEWPORT.PERSPECTIVE: m_device.Transform.View = Matrix.LookAtLH(new Vector3(30 + m_CameraZoomOutVar, 15 + m_CameraZoomOutVar, 15 + m_CameraZoomOutVar), ISSPos, new Vector3(0, 0, 1)); m_device.Viewport = defaultViewport; break; case VIEWPORT.AXIS_X: m_device.Transform.View = Matrix.LookAtLH(new Vector3(60 + m_CameraZoomOutVar, 0, 0), ISSPos, new Vector3(0, 0, 1)); m_device.Viewport = AxisXViewport; break; case VIEWPORT.AXIS_Y: m_device.Transform.View = Matrix.LookAtLH(new Vector3(0, 60 + m_CameraZoomOutVar, 0), ISSPos, new Vector3(0, 0, 1)); m_device.Viewport = AxisYViewport; break; case VIEWPORT.AXIS_Z: m_device.Transform.View = Matrix.LookAtLH(new Vector3(0, 0, 60 + m_CameraZoomOutVar), ISSPos, new Vector3(0, 1, 0)); m_device.Viewport = AxisZViewport; break; default: m_device.Transform.View = Matrix.LookAtLH(new Vector3(20, 5, 13), ISSPos, new Vector3(0, 0, 1)); break; } }
internal static HandleRef getCPtr(VIEWPORT obj) { return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr); }
// 4개의 뷰포트마다 저마다 다른 카메라를 가진다 private void ChangeCameraAndViewPort(VIEWPORT v) { Vector3 ISSPos = new Vector3(0, 0, 0); switch (v) { case VIEWPORT.PERSPECTIVE: m_device.Transform.View = Matrix.LookAtLH(new Vector3(30 + m_CameraZoomOutVar, 15 + m_CameraZoomOutVar, 15 + m_CameraZoomOutVar), ISSPos, new Vector3(0, 0, 1)); m_device.Viewport = defaultViewport; break; case VIEWPORT.AXIS_X: m_device.Transform.View = Matrix.LookAtLH(new Vector3(60 + m_CameraZoomOutVar, 0, 0), ISSPos, new Vector3(0, 0, 1)); m_device.Viewport = AxisXViewport; break; case VIEWPORT.AXIS_Y: m_device.Transform.View = Matrix.LookAtLH(new Vector3(0, 60 + m_CameraZoomOutVar, 0), ISSPos, new Vector3(0, 0, 1)); m_device.Viewport = AxisYViewport; break; case VIEWPORT.AXIS_Z: m_device.Transform.View = Matrix.LookAtLH(new Vector3(0, 0, 60 + m_CameraZoomOutVar), ISSPos, new Vector3(0, 1, 0)); m_device.Viewport = AxisZViewport; break; default: m_device.Transform.View = Matrix.LookAtLH(new Vector3(20, 5, 13), ISSPos, new Vector3(0, 0, 1)); break; } }