]> Creatis software - creaMaracasVisu.git/commitdiff
#3230 vtk8itk4wx3-mingw64 MACOS
authorEduardo DAVILA <davila@creatis.insa-lyon.fr>
Wed, 1 Sep 2021 13:32:07 +0000 (15:32 +0200)
committerEduardo DAVILA <davila@creatis.insa-lyon.fr>
Wed, 1 Sep 2021 13:32:07 +0000 (15:32 +0200)
lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkInteractorStyleBaseView.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkBaseView.cxx

index d7c6b6843aca7ba420ab5742f9bce08f551f3ffb..7b8c144d3bbf197f37c84db88bf6556e7b48c392 100644 (file)
@@ -287,7 +287,8 @@ void vtkInteractorStyleBaseView::TransformCoordinate(double &X, double &Y, doubl
                double fP[4];
                imageViewer->GetRenderer()->GetWorldPoint( fP );
 
-               if ( fP[3] ){
+               if ( fP[3] )
+               {
                        fP[0] /= fP[3];
                        fP[1] /= fP[3];
                        fP[2] /= fP[3];
index 77d384390a912d2156b3bf4e9566c626592a013e..81a146e69d73b00930652ca291cc8f9060b001f2 100644 (file)
@@ -117,7 +117,7 @@ void wxVtkBaseView::TransCoordScreenToWorld(double &X, double &Y, double &Z, int
        GetRenderer()->DisplayToWorld();
        double fP[4];
        GetRenderer()->GetWorldPoint( fP );
-       if ( fP[3] ){
+    if ( fP[3] ){
                fP[0] /= fP[3];
                fP[1] /= fP[3];
                fP[2] /= fP[3];
@@ -149,7 +149,7 @@ void wxVtkBaseView::TransFromCoordScreenToWorld(double &X, double &Y, double &Z,
 
        X = xx;
        Y = yy;
-       Z=zz;
+       Z = zz;
 
 // EEDx5
        //JCP 13/05/2009
@@ -175,7 +175,8 @@ void wxVtkBaseView::TransFromCoordScreenToWorld(double &X, double &Y, double &Z,
        if (type!=2)
        {
                Z=fP[2];
-       } 
+       }
+
 }
 
 //---------------------------------------------------------------------------