]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0020918: EDF 1447 SMESH: Mesh common borders
authoreap <eap@opencascade.com>
Fri, 12 Nov 2010 14:33:34 +0000 (14:33 +0000)
committereap <eap@opencascade.com>
Fri, 12 Nov 2010 14:33:34 +0000 (14:33 +0000)
+  GROUP_NODE,
+  GROUP_EDGE,
+  GROUP_FACE,
+  GROUP_VOLUME,
+  GROUP_0D,

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

index 4531a8760494c30db65254344b120dcb03a4a07e..89857d89ccfb420af18d062df2e51fb2d4e7176a 100644 (file)
@@ -52,6 +52,11 @@ enum MeshObjectType {
   SUBMESH_SOLID,
   SUBMESH_COMPOUND,
   GROUP,
+  GROUP_NODE,
+  GROUP_EDGE,
+  GROUP_FACE,
+  GROUP_VOLUME,
+  GROUP_0D,
   COMPONENT
 };
 
index bfede041871ced4d17e2c54e8208ce7b03b0be04..1fbb375169074e23f1f0af2cab8bc7898fc396ea 100644 (file)
@@ -81,6 +81,7 @@ bool SMESH_TypeFilter::isOk (const SUIT_DataOwner* theDataOwner) const
     // 4       |     |- Applied algorithms ( selectable in Use Case Browser )
     // 5       |          |- Regular 1D
     //         |- Group Of Nodes
+    //            |- Group 1
 
     if (aLevel <= 0)
       return false;
@@ -172,6 +173,36 @@ bool SMESH_TypeFilter::isOk (const SUIT_DataOwner* theDataOwner) const
             Ok = true;
           break;
         }
+      case GROUP_NODE:
+        {
+          if (aLevel == 3 && (objFather->Tag() == SMESH::Tag_NodeGroups))
+            Ok = true;
+          break;
+        }
+      case GROUP_EDGE:
+        {
+          if (aLevel == 3 && (objFather->Tag() == SMESH::Tag_EdgeGroups))
+            Ok = true;
+          break;
+        }
+      case GROUP_FACE:
+        {
+          if (aLevel == 3 && (objFather->Tag() == SMESH::Tag_FaceGroups))
+            Ok = true;
+          break;
+        }
+      case GROUP_VOLUME:
+        {
+          if (aLevel == 3 && (objFather->Tag() == SMESH::Tag_VolumeGroups))
+            Ok = true;
+          break;
+        }
+      case GROUP_0D:
+        {
+          if (aLevel == 3 && (objFather->Tag() == SMESH::Tag_VolumeGroups+1))
+            Ok = true;
+          break;
+        }
     }
   }
   return Ok;