idl/SMESH_Group.idl

Go to the documentation of this file.
00001 //  Copyright (C) 2004  CEA 
00002 // 
00003 //  This library is free software; you can redistribute it and/or 
00004 //  modify it under the terms of the GNU Lesser General Public 
00005 //  License as published by the Free Software Foundation; either 
00006 //  version 2.1 of the License. 
00007 // 
00008 //  This library is distributed in the hope that it will be useful, 
00009 //  but WITHOUT ANY WARRANTY; without even the implied warranty of 
00010 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
00011 //  Lesser General Public License for more details. 
00012 // 
00013 //  You should have received a copy of the GNU Lesser General Public 
00014 //  License along with this library; if not, write to the Free Software 
00015 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
00016 // 
00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00018 //
00019 //
00020 //
00021 //  File   : SMESH_Group.idl
00022 //  Author : Sergey ANIKIN, OCC
00023 //  $Header: /home/server/cvs/SMESH/SMESH_SRC/idl/SMESH_Group.idl,v 1.7 2006/06/01 11:39:15 jfa Exp $
00024 
00025 
00026 #ifndef _SMESH_GROUP_IDL_
00027 #define _SMESH_GROUP_IDL_
00028 
00029 #include "SALOME_Exception.idl"
00030 #include "SALOME_GenericObj.idl"
00031 
00032 #include "SMESH_Mesh.idl"
00033 
00034 module SMESH
00035 {
00036   interface Predicate;
00037 
00041   interface SMESH_GroupBase : SALOME::GenericObj, SMESH_IDSource
00042   {
00046     void SetName( in string name );
00047 
00051     string GetName();
00052 
00056     ElementType GetType();
00057 
00061     long Size();
00062 
00066     boolean IsEmpty();
00067 
00071     boolean Contains( in long elem_id );
00072 
00076     long GetID( in long elem_index );
00077 
00081     long_array GetListOfID();
00082 
00086     SMESH_Mesh GetMesh();
00087 
00091     void SetColorNumber( in long color );
00092 
00096     long GetColorNumber();
00097   }; 
00098 
00102   interface SMESH_Group : SMESH_GroupBase
00103   {
00107     void Clear();
00108 
00112     long Add( in long_array elem_ids );
00113     long AddByPredicate( in Predicate thePredicate );
00114 
00118     long Remove( in long_array elem_ids );
00119     long RemoveByPredicate( in Predicate thePredicate );
00120 
00121   };
00125   interface SMESH_GroupOnGeom : SMESH_GroupBase
00126   {
00127     GEOM::GEOM_Object GetShape();
00128   };
00129 
00130 };
00131 
00132 
00133 #endif