Version: 8.3.0
SMESH_Group.idl
Go to the documentation of this file.
1 // Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 
23 // File : SMESH_Group.idl
24 // Author : Sergey ANIKIN, OCC
25 // $Header$
26 //
27 #ifndef _SMESH_GROUP_IDL_
28 #define _SMESH_GROUP_IDL_
29 
30 #include "SALOME_Exception.idl"
31 #include "SALOME_GenericObj.idl"
32 #include "SALOMEDS_Attributes.idl"
33 
34 #include "SMESH_Mesh.idl"
35 
36 module SMESH
37 {
38  interface Predicate;
39  interface Filter;
40 
44  interface SMESH_GroupBase : SALOME::GenericObj, SMESH_IDSource
45  {
49  void SetName( in string name );
50 
54  string GetName();
55 
59  ElementType GetType();
60 
64  long Size();
65 
69  boolean IsEmpty();
70 
74  boolean Contains( in long elem_id );
75 
79  long GetID( in long elem_index );
80 
84  long_array GetListOfID();
85 
90  long GetNumberOfNodes();
91 
96  long_array GetNodeIDs();
97 
101  boolean IsNodeInfoAvailable();
102 
106  void SetColor(in SALOMEDS::Color theColor);
107 
111  SALOMEDS::Color GetColor();
112 
117  void SetColorNumber( in long color );
118 
123  long GetColorNumber();
124 
129  boolean IsInDependency( in SMESH_GroupBase other );
130  };
131 
136  {
140  void Clear();
141 
145  long Add( in long_array elem_ids );
149  long AddByPredicate( in Predicate thePredicate );
153  long AddFrom( in SMESH_IDSource theSource );
154 
158  long Remove( in long_array elem_ids );
162  long RemoveByPredicate( in Predicate thePredicate );
163 
164  };
165 
170  {
171  GEOM::GEOM_Object GetShape();
172  };
173 
178  {
179  void SetFilter( in Filter theFilter) raises (SALOME::SALOME_Exception);
180  Filter GetFilter();
181  };
182 
183 };
184 
185 
186 #endif