private void Trackball_UserMovedCamera(object sender, UserMovedCameraArgs e)
 {
     if (_selectedBean != null)
     {
         // If this doesn't change, then the world update will snap the camera back
         _selectedBean.CameraOffset = _camera.Position - _selectedBean.Bean.PositionWorld;
     }
 }
예제 #2
0
 protected virtual void OnUserMovedCamera(UserMovedCameraArgs e)
 {
     if (this.UserMovedCamera != null)
     {
         this.UserMovedCamera(this, e);
     }
 }
예제 #3
0
 private void Trackball_UserMovedCamera(object sender, UserMovedCameraArgs e)
 {
     try
     {
         if (_dragHitShapeType == DragHitShapeType.Plane_Camera && e.IsRotate)
         {
             ChangeDragHitShape();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString(), _msgboxCaption, MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }