]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Deleted Study parameter
authormpa <mpa@opencascade.com>
Fri, 3 Feb 2017 13:11:59 +0000 (16:11 +0300)
committermpa <mpa@opencascade.com>
Fri, 3 Feb 2017 13:11:59 +0000 (16:11 +0300)
doc/salome/gui/input/using_pluginsmanager.doc
src/GuiHelpers/SALOME_GuiServices.cxx
src/SalomeApp/pluginsdemo/salome_plugins.py
src/SalomeApp/pluginsdemo/trihedron.py

index bff116f05798a74618b601190418d2226e0f6218..71302d2bbdddf567d70841708fa9f3c50109026b 100644 (file)
@@ -100,7 +100,7 @@ training course):
 import salome
 import GEOM
 from salome.geom import geomBuilder
-geompy = geomBuilder.New(salome.myStudy)
+geompy = geomBuilder.New()
 
 # Create the objects
 Vx = geompy.MakeVectorDXDYDZ(10, 0, 0)
@@ -122,10 +122,10 @@ import salome_pluginsmanager
 def trihedron(context):
     import GEOM
     from salome.geom import geomBuilder
-    geompy = geomBuilder.New(salome.myStudy)
+    geompy = geomBuilder.New()
     # Intialize the geompy factory with the active study
     activeStudy = context.study
-    geompy.init_geom(activeStudy)
+    geompy.init_geom()
     # Create the objects
     Vx = geompy.MakeVectorDXDYDZ(10, 0, 0)
     Vy = geompy.MakeVectorDXDYDZ(0, 10, 0)
index c834860cbb8a0156d2f8d8f3f33f579bad42e336..59d77362e5612dc8028a498cd8780b54c8c5f00c 100644 (file)
@@ -73,7 +73,7 @@ namespace GUI {
    * defined in the SALOME session, returns null otherwise.
    */
   SALOMEDS::Study_ptr getStudyServant() {
-    return KERNEL::getStudyServant();
+    return SALOMEDS::Study::_duplicate(KERNEL::getStudyServant());
   }
 
   // __GBO__ Question: what is the difference between a
index d2b43cb685cd9894033262014c4ff3c032c07789..f93ba12a74bf2c69c355988cd8ac674bb39b2228 100755 (executable)
@@ -28,7 +28,7 @@ if DEMO_IS_ACTIVATED:
   try:
     import GEOM
     from salome.geom import geomBuilder
-    geompy = geomBuilder.New(salome.myStudy)
+    geompy = geomBuilder.New()
     
     import SMESH, SALOMEDS
     from salome.smesh import smeshBuilder
@@ -48,7 +48,7 @@ if DEMO_IS_ACTIVATED:
       from salome.geom import geomBuilder
 
       # Intialize the geompy factory with the active study
-      geompy = geomBuilder.New(context.study)
+      geompy = geomBuilder.New()
 
       # Create the objects
       Vx = geompy.MakeVectorDXDYDZ(10, 0, 0)
@@ -75,7 +75,7 @@ if DEMO_IS_ACTIVATED:
       from salome.geom import geomBuilder
 
       # Intialize the geompy factory with the active study
-      geompy = geomBuilder.New(context.study)
+      geompy = geomBuilder.New()
 
       # Create the objects
       Vx = geompy.MakeVectorDXDYDZ(10, 0, 0)
index 3439d0830f556667da8136260aa580e46e154355..95fd3d00105fd55614146393b3cdc5da96898a5d 100644 (file)
@@ -26,7 +26,7 @@ import salome
 
 import GEOM
 from salome.geom import geomBuilder
-geompy = geomBuilder.New(salome.myStudy)
+geompy = geomBuilder.New()
 
 # Create the objects
 Vx = geompy.MakeVectorDXDYDZ(10, 0, 0)