]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
dump correction immersible objects and export name
authorPaul RASCLE <paul.rascle@edf.fr>
Fri, 1 Jul 2016 16:43:34 +0000 (18:43 +0200)
committerPaul RASCLE <paul.rascle@edf.fr>
Fri, 1 Jul 2016 16:43:34 +0000 (18:43 +0200)
src/HYDROData/HYDROData_CalculationCase.cxx
src/HYDROData/HYDROData_ImmersibleZone.cxx
src/HYDROPy/HYDROData_Object.sip

index de643ebba34e2712e453207b3a6ae7ea90d911ba..c3d4961dda05a1d078217134fbfde858099f958f 100644 (file)
@@ -196,9 +196,10 @@ QStringList HYDROData_CalculationCase::DumpToPython( const QString&       thePyS
   aResList << "import GEOM";
   aResList << QString( "print \"Entry:\", %1" ).arg( anEntryVar );
   QString aGeomShapeName = aCalculName + "_geom";
-  aResList << QString( "%1 = salome.IDToObject( str( %2 ) )" ).arg( aGeomShapeName ).arg( anEntryVar );
-  aResList << QString( "print \"Geom shape:\", %1" ).arg( aGeomShapeName );
-  aResList << QString( "print \"Geom shape name:\", %1.GetName()" ).arg( aGeomShapeName );
+  aResList << QString( "HYDRO_%1 = salome.IDToObject( str( %2 ) )" ).arg( GetName() ).arg( anEntryVar );
+  aResList << QString( "print \"Geom shape:\", HYDRO_%1" ).arg( GetName() );
+  aResList << QString( "print \"Geom shape name:\", HYDRO_%1.GetName()" ).arg( GetName() );
+
 
   //DumpSampleMeshing( aResList, aStudyName, aGeomShapeName, aCalculName+"_mesh" );
 
index b6a469548e6613f4d819af159487ff9e0c64aee3..c456c8c9ce85f6629307e9871af9959abc47eadb 100644 (file)
@@ -77,6 +77,11 @@ QStringList HYDROData_ImmersibleZone::DumpToPython( const QString& thePyScriptPa
   Handle(HYDROData_PolylineXY) aRefPolyline = GetPolyline();
   setPythonReferenceObject( thePyScriptPath, theTreatedObjects, aResList, aRefPolyline, "SetPolyline" );
 
+  if (!this->IsSubmersible())
+    {
+      aResList << QString( "%1.SetIsSubmersible(False)" ).arg( aZoneName );
+    }
+
   aResList << QString( "" );
 
   aResList << QString( "%1.Update()" ).arg( aZoneName );
index abe2d98498078952d577b4dfb8499ee902d4017e..5e18bd214bb04323777a303b4589970a759583db 100644 (file)
@@ -175,6 +175,7 @@ public:
 
   %End
 
+  void SetIsSubmersible( bool ) const;
 
 protected: