Commit 095e3fa8 authored by Emmanuel Promayon's avatar Emmanuel Promayon

FIXED code cleaning

parent ca1f4ae2
......@@ -1399,16 +1399,16 @@ void RendererWidget::resetCameraSettings() {
switch (cameraOrientation) {
case LEFT_UP:
// default position
cam->SetPosition(0, 0, -1);
cam->SetFocalPoint(0, 0, 0);
cam->SetViewUp(0, 1, 0);
cam->SetPosition(0.0, 0.0, -1.0);
cam->SetFocalPoint(0.0, 0.0, 0.0);
cam->SetViewUp(0.0, 1.0, 0.0);
cam->OrthogonalizeViewUp();
break;
case RIGHT_DOWN:
// default position
cam->SetPosition(0, 0, -1);
cam->SetFocalPoint(0, 0, 0);
cam->SetViewUp(0, -1, 0);
cam->SetPosition(0.0, 0.0, -1.0);
cam->SetFocalPoint(0.0, 0.0, 0.0);
cam->SetViewUp(0.0, -1.0, 0.0);
cam->OrthogonalizeViewUp();
break;
// For Coronal view of Coronal Viewer
......@@ -1427,9 +1427,9 @@ void RendererWidget::resetCameraSettings() {
break;
case RIGHT_UP:
default:
cam->SetPosition(0, 0, 1);
cam->SetFocalPoint(0, 0, 0);
cam->SetViewUp(0, 1, 0);
cam->SetPosition(0.0, 0.0, 1.0);
cam->SetFocalPoint(0.0, 0.0, 0.0);
cam->SetViewUp(0.0, 1.0, 0.0);
cam->OrthogonalizeViewUp();
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment