]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0020945: EDF 1465 SMESH: create a new mesh from a selected group or from selected...
authoreap <eap@opencascade.com>
Tue, 30 Nov 2010 10:37:24 +0000 (10:37 +0000)
committereap <eap@opencascade.com>
Tue, 30 Nov 2010 10:37:24 +0000 (10:37 +0000)
   Add a new object type:

+  IDSOURCE

src/SMESHFiltersSelection/SMESH_Type.h
src/SMESHFiltersSelection/SMESH_TypeFilter.cxx

index 89857d89ccfb420af18d062df2e51fb2d4e7176a..ee962f22e65fda32791d632dec87e182f9f54b49 100644 (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
index 1fbb375169074e23f1f0af2cab8bc7898fc396ea..a684d70234619c31a3f5403181c9db0edf7d145a 100644 (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;