Salome HOME
PAL12147. make different mesh_editors for different meshes in DumpPython file
authoreap <eap@opencascade.com>
Wed, 12 Apr 2006 14:12:50 +0000 (14:12 +0000)
committereap <eap@opencascade.com>
Wed, 12 Apr 2006 14:12:50 +0000 (14:12 +0000)
src/SMESH_I/SMESH_DumpPython.cxx
src/SMESH_I/SMESH_MeshEditor_i.hxx

index 491f24ad32697bd518203e9129c41a7ba823b2ef..bd0e62e1dc6c9afd93795bc3f8e365ec0b93597c 100644 (file)
@@ -26,6 +26,7 @@
 #include "SMESH_PythonDump.hxx"
 #include "SMESH_Gen_i.hxx"
 #include "SMESH_Filter_i.hxx"
+#include "SMESH_MeshEditor_i.hxx"
 #include "SMESH_2smeshpy.hxx"
 
 #include <TColStd_HSequenceOfInteger.hxx>
@@ -253,7 +254,7 @@ namespace SMESH
 
   TPythonDump& TPythonDump::operator<<(SMESH_MeshEditor_i* theArg)
   {
-    myStream << MeshEditorName(); return *this;
+    myStream << MeshEditorName() << "_" << ( theArg ? theArg->GetMeshId() : -1 ); return *this;
   }
 
   TPythonDump& TPythonDump::operator<<(const TCollection_AsciiString & theStr)
index 0632747a643098777209a1315fe0f22ddbe5aebe..143ad199f988f12c99898451246587e5c695301f 100644 (file)
@@ -227,6 +227,8 @@ class SMESH_MeshEditor_i: public POA_SMESH::SMESH_MeshEditor
                     CORBA::Long NodeID2OfSide1ToMerge,
                     CORBA::Long NodeID2OfSide2ToMerge);
 
+  int GetMeshId() const { return _myMesh->GetId(); }
+
  private:
   SMESHDS_Mesh * GetMeshDS() { return _myMesh->GetMeshDS(); }
   SMESH_Mesh   *_myMesh;