From: SONOLET Aymeric Date: Fri, 1 Dec 2023 11:05:25 +0000 (+0100) Subject: feat PublishToStudy: Add steps for obj synchro with shaperstudy X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fast%2Fvu;p=modules%2Fshaper.git feat PublishToStudy: Add steps for obj synchro with shaperstudy --- diff --git a/src/SHAPERGUI/SHAPERGUI.cpp b/src/SHAPERGUI/SHAPERGUI.cpp index bd9716b8b..47cd9d827 100644 --- a/src/SHAPERGUI/SHAPERGUI.cpp +++ b/src/SHAPERGUI/SHAPERGUI.cpp @@ -1401,6 +1401,8 @@ void SHAPERGUI::publishToStudy() { if (isActiveModule() && ModelAPI_Session::get()->hasModuleDocument()) { myWorkshop->module()->launchOperation("PublishToStudy", false); + hideDestroyedObjects(); + synchronizeObjectsVisibility(); // update SHAPERSTUDY objects in OCC and VTK viewers QStringList aVMList; @@ -1409,6 +1411,17 @@ void SHAPERGUI::publishToStudy() } } +// TODO: if SHAPERSTUDY obj does not have a corresponding SHAPER obj, make it +// hidden. +void SHAPERGUI::hideDestroyedObjects() +{ +} + +// TODO: synchronize SHAPER objects visibility with SHAPERSTUDY obj. +void SHAPERGUI::synchronizeObjectsVisibility() +{ +} + void SHAPERGUI::fillPartSetInfoPanel(QtxInfoPanel* theInfoPanel) { QIntList aShaperActions = shaperActions(); diff --git a/src/SHAPERGUI/SHAPERGUI.h b/src/SHAPERGUI/SHAPERGUI.h index 2a84accc3..777ef65ec 100644 --- a/src/SHAPERGUI/SHAPERGUI.h +++ b/src/SHAPERGUI/SHAPERGUI.h @@ -265,6 +265,10 @@ private slots: void hideInternalWindows(); + void hideDestroyedObjects(); + + void synchronizeObjectsVisibility(); + /// List of registered nested actions QStringList myNestedActionsList;