Version: 6.3.1

idl/SMESH_Group.idl

Go to the documentation of this file.
00001 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 //  File   : SMESH_Group.idl
00024 //  Author : Sergey ANIKIN, OCC
00025 //  $Header: /home/server/cvs/SMESH/SMESH_SRC/idl/SMESH_Group.idl,v 1.9.20.2.6.1 2011-06-02 05:57:20 vsr Exp $
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
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS