0020945: EDF 1465 SMESH: create a new mesh from a selected group or from selected elements

Add a new object type:

+  IDSOURCE
This commit is contained in:
eap 2010-11-30 10:37:24 +00:00
parent e9186ac5d8
commit cce300634f
2 changed files with 8 additions and 2 deletions

View File

@ -25,7 +25,6 @@
// Author : Nicolas REJNERI
// Project : SALOME
// Module : SMESH
// $Header$
//
#ifndef SMESH_TYPE_HEADER
#define SMESH_TYPE_HEADER
@ -57,7 +56,8 @@ enum MeshObjectType {
GROUP_FACE,
GROUP_VOLUME,
GROUP_0D,
COMPONENT
COMPONENT,
IDSOURCE
};
#endif

View File

@ -203,6 +203,12 @@ bool SMESH_TypeFilter::isOk (const SUIT_DataOwner* theDataOwner) const
Ok = true;
break;
}
case IDSOURCE:
{
Ok = ( SMESH_TypeFilter(MESHorSUBMESH).isOk( theDataOwner ) ||
SMESH_TypeFilter(GROUP) .isOk( theDataOwner ));
break;
}
}
}
return Ok;