- theCriteria[ i ].Type = FT_RangeOfIds;
- theCriteria[ i ].ThresholdStr = aPred->GetRangeStr();
- theCriteria[ i ].TypeOfElement = aPred->GetElementType();
-
- return true;
- }
- case FT_BadOrientedVolume:
- {
- BadOrientedVolume_i* aPred = dynamic_cast<BadOrientedVolume_i*>( thePred );
-
- CORBA::ULong i = theCriteria->length();
- theCriteria->length( i + 1 );
-
- theCriteria[ i ] = createCriterion();
-
- theCriteria[ i ].Type = FT_BadOrientedVolume;
- theCriteria[ i ].TypeOfElement = aPred->GetElementType();
-
- return true;
- }
- case FT_BareBorderVolume:
- {
- BareBorderVolume_i* aPred = dynamic_cast<BareBorderVolume_i*>( thePred );
-
- CORBA::ULong i = theCriteria->length();
- theCriteria->length( i + 1 );
-
- theCriteria[ i ] = createCriterion();
-
- theCriteria[ i ].Type = FT_BareBorderVolume;
- theCriteria[ i ].TypeOfElement = aPred->GetElementType();
-
- return true;
- }
- case FT_BareBorderFace:
- {
- BareBorderFace_i* aPred = dynamic_cast<BareBorderFace_i*>( thePred );
-
- CORBA::ULong i = theCriteria->length();
- theCriteria->length( i + 1 );
-
- theCriteria[ i ] = createCriterion();
-
- theCriteria[ i ].Type = FT_BareBorderFace;
- theCriteria[ i ].TypeOfElement = aPred->GetElementType();
-
- return true;
- }
- case FT_OverConstrainedVolume:
- {
- OverConstrainedVolume_i* aPred = dynamic_cast<OverConstrainedVolume_i*>( thePred );
-
- CORBA::ULong i = theCriteria->length();
- theCriteria->length( i + 1 );
-
- theCriteria[ i ] = createCriterion();
-
- theCriteria[ i ].Type = FT_OverConstrainedVolume;
- theCriteria[ i ].TypeOfElement = aPred->GetElementType();