]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Optimization of viewer updates
authorvsv <vsv@opencascade.com>
Tue, 1 Oct 2019 09:18:56 +0000 (12:18 +0300)
committervsv <vsv@opencascade.com>
Tue, 1 Oct 2019 09:19:19 +0000 (12:19 +0300)
src/ModuleBase/ModuleBase_WidgetSelectionFilter.cpp
src/XGUI/XGUI_ViewerProxy.cpp

index ed75e86716d551f04d883ed381e1e19838e1d559..4b6871641c811f0d8af12addf410cd46508347e8 100644 (file)
@@ -325,7 +325,7 @@ ModuleBase_WidgetSelectionFilter::~ModuleBase_WidgetSelectionFilter()
       myListIO.Clear();
       myShowBtn->setChecked(false);
     }
-    aCtx->UpdateCurrentViewer();
+    myWorkshop->viewer()->update();
   }
   SelectorFeature = FeaturePtr();
   AttributeId = "";
@@ -535,7 +535,7 @@ void ModuleBase_WidgetSelectionFilter::onShowOnly(bool theShow)
       }
     }
   }
-  aCtx->UpdateCurrentViewer();
+  myWorkshop->viewer()->update();
 }
 
 void ModuleBase_WidgetSelectionFilter::updateSelectBtn()
index 4cc8abee149450e6872866c2a93c451969293d51..fbff53c41f2180237f277379746c294925d51237 100644 (file)
@@ -527,14 +527,14 @@ void XGUI_ViewerProxy::updateHighlight()
           else {
             myResult = ResultPtr();
           }
-          aContext->UpdateCurrentViewer();
+          update();
         }
         isDisplayed = aRes.get();
       }
     }
     if (!isDisplayed) {
       if (eraseHighlight()) {
-        aContext->UpdateCurrentViewer();
+        update();
       }
       myResult = ResultPtr();
     }