]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Minimize updates of viewer
authorvsv <vsv@opencascade.com>
Mon, 30 Sep 2019 15:00:26 +0000 (18:00 +0300)
committervsv <vsv@opencascade.com>
Mon, 30 Sep 2019 15:00:26 +0000 (18:00 +0300)
src/PartSet/PartSet_CustomPrs.cpp
src/PartSet/PartSet_ExternalPointsMgr.cpp
src/PartSet/PartSet_PreviewPlanes.cpp

index 549a5395e4be6ad7c3409a029218c7126b5a097c..21465eb1cb133887e2a96caf458beb7fe9b87fd6 100644 (file)
@@ -140,7 +140,7 @@ bool PartSet_CustomPrs::displayPresentation(
       PartSet_Module* aModule = dynamic_cast<PartSet_Module*>(myWorkshop->module());
       XGUI_Workshop* aWorkshop = workshop();
       aRedisplayed = aWorkshop->displayer()->displayAIS(myPresentations[theFlag],
-                                         false/*load object in selection*/, false);
+                                         false/*load object in selection*/, 0, false);
       aContext->SetZLayer(anOperationPrs, aModule->getVisualLayerId());
       isModified = true;
     }
index 8e5405d11d4060148c72bcbe45217ff291828153..c7660c93d49ca3c3549f4cb6599a07761129c7da 100644 (file)
@@ -187,7 +187,7 @@ void PartSet_ExternalPointsMgr::updateCenterPresentations()
     else
       myPresentations[aPrs->object()] = aList;
     foreach(AISObjectPtr anAIS, aList) {
-      aDisplayer->displayAIS(anAIS, false);
+      aDisplayer->displayAIS(anAIS, false, 0, false);
       aWorkshop->selectionActivate()->activateAIS(anAIS->impl<Handle(AIS_InteractiveObject)>(),
         TopAbs_VERTEX, false);
     }
index b3f2682b1dfca53a8d8e504f543d81102afc6569..13cbcaafd737951bdb365c7b3fbb868591623e28 100644 (file)
@@ -139,9 +139,9 @@ void PartSet_PreviewPlanes::showPreviewPlanes(ModuleBase_IWorkshop* theWorkshop)
     myXYPlane = createPreviewPlane(anOrigin, aXYDir, aB);
   }
   XGUI_Displayer* aDisp = XGUI_Tools::workshop(theWorkshop)->displayer();
-  aDisp->displayAIS(myYZPlane, true, false);
-  aDisp->displayAIS(myXZPlane, true, false);
-  aDisp->displayAIS(myXYPlane, true, false);
+  aDisp->displayAIS(myYZPlane, true, 0, false);
+  aDisp->displayAIS(myXZPlane, true, 0, false);
+  aDisp->displayAIS(myXYPlane, true, 0, false);
   myPreviewDisplayed = true;
 }