From: apo Date: Tue, 29 Mar 2005 14:49:22 +0000 (+0000) Subject: PythonDump for SMESH Controls / Filter X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b95059a91c2bbd8e8cb6551d872a30e0ad59fb9e;p=modules%2Fsmesh.git PythonDump for SMESH Controls / Filter --- diff --git a/src/SMESH_I/SMESH_DumpPython.cxx b/src/SMESH_I/SMESH_DumpPython.cxx index cd9da6336..73223beb7 100644 --- a/src/SMESH_I/SMESH_DumpPython.cxx +++ b/src/SMESH_I/SMESH_DumpPython.cxx @@ -81,6 +81,15 @@ namespace SMESH return theString; } + TCollection_AsciiString& + operator<<(TCollection_AsciiString& theString, + SMESH::Filter_i* theArg) + { + theString += TCollection_AsciiString("aFilter_"); + theString += TCollection_AsciiString(int(theArg)); + return theString; + } + TCollection_AsciiString& operator<<(TCollection_AsciiString& theString, SMESH::Functor_i* theArg) @@ -414,7 +423,6 @@ TCollection_AsciiString SMESH_Gen_i::DumpPython_impl else aScript += "\n\tsmesh.SetCurrentStudy(None)"; - Standard_Integer posToInertGlobalVars = aScript.Length(); TCollection_AsciiString globalVars; // Dump trace of restored study diff --git a/src/SMESH_I/SMESH_Filter_i.cxx b/src/SMESH_I/SMESH_Filter_i.cxx index fedb37bb2..b37020f4e 100644 --- a/src/SMESH_I/SMESH_Filter_i.cxx +++ b/src/SMESH_I/SMESH_Filter_i.cxx @@ -416,7 +416,7 @@ Functor_i::Functor_i(): void Functor_i::SetMesh( SMESH_Mesh_ptr theMesh ) { myFunctorPtr->SetMesh( MeshPtr2SMDSMesh( theMesh ) ); - INFOS("Functor_i::SetMesh~"); + TPythonDump()<SetTolerance( theToler ); + TPythonDump()<SetPredicate(myPredicate->GetPredicate()); myPredicate->Register(); + TPythonDump()<SetPredicate1(myPredicate1->GetPredicate()); myPredicate1->Register(); + TPythonDump()<SetPredicate2(myPredicate2->GetPredicate()); myPredicate2->Register(); + TPythonDump()<_this(); + TPythonDump()<_this(); + TPythonDump()<_this(); + TPythonDump()<_this(); + TPythonDump()<_this(); + TPythonDump()<_this(); + TPythonDump()<_this(); + TPythonDump()<GetPredicate() ); myPredicate->Register(); + TPythonDump()<