]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Add "display only" functionality for created mesh(PAL13556)
authorepa <epa@opencascade.com>
Mon, 30 Oct 2006 08:29:16 +0000 (08:29 +0000)
committerepa <epa@opencascade.com>
Mon, 30 Oct 2006 08:29:16 +0000 (08:29 +0000)
src/VISUGUI/VisuGUI_Tools.cxx

index 1ffbc39916aea7bce14049c3b466e95d033b0357..f1a23c01794f0783522f222860d97de00786056c 100644 (file)
@@ -1105,6 +1105,10 @@ namespace VISU
         Utils_Timer timer;
         timer.Start();
 #endif
+        if(GetResourceMgr()->booleanValue("VISU","display_only",false)){
+         const VisuGUI* av = dynamic_cast<const VisuGUI*>(theModule);
+         if(av)(const_cast<VisuGUI*>(av))->OnEraseAll();
+       }
         PublishMeshInView(theModule, pPresent, theViewWindow);
         SetFitAll(theViewWindow);
 #ifdef CHECKTIME