PythonDump for SMESH Controls / Filter

This commit is contained in:
apo 2005-03-30 12:52:17 +00:00
parent 3072473087
commit 64966917fb
2 changed files with 7 additions and 6 deletions

View 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;
}
}

View 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();