Salome HOME
IMP19942 - Convert group on geometry into group of elements
[modules/smesh.git] / idl / SMESH_Mesh.idl
1 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 //
4 //  This library is free software; you can redistribute it and/or
5 //  modify it under the terms of the GNU Lesser General Public
6 //  License as published by the Free Software Foundation; either
7 //  version 2.1 of the License.
8 //
9 //  This library is distributed in the hope that it will be useful,
10 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
11 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 //  Lesser General Public License for more details.
13 //
14 //  You should have received a copy of the GNU Lesser General Public
15 //  License along with this library; if not, write to the Free Software
16 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 //
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 //
20 //
21 //
22 //  File   : SMESH_Mesh.idl
23 //  Author : Paul RASCLE, EDF
24 //  $Header$
25
26 #ifndef _SMESH_MESH_IDL_
27 #define _SMESH_MESH_IDL_
28
29 #include "SALOME_Exception.idl"
30 #include "SALOME_GenericObj.idl"
31 #include "GEOM_Gen.idl"
32 #include "MED.idl"
33
34 module SMESH
35 {
36   interface SMESH_Hypothesis;
37   typedef sequence<SMESH_Hypothesis> ListOfHypothesis;
38   interface SMESH_GroupBase;
39   typedef sequence<SMESH_GroupBase> ListOfGroups;
40
41   typedef sequence<double    > double_array ;
42   typedef sequence<long      > long_array ;
43   typedef sequence<string    > string_array ;
44   typedef sequence<long_array> array_of_long_array ;
45
46   enum log_command
47     {
48       ADD_NODE,
49       ADD_EDGE,
50       ADD_TRIANGLE,
51       ADD_QUADRANGLE,
52       ADD_POLYGON,
53       ADD_TETRAHEDRON,
54       ADD_PYRAMID,
55       ADD_PRISM,
56       ADD_HEXAHEDRON,
57       ADD_POLYHEDRON,
58       REMOVE_NODE,
59       REMOVE_ELEMENT,
60       MOVE_NODE,
61       CHANGE_ELEMENT_NODES,
62       CHANGE_POLYHEDRON_NODES,
63       RENUMBER,
64       CLEAR_MESH,
65       ADD_QUADEDGE,
66       ADD_QUADTRIANGLE,
67       ADD_QUADQUADRANGLE,
68       ADD_QUADTETRAHEDRON,
69       ADD_QUADPYRAMID,
70       ADD_QUADPENTAHEDRON,
71       ADD_QUADHEXAHEDRON
72     };
73
74   struct log_block
75   {
76     long commandType;
77     long number;
78     double_array coords;
79     long_array indexes;
80   };
81
82   struct PointStruct { double x;
83                        double y;
84                        double z; } ;
85
86   typedef sequence<PointStruct> nodes_array;
87
88   struct DirStruct   { PointStruct PS ; } ;          // analog to Occ Direction
89
90   struct AxisStruct  { double x;
91                        double y;
92                        double z;
93                        double vx;
94                        double vy;
95                        double vz; } ;
96
97   /*!
98    * Node location on a shape
99    */
100   struct NodePosition {
101     long             shapeID;
102     GEOM::shape_type shapeType;
103     double_array     params; // [U] on EDGE, [U,V] on FACE, [] on the rest shapes
104   };
105
106   /*!
107    * Enumeration for element type, like in SMDS
108    */
109   enum ElementType
110   {
111     ALL,
112     NODE,
113     EDGE,
114     FACE,
115     VOLUME
116   };
117   
118   /*!
119    * ElementOrder points out entities of what order are requested
120    */
121   enum ElementOrder {
122     ORDER_ANY,          /*! entities of any order */
123     ORDER_LINEAR,       /*! entities of 1st order */
124     ORDER_QUADRATIC     /*! entities of 2nd order */
125   };
126
127   /*!
128    * Enumeration for hypothesis status (used by AddHypothesis() and RemoveHypothesis() methods)
129    */
130   enum Hypothesis_Status // in the order of severity
131   {
132     HYP_OK,
133     HYP_MISSING,      // algo misses a hypothesis
134     HYP_CONCURENT,    // several applicable hypotheses
135     HYP_BAD_PARAMETER,// hypothesis has a bad parameter value
136     HYP_HIDDEN_ALGO,  // an algo is hidden by an upper dim algo generating all-dim elements
137     HYP_HIDING_ALGO,  // an algo hides lower dim algos by generating all-dim elements
138     HYP_UNKNOWN_FATAL,//  --- all statuses below should be considered as fatal
139                       //      for Add/RemoveHypothesis operations
140     HYP_INCOMPATIBLE, // hypothesis does not fit algo
141     HYP_NOTCONFORM,   // not conform mesh is produced appling a hypothesis
142     HYP_ALREADY_EXIST,// such hypothesis already exist
143     HYP_BAD_DIM,      // bad dimension
144     HYP_BAD_SUBSHAPE, // shape is neither the main one, nor its subshape, nor a group
145     HYP_BAD_GEOMETRY, // geometry mismatches algorithm's expectation
146     HYP_NEED_SHAPE    // algorithm can work on shape only
147   };
148
149   /*!
150    * Enumeration for DriverMED read status (used by ImportMEDFile() method)
151    */
152   enum DriverMED_ReadStatus // in the order of severity
153   {
154     DRS_OK,
155     DRS_EMPTY,          // a MED file contains no mesh with the given name
156     DRS_WARN_RENUMBER,  // a MED file has overlapped ranges of element numbers,
157                         // so the numbers from the file are ignored
158     DRS_WARN_SKIP_ELEM, // some elements were skipped due to incorrect file data
159     DRS_FAIL            // general failure (exception etc.)
160   };
161
162   /*!
163    * Enumeration for DriverMED (used by Perform() method)
164    */
165   enum MED_VERSION // in the order of severity
166   {
167     MED_V2_1,
168     MED_V2_2
169   };
170
171   typedef sequence<log_block> log_array;
172
173
174   /*!
175    * Auxilary flags for advanced extrusion.
176    * BOUNDARY: create or not boundary for result of extrusion
177    * SEW:      try to use existing nodes or create new nodes in any case
178    */
179   const long EXTRUSION_FLAG_BOUNDARY = 1;
180   const long EXTRUSION_FLAG_SEW = 2;
181   
182   /*!
183    * Structure used in mesh edit preview data (MeshPreviewStruct)
184    */
185   struct ElementSubType { ElementType SMDS_ElementType;
186                           boolean     isPoly;
187                           long        nbNodesInElement; };
188
189   typedef sequence<ElementSubType> types_array;
190
191   /*!
192    * Structure containing mesh edit preview data
193    */
194   struct MeshPreviewStruct { nodes_array nodesXYZ;
195                              long_array  elementConnectivities;
196                              types_array elementTypes; };
197
198   interface SMESH_IDSource
199   {
200     /*!
201      * Returns a sequence of all element IDs
202      */
203     long_array GetIDs();
204   };
205
206   interface SMESH_Group;
207   interface SMESH_GroupOnGeom;
208   interface SMESH_subMesh;
209   interface SMESH_MeshEditor;
210   interface SMESH_Mesh : SALOME::GenericObj, SMESH_IDSource
211   {
212     /*!
213      * Return true if there is a geometry to be meshed
214      */
215     boolean HasShapeToMesh()
216       raises (SALOME::SALOME_Exception);
217
218     /*!
219      * Get geom shape to mesh. A result sould not be nil. Use HasShapeToMesh()
220      * to know if a returned shape 
221      */
222     GEOM::GEOM_Object GetShapeToMesh()
223       raises (SALOME::SALOME_Exception);
224
225     /*!
226      * Remove all nodes and elements
227      */
228     void Clear()
229       raises (SALOME::SALOME_Exception);
230
231     /*!
232      * Remove all nodes and elements of submesh
233      */
234     void ClearSubMesh(in long ShapeID)
235       raises (SALOME::SALOME_Exception);
236
237     /*!
238      * Get the subMesh object associated to a subShape. The subMesh object
239      * gives access to nodes and elements IDs.
240      * SubMesh will be used instead of SubShape in a next idl version to
241      * adress a specific subMesh...
242      */
243     SMESH_subMesh GetSubMesh(in GEOM::GEOM_Object aSubObject, in string name)
244       raises (SALOME::SALOME_Exception);
245
246     /*!
247      * Remove a submesh
248      */
249     void RemoveSubMesh(in SMESH_subMesh aSubMesh)
250       raises (SALOME::SALOME_Exception);
251
252
253     /*!
254      * Create a group
255      */
256     SMESH_Group CreateGroup( in ElementType elem_type,
257                              in string name )
258       raises (SALOME::SALOME_Exception);
259
260     /*!
261      * Create a group from geometry group
262      */
263     SMESH_GroupOnGeom CreateGroupFromGEOM( in ElementType elem_type,
264                                           in string name,
265                                           in GEOM::GEOM_Object theGeomObject )
266       raises (SALOME::SALOME_Exception);
267
268     /*!
269      * Remove a group
270      */
271     void RemoveGroup(in SMESH_GroupBase aGroup)
272       raises (SALOME::SALOME_Exception);
273
274     /*!
275      *  Remove group with its contents
276      */
277     void RemoveGroupWithContents( in SMESH_GroupBase aGroup )
278       raises (SALOME::SALOME_Exception);
279
280     /*!
281      *  Get the list of groups existing in the mesh
282      */
283     ListOfGroups GetGroups()
284       raises (SALOME::SALOME_Exception);
285
286     /*!
287      *  Get number of groups existing in the mesh
288      */
289     long NbGroups()
290       raises (SALOME::SALOME_Exception);
291
292     /*!
293      * Union of two groups
294      *    New group is created. All mesh elements that are
295      *    present in initial groups are added to the new one
296      */
297     SMESH_Group UnionGroups (in SMESH_GroupBase aGroup1,
298                              in SMESH_GroupBase aGroup2,
299                              in string          name )
300       raises (SALOME::SALOME_Exception);
301       
302     /*!
303      * Union of list of groups
304      * New group is created. All mesh elements that are
305      * present in initial groups are added to the new one
306      */
307     SMESH_Group UnionListOfGroups (in ListOfGroups aListOfGroups,
308                                    in string       name )
309       raises (SALOME::SALOME_Exception);
310
311     /*!
312      *  Intersection of two groups
313      *  New group is created. All mesh elements that are
314      *  present in both initial groups are added to the new one.
315      */
316     SMESH_Group IntersectGroups (in SMESH_GroupBase aGroup1,
317                                  in SMESH_GroupBase aGroup2,
318                                  in string          name )
319       raises (SALOME::SALOME_Exception);
320       
321     /*!
322      *  Intersection of list of groups
323      *  New group is created. All mesh elements that are
324      *  present in all initial groups simultaneously are added to the new one.
325      */
326     SMESH_Group IntersectListOfGroups (in ListOfGroups aListOfGroups,
327                                        in string       name)
328       raises (SALOME::SALOME_Exception);
329
330     /*!
331      *  Cut of two groups
332      *  New group is created. All mesh elements that are present in
333      *  main group but do not present in tool group are added to the new one
334      */
335     SMESH_Group CutGroups (in SMESH_GroupBase aMainGroup,
336                            in SMESH_GroupBase aToolGroup,
337                            in string          name )
338       raises (SALOME::SALOME_Exception);
339       
340     /*!
341      *  Cut of lists of groups
342      *  New group is created. All mesh elements that are present in
343      *  main groups but do not present in tool groups are added to the new one
344      */
345     SMESH_Group CutListOfGroups (in ListOfGroups aMainGroups,
346                                  in ListOfGroups aToolGroups,
347                                  in string       name)
348       raises (SALOME::SALOME_Exception);
349       
350     /*!
351      *  Create groups of entities from existing groups of superior dimensions 
352      *  New group is created. System 
353      *  1) extract all nodes from each group,
354      *  2) combine all elements of specified dimension laying on these nodes.
355      */
356     SMESH_Group CreateDimGroup( in ListOfGroups aListOfGroups,
357                                 in ElementType  anElemType,
358                                 in string       name )
359       raises (SALOME::SALOME_Exception);
360
361     /*!
362      * Convert group on geometry into standalone group
363      */
364     SMESH_Group ConvertToStandalone( in SMESH_GroupOnGeom theGeomGroup )
365       raises (SALOME::SALOME_Exception);
366
367     /*!
368      * Add hypothesis to the mesh, under a particular subShape
369      * (or the main shape itself)
370      * The Add method is only used to prepare the build of the mesh and store
371      * the algorithms and associated parameters.
372      * Actual job of mesh the shape is done by MESH_Gen.
373      * @params
374      * - aSubShape : subShape obtained by a shape explode in GEOM
375      *   (or main shape)
376      * - anHyp : hypothesis object
377      * @return
378      * - OK if the hypothesis is compatible with the subShape
379      *   (and all previous hypothesis on the subShape)
380      * - NOK if the hypothesis is not compatible with the subShape
381      *   (or one previous hypothesis on the subShape)
382      * raises exception if hypothesis has not been created
383      */
384     Hypothesis_Status AddHypothesis(in GEOM::GEOM_Object aSubObject,
385                                     in SMESH_Hypothesis anHyp)
386       raises (SALOME::SALOME_Exception);
387 //     boolean AddHypothesis(in SMESH_subMesh aSubMesh, in SMESH_Hypothesis anHyp)
388 //       raises (SALOME::SALOME_Exception);
389
390     /*!
391      * Remove an hypothesis previouly added with AddHypothesis.
392      */
393     Hypothesis_Status RemoveHypothesis(in GEOM::GEOM_Object aSubObject,
394                                        in SMESH_Hypothesis anHyp)
395       raises (SALOME::SALOME_Exception);
396 //     boolean RemoveHypothesis(in SMESH_subMesh aSubMesh,
397 //                           in SMESH_Hypothesis anHyp)
398 //       raises (SALOME::SALOME_Exception);
399
400     /*!
401      * Get the list of hypothesis added on a subShape
402      */
403     ListOfHypothesis GetHypothesisList(in GEOM::GEOM_Object aSubObject)
404       raises (SALOME::SALOME_Exception);
405 //     ListOfHypothesis GetHypothesisList(in SMESH_subMesh aSubMesh)
406 //       raises (SALOME::SALOME_Exception);
407
408     /*!
409      * Get the log of nodes and elements added or removed since previous
410      * clear of the log.
411      * @params
412      * - clearAfterGet : log is emptied after Get (safe if concurrents access)
413      */
414     //    string_array GetLog(in boolean clearAfterGet)
415     //      raises (SALOME::SALOME_Exception);
416     log_array GetLog(in boolean clearAfterGet)
417       raises (SALOME::SALOME_Exception);
418
419     /*!
420      * Clear the log of nodes and elements added or removed since previous
421      * clear. Must be used immediately after GetLog if clearAfterGet is false.
422      */
423     void ClearLog()
424       raises (SALOME::SALOME_Exception);
425
426     /*!
427      * Toggle auto color mode on the object.
428      * @params
429      * - theAutoColor : flag which toggles auto color mode.
430      */
431     void SetAutoColor(in boolean theAutoColor)
432       raises (SALOME::SALOME_Exception);
433
434     /*!
435      * Get flag of object's auto color mode.
436      */
437     boolean GetAutoColor()
438       raises (SALOME::SALOME_Exception);
439
440     /*!
441      * Get the internal Id
442      */
443     long GetId();
444
445     /*!
446      * Get the study Id
447      */
448     long GetStudyId();
449
450     /*!
451      * Obtain instance of SMESH_MeshEditor
452      */
453     SMESH_MeshEditor GetMeshEditor()
454       raises (SALOME::SALOME_Exception);
455
456     /*!
457      * Return SMESH_MeshEditor that would not modify the mesh but
458      * fill MeshPreviewStruct
459      */
460     SMESH_MeshEditor GetMeshEditPreviewer()
461       raises (SALOME::SALOME_Exception);
462
463     /*! Check group names for duplications.
464      *  Consider maximum group name length stored in MED file.
465      */
466     boolean HasDuplicatedGroupNamesMED();
467
468     /*!
469      * Export Mesh to different MED Formats
470      * @params
471      * - auto_groups : boolean parameter for creating/not creating
472      *   the groups Group_On_All_Nodes, Group_On_All_Faces, ... ;
473      *   the typical use is auto_groups=false.
474      * - theVersion : define the version of format of MED file, that will be created
475      */
476     void ExportToMED( in string file, in boolean auto_groups, in MED_VERSION theVersion )
477       raises (SALOME::SALOME_Exception);
478
479     /*!
480      * Export Mesh to MED_V2_1 MED format
481      * Works, just the same as ExportToMED, with MED_VERSION parameter equal to MED_V2_1.
482      * The method is kept in order to support old functionality
483      */
484     void ExportMED( in string file, in boolean auto_groups )
485       raises (SALOME::SALOME_Exception);
486
487     /*!
488      * Return string representation of a MED file version comprising nbDigits
489      */
490     string GetVersionString(in MED_VERSION version, in short nbDigits);
491
492     /*!
493      * Export Mesh to DAT, UNV and STL Formats
494      * (UNV supported version is I-DEAS 10)
495      */
496     void ExportDAT( in string file )
497       raises (SALOME::SALOME_Exception);
498     void ExportUNV( in string file )
499       raises (SALOME::SALOME_Exception);
500     void ExportSTL( in string file, in boolean isascii )
501       raises (SALOME::SALOME_Exception);
502
503     /*!
504      * Get MED Mesh
505      */
506     SALOME_MED::MESH GetMEDMesh()
507       raises (SALOME::SALOME_Exception);
508
509     /*!
510      * Get informations about mesh contents
511      */
512     long NbNodes()
513       raises (SALOME::SALOME_Exception);
514
515     long NbElements()
516       raises (SALOME::SALOME_Exception);
517
518     long NbEdges()
519       raises (SALOME::SALOME_Exception);
520
521     long NbEdgesOfOrder(in ElementOrder order)
522       raises (SALOME::SALOME_Exception);
523
524     long NbFaces()
525       raises (SALOME::SALOME_Exception);
526
527     long NbFacesOfOrder(in ElementOrder order)
528       raises (SALOME::SALOME_Exception);
529
530     long NbTriangles()
531       raises (SALOME::SALOME_Exception);
532
533     long NbTrianglesOfOrder(in ElementOrder order)
534       raises (SALOME::SALOME_Exception);
535
536     long NbQuadrangles()
537       raises (SALOME::SALOME_Exception);
538
539     long NbQuadranglesOfOrder(in ElementOrder order)
540       raises (SALOME::SALOME_Exception);
541
542     long NbPolygons()
543       raises (SALOME::SALOME_Exception);
544
545     long NbVolumes()
546       raises (SALOME::SALOME_Exception);
547
548     long NbVolumesOfOrder(in ElementOrder order)
549       raises (SALOME::SALOME_Exception);
550
551     long NbTetras()
552       raises (SALOME::SALOME_Exception);
553
554     long NbTetrasOfOrder(in ElementOrder order)
555       raises (SALOME::SALOME_Exception);
556
557     long NbHexas()
558       raises (SALOME::SALOME_Exception);
559
560     long NbHexasOfOrder(in ElementOrder order)
561       raises (SALOME::SALOME_Exception);
562
563     long NbPyramids()
564       raises (SALOME::SALOME_Exception);
565
566     long NbPyramidsOfOrder(in ElementOrder order)
567       raises (SALOME::SALOME_Exception);
568
569     long NbPrisms()
570       raises (SALOME::SALOME_Exception);
571
572     long NbPrismsOfOrder(in ElementOrder order)
573       raises (SALOME::SALOME_Exception);
574
575     long NbPolyhedrons()
576       raises (SALOME::SALOME_Exception);
577
578     long NbSubMesh()
579       raises (SALOME::SALOME_Exception);
580
581     long_array GetElementsId()
582       raises (SALOME::SALOME_Exception);
583
584     long_array GetElementsByType( in ElementType theType )
585       raises (SALOME::SALOME_Exception);
586
587     long_array GetNodesId()
588       raises (SALOME::SALOME_Exception);
589     
590     /*!
591      * Returns type of mesh element
592      */    
593     ElementType GetElementType( in long id, in boolean iselem )
594       raises (SALOME::SALOME_Exception);
595
596     long_array GetSubMeshElementsId(in long ShapeID)
597       raises (SALOME::SALOME_Exception);
598
599     long_array GetSubMeshNodesId(in long ShapeID, in boolean all )
600       raises (SALOME::SALOME_Exception);
601     
602     ElementType GetSubMeshElementType(in long ShapeID)
603       raises (SALOME::SALOME_Exception);
604
605     /*!
606      * Get mesh description
607      */
608     string Dump();
609
610     /*!
611      * Get mesh pointer
612      */
613     long long GetMeshPtr();
614
615     /*!
616      * Get XYZ coordinates of node as list of double
617      * If there is not node for given ID - returns empty list
618      */
619     double_array GetNodeXYZ(in long id);
620
621     /*!
622      * For given node returns list of IDs of inverse elements
623      * If there is not node for given ID - returns empty list
624      */
625     long_array GetNodeInverseElements(in long id);
626
627     /*!
628      * \brief Return position of a node on shape
629      */
630     NodePosition GetNodePosition(in long NodeID);
631
632     /*!
633      * If given element is node returns IDs of shape from position
634      * If there is not node for given ID - returns -1
635      */
636     long GetShapeID(in long id);
637
638     /*!
639      * For given element returns ID of result shape after 
640      * ::FindShape() from SMESH_MeshEditor
641      * If there is not element for given ID - returns -1
642      */
643     long GetShapeIDForElem(in long id);
644
645     /*!
646      * Returns number of nodes for given element
647      * If there is not element for given ID - returns -1
648      */
649     long GetElemNbNodes(in long id);
650
651     /*!
652      * Returns IDs of nodes of given element
653      */
654     long_array GetElemNodes(in long id);
655
656     /*!
657      * Returns ID of node by given index for given element
658      * If there is not element for given ID - returns -1
659      * If there is not node for given index - returns -2
660      */
661     long GetElemNode(in long id, in long index);
662
663     /*!
664      * Returns true if given node is medium node
665      * in given quadratic element
666      */
667     boolean IsMediumNode(in long ide, in long idn);
668
669     /*!
670      * Returns true if given node is medium node
671      * in one of quadratic elements
672      */
673     boolean IsMediumNodeOfAnyElem(in long idn, in ElementType elem_type);
674
675     /*!
676      * Returns number of edges for given element
677      */
678     long ElemNbEdges(in long id);
679
680     /*!
681      * Returns number of faces for given element
682      */
683     long ElemNbFaces(in long id);
684
685     /*!
686      * Returns true if given element is polygon
687      */
688     boolean IsPoly(in long id);
689
690     /*!
691      * Returns true if given element is quadratic
692      */
693     boolean IsQuadratic(in long id);
694
695     /*!
696      * Returns XYZ coordinates of bary center for given element
697      * as list of double
698      * If there is not element for given ID - returns empty list
699      */
700     double_array BaryCenter(in long id);
701
702     /*! Gets information about imported MED file */
703     SALOME_MED::MedFileInfo GetMEDFileInfo();
704   };
705
706   interface SMESH_subMesh : SALOME::GenericObj, SMESH_IDSource
707   {
708     /*!
709      *
710      */
711     long GetNumberOfElements()
712       raises (SALOME::SALOME_Exception);
713
714     /*!
715      *
716      */
717     long GetNumberOfNodes( in boolean all )
718       raises (SALOME::SALOME_Exception);
719
720     /*!
721      *
722      */
723     long_array GetElementsId()
724       raises (SALOME::SALOME_Exception);
725
726     /*!
727      *
728      */
729     long_array GetElementsByType( in ElementType theType )
730       raises (SALOME::SALOME_Exception);
731     
732     /*!
733      * Return type of submesh element
734      */
735     ElementType GetElementType( in long id, in boolean iselem )
736       raises (SALOME::SALOME_Exception);
737
738     /*!
739      *
740      */
741     long_array GetNodesId()
742       raises (SALOME::SALOME_Exception);
743
744     /*!
745      * Get geom shape the submesh is dedicated to
746      */
747     GEOM::GEOM_Object GetSubShape()
748       raises (SALOME::SALOME_Exception);
749
750     /*!
751      * Get SMESH_Mesh which stores nodes coordinates & elements definition
752      */
753     SMESH_Mesh GetFather()
754       raises (SALOME::SALOME_Exception);
755
756     /*!
757      * Get the internal Id
758      */
759     long GetId();
760
761     /*!
762      * Get MED subMesh
763      */
764     SALOME_MED::FAMILY GetFamily()
765       raises (SALOME::SALOME_Exception);
766   };
767
768 };
769
770 #endif