]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PythonDump for SMESH Controls / Filter
authorapo <apo@opencascade.com>
Wed, 30 Mar 2005 12:52:17 +0000 (12:52 +0000)
committerapo <apo@opencascade.com>
Wed, 30 Mar 2005 12:52:17 +0000 (12:52 +0000)
src/SMESHGUI/SMESHGUI_FilterUtils.cxx
src/SMESH_I/SMESH_Filter_i.cxx

index 4b0ae92de7ec286f43d8232827a64ee331a304bb..dc5e4726dc0acf9619c0e25179cb88d4e6220772 100644 (file)
@@ -27,11 +27,12 @@ namespace SMESH
 
   SMESH::FilterManager_var GetFilterManager()
   {
-    static SMESH::FilterManager_var aFilterManager;
-    if(CORBA::is_nil(aFilterManager)){
-      aFilterManager = GetSMESHGen()->CreateFilterManager();
-    }
-    return aFilterManager;
+    return GetSMESHGen()->CreateFilterManager(); // DumpPython
+    //static SMESH::FilterManager_var aFilterManager;
+    //if(CORBA::is_nil(aFilterManager)){
+    //  aFilterManager = GetSMESHGen()->CreateFilterManager();
+    //}
+    //return aFilterManager;
   }
 
 }
index d689fa6ff612063e457864293dc842d987dc501e..b376956f8f53ded3cf076bba93e75b31bddbd168 100644 (file)
@@ -1868,7 +1868,7 @@ CORBA::Boolean Filter_i::SetCriteria( const SMESH::Filter::Criteria& theCriteria
 
     TPythonDump()<<this<<".SetCriteria(SMESH.Filter.Criteria("<<
       aCriterion<<","<<aCompare<<","<<aThreshold<<","<<aUnary<<","<<aBinary<<","<<
-      aTolerance<<",'"<<aThresholdStr<<"',"<<aTypeOfElem<<","<<aPrecision<<")";
+      aTolerance<<",'"<<aThresholdStr<<"',"<<aTypeOfElem<<","<<aPrecision<<"))";
     
     SMESH::Predicate_ptr aPredicate = SMESH::Predicate::_nil();
     SMESH::NumericalFunctor_ptr aFunctor = SMESH::NumericalFunctor::_nil();