]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
0020137: EDF 931 VISU : Trihedron Issues
authordmv <dmv@opencascade.com>
Tue, 27 Jan 2009 13:36:34 +0000 (13:36 +0000)
committerdmv <dmv@opencascade.com>
Tue, 27 Jan 2009 13:36:34 +0000 (13:36 +0000)
src/OCCViewer/OCCViewer_ViewWindow.cxx
src/SVTK/SVTK_ViewWindow.cxx

index f5f7144ea788859d0ca54410b187366a36f12a32..242b3eeb04d5ccd2619c7d0b0e4cbbf347ddeff2 100755 (executable)
@@ -1457,13 +1457,13 @@ void OCCViewer_ViewWindow::setVisualParameters( const QString& parameters )
       params.scaleX    = paramsLst[13].toDouble();
       params.scaleY    = paramsLst[14].toDouble();
       params.scaleZ    = paramsLst[15].toDouble();
+      params.isVisible   = paramsLst[16].toDouble();
+      params.size        = paramsLst[17].toDouble();
     } else {
       params.scaleX    = 1.;
       params.scaleY    = 1.;
       params.scaleZ    = 1.;
     }
-    params.isVisible   = paramsLst[16].toDouble();
-    params.size        = paramsLst[17].toDouble();
 
     performRestoring( params );
   }
index 50cd0b974b34367d37d489367e410155059fcbbb..83329f265c44ac9a68d39e193b16eb05956fab06 100755 (executable)
@@ -1054,7 +1054,6 @@ SVTK_ViewWindow
     // apply graduated axes parameters
     SVTK_CubeAxesActor2D* gradAxesActor = GetCubeAxes();
     if ( gradAxesActor && paramsLst.size() == nAllParams ) {
-      
       int i = nNormalParams+1, j = i + nGradAxisParams - 1;
       ::setGradAxisVisualParams( gradAxesActor->GetXAxisActor2D(), parameters.section( '*', i, j ) ); 
       i = j + 1; j += nGradAxisParams;
@@ -1066,14 +1065,14 @@ SVTK_ViewWindow
        gradAxesActor->VisibilityOn();
       else
        gradAxesActor->VisibilityOff();
+    } else if ( paramsLst.size() == nAllParams ) {
+      if ( paramsLst[90].toUShort() )
+       GetTrihedron()->VisibilityOn();
+      else
+       GetTrihedron()->VisibilityOff();
+      
+      SetTrihedronSize(paramsLst[91].toDouble());
     }
-
-    if ( paramsLst[90].toUShort() )
-      GetTrihedron()->VisibilityOn();
-    else
-      GetTrihedron()->VisibilityOff();
-
-    SetTrihedronSize(paramsLst[91].toDouble());
   }
 }