Salome HOME
fix bug 12361. In SetName(): there may be no study
[modules/smesh.git] / idl / SMESH_Group.idl
index a39c3445d00f2e876350a289bca476abcc79ab6f..3cbb606daaa4093272a5b0d5969cfa7ecaa5d989 100644 (file)
@@ -33,6 +33,8 @@
 
 module SMESH
 {
 
 module SMESH
 {
+  interface Predicate;
+
   /*!
    * SMESH_Group: base interface of group object
    */
   /*!
    * SMESH_Group: base interface of group object
    */
@@ -82,6 +84,16 @@ module SMESH
      * Returns the mesh object this group belongs to
      */
     SMESH_Mesh GetMesh();
      * Returns the mesh object this group belongs to
      */
     SMESH_Mesh GetMesh();
+
+    /*!
+     * Sets group color number
+     */
+    void SetColorNumber( in long color );
+
+    /*!
+     * Returns group color number
+     */
+    long GetColorNumber();
   }; 
 
   /*!
   }; 
 
   /*!
@@ -98,11 +110,13 @@ module SMESH
      * Adds elements to the group
      */
     long Add( in long_array elem_ids );
      * Adds elements to the group
      */
     long Add( in long_array elem_ids );
+    long AddByPredicate( in Predicate thePredicate );
 
     /*!
      * Removes elements from the group
      */
     long Remove( in long_array elem_ids );
 
     /*!
      * Removes elements from the group
      */
     long Remove( in long_array elem_ids );
+    long RemoveByPredicate( in Predicate thePredicate );
 
   };
   /*!
 
   };
   /*!