Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef _SMESH_GROUP_IDL_
00028 #define _SMESH_GROUP_IDL_
00029
00030 #include "SALOME_Exception.idl"
00031 #include "SALOME_GenericObj.idl"
00032 #include "SALOMEDS_Attributes.idl"
00033
00034 #include "SMESH_Mesh.idl"
00035
00036 module SMESH
00037 {
00038 interface Predicate;
00039
00043 interface SMESH_GroupBase : SALOME::GenericObj, SMESH_IDSource
00044 {
00048 void SetName( in string name );
00049
00053 string GetName();
00054
00058 ElementType GetType();
00059
00063 long Size();
00064
00068 boolean IsEmpty();
00069
00073 boolean Contains( in long elem_id );
00074
00078 long GetID( in long elem_index );
00079
00083 long_array GetListOfID();
00084
00088 void SetColor(in SALOMEDS::Color theColor);
00089
00093 SALOMEDS::Color GetColor();
00094
00099 void SetColorNumber( in long color );
00100
00105 long GetColorNumber();
00106 };
00107
00111 interface SMESH_Group : SMESH_GroupBase
00112 {
00116 void Clear();
00117
00121 long Add( in long_array elem_ids );
00125 long AddByPredicate( in Predicate thePredicate );
00129 long AddFrom( in SMESH_IDSource theSource );
00130
00134 long Remove( in long_array elem_ids );
00138 long RemoveByPredicate( in Predicate thePredicate );
00139
00140 };
00144 interface SMESH_GroupOnGeom : SMESH_GroupBase
00145 {
00146 GEOM::GEOM_Object GetShape();
00147 };
00148
00149 };
00150
00151
00152 #endif