]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
feat PublishToStudy: Add steps for obj synchro with shaperstudy ast/vu
authorSONOLET Aymeric <aymeric.sonolet@cea.fr>
Fri, 1 Dec 2023 11:05:25 +0000 (12:05 +0100)
committerSONOLET Aymeric <aymeric.sonolet@cea.fr>
Fri, 1 Dec 2023 15:04:03 +0000 (16:04 +0100)
src/SHAPERGUI/SHAPERGUI.cpp
src/SHAPERGUI/SHAPERGUI.h

index bd9716b8b241925e9b4729ba483757c2e064ee2e..47cd9d827a38180995247563909a8f07d99683ec 100644 (file)
@@ -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();
index 2a84accc3bc5bf7ddbd571e1a0f086b656a24f1e..777ef65ec04b6214c5b50777ace9a1f0e730c57d 100644 (file)
@@ -265,6 +265,10 @@ private slots:
 
   void hideInternalWindows();
 
+  void hideDestroyedObjects();
+
+  void synchronizeObjectsVisibility();
+
   /// List of registered nested actions
   QStringList myNestedActionsList;