Set the camera so that we can view the whole scene
| 60 | |
| 61 | // Set the camera so that we can view the whole scene |
| 62 | void Scene::resetCameraToViewAll() { |
| 63 | |
| 64 | // Move the camera to the origin of the scene |
| 65 | mCamera.translateWorld(-mCamera.getOrigin()); |
| 66 | |
| 67 | // Move the camera |
| 68 | mCamera.translateWorld(mCenterScene); |
| 69 | |
| 70 | // Set the zoom of the camera so that the scene center is |
| 71 | // in negative view direction of the camera |
| 72 | mCamera.setZoom(mInitZoom); |
| 73 | } |
| 74 | |
| 75 | // Map the mouse x,y coordinates to a point on a sphere |
| 76 | bool Scene::mapMouseCoordinatesToSphere(double xMouse, double yMouse, |
nothing calls this directly
no test coverage detected