mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-12 17:50:34 +05:00
0020168: EDF SMESH 953: uncomplete selection with filter 'belong on geom'
This commit is contained in:
parent
7010da6642
commit
b199783795
@ -1123,7 +1123,9 @@ void SMESHGUI_FilterTable::SetCriterion (const int theRow,
|
|||||||
if (theCriterion.Compare == SMESH::FT_EqualTo ||
|
if (theCriterion.Compare == SMESH::FT_EqualTo ||
|
||||||
theCriterion.Type == SMESH::FT_BelongToPlane ||
|
theCriterion.Type == SMESH::FT_BelongToPlane ||
|
||||||
theCriterion.Type == SMESH::FT_BelongToCylinder ||
|
theCriterion.Type == SMESH::FT_BelongToCylinder ||
|
||||||
theCriterion.Type == SMESH::FT_BelongToGenSurface)
|
theCriterion.Type == SMESH::FT_BelongToGenSurface ||
|
||||||
|
theCriterion.Type == SMESH::FT_BelongToGeom ||
|
||||||
|
theCriterion.Type == SMESH::FT_LyingOnGeom)
|
||||||
{
|
{
|
||||||
QTableWidgetItem* anItem = aTable->item(theRow, 0);
|
QTableWidgetItem* anItem = aTable->item(theRow, 0);
|
||||||
if (!myAddWidgets.contains(anItem))
|
if (!myAddWidgets.contains(anItem))
|
||||||
@ -1264,8 +1266,6 @@ void SMESHGUI_FilterTable::updateAdditionalWidget()
|
|||||||
ComboItem* anItem = ((ComboItem*)aTable->item(aRow, 0));
|
ComboItem* anItem = ((ComboItem*)aTable->item(aRow, 0));
|
||||||
int aCriterion = GetCriterionType(aRow);
|
int aCriterion = GetCriterionType(aRow);
|
||||||
bool toEnable = ((ComboItem*)aTable->item(aRow, 1))->value() == SMESH::FT_EqualTo &&
|
bool toEnable = ((ComboItem*)aTable->item(aRow, 1))->value() == SMESH::FT_EqualTo &&
|
||||||
aCriterion != SMESH::FT_BelongToGeom &&
|
|
||||||
aCriterion != SMESH::FT_LyingOnGeom &&
|
|
||||||
aCriterion != SMESH::FT_RangeOfIds &&
|
aCriterion != SMESH::FT_RangeOfIds &&
|
||||||
aCriterion != SMESH::FT_FreeEdges &&
|
aCriterion != SMESH::FT_FreeEdges &&
|
||||||
aCriterion != SMESH::FT_FreeFaces &&
|
aCriterion != SMESH::FT_FreeFaces &&
|
||||||
|
@ -2189,6 +2189,7 @@ static inline bool getCriteria( Predicate_i* thePred,
|
|||||||
theCriteria[ i ].ThresholdStr = aPred->GetShapeName();
|
theCriteria[ i ].ThresholdStr = aPred->GetShapeName();
|
||||||
theCriteria[ i ].ThresholdID = aPred->GetShapeID();
|
theCriteria[ i ].ThresholdID = aPred->GetShapeID();
|
||||||
theCriteria[ i ].TypeOfElement = aPred->GetElementType();
|
theCriteria[ i ].TypeOfElement = aPred->GetElementType();
|
||||||
|
theCriteria[ i ].Tolerance = aPred->GetTolerance();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -2224,6 +2225,7 @@ static inline bool getCriteria( Predicate_i* thePred,
|
|||||||
theCriteria[ i ].ThresholdStr = aPred->GetShapeName();
|
theCriteria[ i ].ThresholdStr = aPred->GetShapeName();
|
||||||
theCriteria[ i ].ThresholdID = aPred->GetShapeID();
|
theCriteria[ i ].ThresholdID = aPred->GetShapeID();
|
||||||
theCriteria[ i ].TypeOfElement = aPred->GetElementType();
|
theCriteria[ i ].TypeOfElement = aPred->GetElementType();
|
||||||
|
theCriteria[ i ].Tolerance = aPred->GetTolerance();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -2450,6 +2452,7 @@ CORBA::Boolean Filter_i::SetCriteria( const SMESH::Filter::Criteria& theCriteria
|
|||||||
SMESH::BelongToGeom_ptr tmpPred = aFilterMgr->CreateBelongToGeom();
|
SMESH::BelongToGeom_ptr tmpPred = aFilterMgr->CreateBelongToGeom();
|
||||||
tmpPred->SetElementType( aTypeOfElem );
|
tmpPred->SetElementType( aTypeOfElem );
|
||||||
tmpPred->SetShape( aThresholdID, aThresholdStr );
|
tmpPred->SetShape( aThresholdID, aThresholdStr );
|
||||||
|
tmpPred->SetTolerance( aTolerance );
|
||||||
aPredicate = tmpPred;
|
aPredicate = tmpPred;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -2476,6 +2479,7 @@ CORBA::Boolean Filter_i::SetCriteria( const SMESH::Filter::Criteria& theCriteria
|
|||||||
SMESH::LyingOnGeom_ptr tmpPred = aFilterMgr->CreateLyingOnGeom();
|
SMESH::LyingOnGeom_ptr tmpPred = aFilterMgr->CreateLyingOnGeom();
|
||||||
tmpPred->SetElementType( aTypeOfElem );
|
tmpPred->SetElementType( aTypeOfElem );
|
||||||
tmpPred->SetShape( aThresholdID, aThresholdStr );
|
tmpPred->SetShape( aThresholdID, aThresholdStr );
|
||||||
|
tmpPred->SetTolerance( aTolerance );
|
||||||
aPredicate = tmpPred;
|
aPredicate = tmpPred;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user