From: vsv Date: Mon, 30 Sep 2019 15:00:26 +0000 (+0300) Subject: Minimize updates of viewer X-Git-Tag: V9_4_0a2~4^2~51 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a9f5309bd682fcf172c58d4ee25720d1633b0ea6;p=modules%2Fshaper.git Minimize updates of viewer --- diff --git a/src/PartSet/PartSet_CustomPrs.cpp b/src/PartSet/PartSet_CustomPrs.cpp index 549a5395e..21465eb1c 100644 --- a/src/PartSet/PartSet_CustomPrs.cpp +++ b/src/PartSet/PartSet_CustomPrs.cpp @@ -140,7 +140,7 @@ bool PartSet_CustomPrs::displayPresentation( PartSet_Module* aModule = dynamic_cast(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; } diff --git a/src/PartSet/PartSet_ExternalPointsMgr.cpp b/src/PartSet/PartSet_ExternalPointsMgr.cpp index 8e5405d11..c7660c93d 100644 --- a/src/PartSet/PartSet_ExternalPointsMgr.cpp +++ b/src/PartSet/PartSet_ExternalPointsMgr.cpp @@ -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(), TopAbs_VERTEX, false); } diff --git a/src/PartSet/PartSet_PreviewPlanes.cpp b/src/PartSet/PartSet_PreviewPlanes.cpp index b3f2682b1..13cbcaafd 100644 --- a/src/PartSet/PartSet_PreviewPlanes.cpp +++ b/src/PartSet/PartSet_PreviewPlanes.cpp @@ -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; }