]> SALOME platform Git repositories - plugins/blsurfplugin.git/commitdiff
Salome HOME
WIP agy/arch2_ic0
authorAnthony Geay <anthony.geay@edf.fr>
Wed, 3 Feb 2021 07:56:52 +0000 (08:56 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Wed, 3 Feb 2021 07:56:52 +0000 (08:56 +0100)
src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx
src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx
src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx

index 27695e9d144adb0fce577fcac00e35b3a02e9e67..95dcd01de7d7e641a50940c918a958ceb8c012be 100644 (file)
@@ -504,7 +504,7 @@ TopoDS_Shape BLSURFPlugin_BLSURF::entryToShape(std::string entry)
 {
   GEOM::GEOM_Object_var aGeomObj;
   TopoDS_Shape S = TopoDS_Shape();
-  SALOMEDS::SObject_var aSObj = SMESH_Gen_i::getStudyServant()->FindObjectID( entry.c_str() );
+  SALOMEDS::SObject_var aSObj = SMESH_Gen_i::GetSMESHGen()->getStudyServant()->FindObjectID( entry.c_str() );
   if (!aSObj->_is_nil()) {
     CORBA::Object_var obj = aSObj->GetObject();
     aGeomObj = GEOM::GEOM_Object::_narrow(obj);
index 3db9478142e23e66ef8d0712c4867db5c5b97e36..0b99e73eadd3f266ab1352ee9ea094ae2a21dce4 100644 (file)
@@ -274,7 +274,7 @@ TopoDS_Shape BLSURFPlugin_Hypothesis::entryToShape(std::string entry)
   GEOM::GEOM_Object_var aGeomObj;
   
   TopoDS_Shape S = TopoDS_Shape();
-  SALOMEDS::SObject_var aSObj = SMESH_Gen_i::getStudyServant()->FindObjectID( entry.c_str() );
+  SALOMEDS::SObject_var aSObj = SMESH_Gen_i::GetSMESHGen()->getStudyServant()->FindObjectID( entry.c_str() );
   if (!aSObj->_is_nil() ) {
     CORBA::Object_var obj = aSObj->GetObject();
     aGeomObj = GEOM::GEOM_Object::_narrow(obj);
index e13c6c578b8845c244bad881c265024124cd9f5a..c064e484a021a7b08f1a0d28372d125e88518831 100644 (file)
@@ -3605,7 +3605,7 @@ LightApp_SelectionMgr* BLSURFPluginGUI_HypothesisCreator::selectionMgr()
 CORBA::Object_var BLSURFPluginGUI_HypothesisCreator::entryToObject(QString entry)
 {
   CORBA::Object_var obj;
-  SALOMEDS::SObject_var aSObj = SMESH_Gen_i::getStudyServant()->FindObjectID( entry.toStdString().c_str() );
+  SALOMEDS::SObject_var aSObj = SMESH_Gen_i::GetSMESHGen()->getStudyServant()->FindObjectID( entry.toStdString().c_str() );
   if (!aSObj->_is_nil()) {
     obj = aSObj->GetObject();
     aSObj->UnRegister();