]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
PAL12688 - python command <3D view>.ShowPart( VISU.View.VIEWER, 0 ) don't change...
authorasl <asl@opencascade.com>
Thu, 24 Aug 2006 13:23:20 +0000 (13:23 +0000)
committerasl <asl@opencascade.com>
Thu, 24 Aug 2006 13:23:20 +0000 (13:23 +0000)
src/VISU_I/VISU_View_i.cc

index 9a60677f4813c8fa2e0eeb94476baf38d829976f..abb6ad9b1da7a637298e46840812e009d8867c7c 100644 (file)
@@ -156,9 +156,14 @@ namespace VISU {
          myApplication->setWindowShown(SalomeApp_Application::WT_LogWindow,myState);
          break;
        case VISU::View::VIEWER:{
-         ViewManagerList aViewManagerList = myApplication->viewManagers();
-         // to do something
-         // ...
+         ViewManagerList mgrs = myApplication->viewManagers();
+         ViewManagerList::const_iterator anIt = mgrs.begin(), aLast = mgrs.end();
+         for( ; anIt!=aLast; anIt++ )
+         {
+           const QPtrVector<SUIT_ViewWindow>& views = (*anIt)->getViews();
+           for( int i=0; i<views.count(); i++ )
+             views[i]->setShown( myState );
+         }
          break;
        }}
       }