#include "StdMeshers_Arithmetic1D_i.hxx"
#include "SMESH_Gen_i.hxx"
#include "SMESH_Gen.hxx"
+#include "SMESH_PythonDump.hxx"
#include "Utils_CorbaException.hxx"
#include "utilities.h"
}
// Update Python script
- TCollection_AsciiString aStr, aStrLen ((double)theLength), aStrFlag ((int)theIsStart);
- SMESH_Gen_i::AddObject(aStr, _this()) += ".SetLength(";
- aStr += aStrLen + ", " + aStrFlag + ")";
-
- SMESH_Gen_i::AddToCurrentPyScript(aStr);
+ SMESH::TPythonDump() << _this() << ".SetLength( "
+ << theLength << ", " << theIsStart << " )";
}
//=============================================================================
#include "StdMeshers_Deflection1D_i.hxx"
#include "SMESH_Gen_i.hxx"
#include "SMESH_Gen.hxx"
+#include "SMESH_PythonDump.hxx"
#include "Utils_CorbaException.hxx"
#include "utilities.h"
}
// Update Python script
- TCollection_AsciiString aStr, aStrVal ((double)theValue);
- SMESH_Gen_i::AddObject(aStr, _this()) += ".SetDeflection(";
- aStr += aStrVal + ")";
-
- SMESH_Gen_i::AddToCurrentPyScript(aStr);
+ SMESH::TPythonDump() << _this() << ".SetDeflection( " << theValue << " )";
}
//=============================================================================
#include "StdMeshers_LocalLength_i.hxx"
#include "SMESH_Gen_i.hxx"
#include "SMESH_Gen.hxx"
+#include "SMESH_PythonDump.hxx"
#include "Utils_CorbaException.hxx"
#include "utilities.h"
}
// Update Python script
- TCollection_AsciiString aStr, aStrLen ((double)theLength);
- SMESH_Gen_i::AddObject(aStr, _this()) += ".SetLength(";
- aStr += aStrLen + ")";
-
- SMESH_Gen_i::AddToCurrentPyScript(aStr);
+ SMESH::TPythonDump() << _this() << ".SetLength( " << theLength << " )";
}
//=============================================================================
#include "StdMeshers_MaxElementArea_i.hxx"
#include "SMESH_Gen_i.hxx"
#include "SMESH_Gen.hxx"
+#include "SMESH_PythonDump.hxx"
#include "Utils_CorbaException.hxx"
#include "utilities.h"
}
// Update Python script
- TCollection_AsciiString aStr, aStrArea ((double)theArea);
- SMESH_Gen_i::AddObject(aStr, _this()) += ".SetMaxElementArea(";
- aStr += aStrArea + ")";
-
- SMESH_Gen_i::AddToCurrentPyScript(aStr);
+ SMESH::TPythonDump() << _this() << ".SetMaxElementArea( " << theArea << " )";
}
//=============================================================================
#include "StdMeshers_MaxElementVolume_i.hxx"
#include "SMESH_Gen_i.hxx"
#include "SMESH_Gen.hxx"
+#include "SMESH_PythonDump.hxx"
#include "Utils_CorbaException.hxx"
#include "utilities.h"
}
// Update Python script
- TCollection_AsciiString aStr, aStrVol ((double)theVolume);
- SMESH_Gen_i::AddObject(aStr, _this()) += ".SetMaxElementVolume(";
- aStr += aStrVol + ")";
-
- SMESH_Gen_i::AddToCurrentPyScript(aStr);
+ SMESH::TPythonDump() << _this() << ".SetMaxElementVolume( " << theVolume << " )";
}
//=============================================================================
#include "StdMeshers_NumberOfSegments_i.hxx"
#include "SMESH_Gen_i.hxx"
#include "SMESH_Gen.hxx"
+#include "SMESH_PythonDump.hxx"
#include "Utils_CorbaException.hxx"
#include "utilities.h"
}
// Update Python script
- TCollection_AsciiString aStr, aStrNb ((int)theSegmentsNumber);
- SMESH_Gen_i::AddObject(aStr, _this()) += ".SetNumberOfSegments(";
- aStr += aStrNb + ")";
-
- SMESH_Gen_i::AddToCurrentPyScript(aStr);
+ SMESH::TPythonDump() << _this() << ".SetNumberOfSegments( " << theSegmentsNumber << " )";
}
//=============================================================================
ASSERT( myBaseImpl );
try {
this->GetImpl()->SetDistrType( (::StdMeshers_NumberOfSegments::DistrType) typ );
+
+ // Update Python script
+ SMESH::TPythonDump() << _this() << ".SetDistrType( " << typ << " )";
}
catch ( SALOME_Exception& S_ex ) {
THROW_SALOME_CORBA_EXCEPTION( S_ex.what(),
ASSERT( myBaseImpl );
try {
this->GetImpl()->SetScaleFactor( theScaleFactor );
+ // Update Python script
+ SMESH::TPythonDump() << _this() << ".SetScaleFactor( " << theScaleFactor << " )";
}
catch ( SALOME_Exception& S_ex ) {
THROW_SALOME_CORBA_EXCEPTION( S_ex.what(),
tbl[i] = table[i];
try {
this->GetImpl()->SetTableFunction( tbl );
+ // Update Python script
+ SMESH::TPythonDump() << _this() << ".SetTableFunction( " << table << " )";
}
catch ( SALOME_Exception& S_ex ) {
THROW_SALOME_CORBA_EXCEPTION( S_ex.what(),
ASSERT( myBaseImpl );
try {
this->GetImpl()->SetExpressionFunction( expr );
+ // Update Python script
+ SMESH::TPythonDump() << _this() << ".SetExpressionFunction( " << expr << " )";
}
catch ( SALOME_Exception& S_ex ) {
THROW_SALOME_CORBA_EXCEPTION( S_ex.what(),
ASSERT( myBaseImpl );
try {
this->GetImpl()->SetExponentMode( isExp );
+ // Update Python script
+ SMESH::TPythonDump() << _this() << ".SetExponentMode( " << isExp << " )";
}
catch ( SALOME_Exception& S_ex ) {
THROW_SALOME_CORBA_EXCEPTION( S_ex.what(),
#include "StdMeshers_StartEndLength_i.hxx"
#include "SMESH_Gen_i.hxx"
#include "SMESH_Gen.hxx"
+#include "SMESH_PythonDump.hxx"
#include "Utils_CorbaException.hxx"
#include "utilities.h"
}
// Update Python script
- TCollection_AsciiString aStr, aStrLen ((double)theLength), aStrFlag ((int)theIsStart);
- SMESH_Gen_i::AddObject(aStr, _this()) += ".SetLength(";
- aStr += aStrLen + ", " + aStrFlag + ")";
-
- SMESH_Gen_i::AddToCurrentPyScript(aStr);
+ SMESH::TPythonDump() << _this() << ".SetLength( "
+ << theLength << ", " << theIsStart << " )";
}
//=============================================================================