Salome HOME
23076: [CEA 1499] Get in python all sub-shapes in error after Compute
[modules/smesh.git] / src / SMESH_I / SMESH_MeshEditor_i.hxx
1 // Copyright (C) 2007-2015  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 //  SMESH SMESH_I : idl implementation based on 'SMESH' unit's calsses
24 //  File   : SMESH_MeshEditor_i.hxx
25 //  Author : Nicolas REJNERI
26 //  Module : SMESH
27 //
28 #ifndef _SMESH_MESHEDITOR_I_HXX_
29 #define _SMESH_MESHEDIOTR_I_HXX_
30
31 #include "SMESH.hxx"
32
33 #include <SALOMEconfig.h>
34 #include CORBA_SERVER_HEADER(SMESH_MeshEditor)
35
36 #include "SMESH_Mesh.hxx"
37 #include "SMESH_PythonDump.hxx"
38 #include "SMESH_MeshEditor.hxx"
39 #include <list>
40
41 class SMESH_Mesh_i;
42
43 namespace MeshEditor_I {
44   struct TPreviewMesh;
45   struct ExtrusionParams;
46 }
47
48 class SMESH_I_EXPORT SMESH_MeshEditor_i: public POA_SMESH::SMESH_MeshEditor
49 {
50 public:
51   SMESH_MeshEditor_i(SMESH_Mesh_i * theMesh, bool isPreview);
52
53   virtual ~ SMESH_MeshEditor_i();
54   /*!
55    * \brief Return edited mesh ID
56    * \retval int - mesh ID
57    */
58   int GetMeshId() const { return myMesh->GetId(); }
59
60   SMESH::SMESH_Mesh_ptr GetMesh();
61
62   // --- CORBA
63
64   /*!
65    * Return data of mesh edition preview
66    */
67   SMESH::MeshPreviewStruct* GetPreviewData() throw (SALOME::SALOME_Exception);
68   /*!
69    * If during last operation of MeshEditor some nodes were
70    * created this method returns list of their IDs, if new nodes
71    * not created - returns an empty list
72    */
73   SMESH::long_array* GetLastCreatedNodes() throw (SALOME::SALOME_Exception);
74   /*!
75    * If during last operation of MeshEditor some elements were
76    * created this method returns list of their IDs, if new elements
77    * not created - returns an empty list
78    */
79   SMESH::long_array* GetLastCreatedElems() throw (SALOME::SALOME_Exception);
80   /*!
81    * \brief Clears sequences of last created elements and nodes 
82    */
83   void ClearLastCreated() throw (SALOME::SALOME_Exception);
84   /*!
85    * \brief Returns description of an error/warning occured during the last operation
86    */
87   SMESH::ComputeError* GetLastError() throw (SALOME::SALOME_Exception);
88
89   /*!
90    * \brief Wrap a sequence of ids in a SMESH_IDSource
91    */
92   SMESH::SMESH_IDSource_ptr MakeIDSource(const SMESH::long_array& IDsOfElements,
93                                          SMESH::ElementType       type);
94   static bool               IsTemporaryIDSource( SMESH::SMESH_IDSource_ptr& idSource );
95   static CORBA::Long*       GetTemporaryIDs( SMESH::SMESH_IDSource_ptr& idSource, int& nbIds );
96
97   CORBA::Boolean RemoveElements(const SMESH::long_array & IDsOfElements)
98     throw (SALOME::SALOME_Exception);
99   CORBA::Boolean RemoveNodes   (const SMESH::long_array & IDsOfNodes)
100     throw (SALOME::SALOME_Exception);
101   CORBA::Long    RemoveOrphanNodes()
102     throw (SALOME::SALOME_Exception);
103
104   /*!
105    * Methods for creation new elements.
106    * Returns ID of created element or 0 if element not created
107    */
108   CORBA::Long AddNode(CORBA::Double x, CORBA::Double y, CORBA::Double z)
109     throw (SALOME::SALOME_Exception);
110   CORBA::Long Add0DElement(CORBA::Long IDOfNode)
111     throw (SALOME::SALOME_Exception);
112   CORBA::Long AddBall(CORBA::Long IDOfNodem, CORBA::Double diameter)
113     throw (SALOME::SALOME_Exception);
114   CORBA::Long AddEdge(const SMESH::long_array & IDsOfNodes)
115     throw (SALOME::SALOME_Exception);
116   CORBA::Long AddFace(const SMESH::long_array & IDsOfNodes)
117     throw (SALOME::SALOME_Exception);
118   CORBA::Long AddPolygonalFace(const SMESH::long_array & IDsOfNodes)
119     throw (SALOME::SALOME_Exception);
120   CORBA::Long AddQuadPolygonalFace(const SMESH::long_array & IDsOfNodes)
121     throw (SALOME::SALOME_Exception);
122   CORBA::Long AddVolume(const SMESH::long_array & IDsOfNodes)
123     throw (SALOME::SALOME_Exception);
124   CORBA::Long AddPolyhedralVolume(const SMESH::long_array & IDsOfNodes,
125                                   const SMESH::long_array & Quantities)
126     throw (SALOME::SALOME_Exception);
127   CORBA::Long AddPolyhedralVolumeByFaces(const SMESH::long_array & IdsOfFaces)
128     throw (SALOME::SALOME_Exception);
129
130   /*!
131    * \brief Create 0D elements on all nodes of the given object except those 
132    *        nodes on which a 0D element already exists.
133    *  \param theObject object on whose nodes 0D elements will be created.
134    *  \param theGroupName optional name of a group to add 0D elements created
135    *         and/or found on nodes of \a theObject.
136    *  \return an object (a new group or a temporary SMESH_IDSource) holding
137    *          ids of new and/or found 0D elements.
138    */
139   SMESH::SMESH_IDSource_ptr Create0DElementsOnAllNodes(SMESH::SMESH_IDSource_ptr theObject,
140                                                        const char*               theGroupName)
141     throw (SALOME::SALOME_Exception);
142
143   /*!
144    * \brief Bind a node to a vertex
145    * \param NodeID - node ID
146    * \param VertexID - vertex ID available through GEOM_Object.GetSubShapeIndices()[0]
147    */
148   void SetNodeOnVertex(CORBA::Long NodeID, CORBA::Long VertexID)
149     throw (SALOME::SALOME_Exception);
150   /*!
151    * \brief Store node position on an edge
152    * \param NodeID - node ID
153    * \param EdgeID - edge ID available through GEOM_Object.GetSubShapeIndices()[0]
154    * \param paramOnEdge - parameter on edge where the node is located
155    */
156   void SetNodeOnEdge(CORBA::Long NodeID, CORBA::Long EdgeID,
157                      CORBA::Double paramOnEdge)
158     throw (SALOME::SALOME_Exception);
159   /*!
160    * \brief Store node position on a face
161    * \param NodeID - node ID
162    * \param FaceID - face ID available through GEOM_Object.GetSubShapeIndices()[0]
163    * \param u - U parameter on face where the node is located
164    * \param v - V parameter on face where the node is located
165    */
166   void SetNodeOnFace(CORBA::Long NodeID, CORBA::Long FaceID,
167                      CORBA::Double u, CORBA::Double v)
168     throw (SALOME::SALOME_Exception);
169   /*!
170    * \brief Bind a node to a solid
171    * \param NodeID - node ID
172    * \param SolidID - vertex ID available through GEOM_Object.GetSubShapeIndices()[0]
173    */
174   void SetNodeInVolume(CORBA::Long NodeID, CORBA::Long SolidID)
175     throw (SALOME::SALOME_Exception);
176   /*!
177    * \brief Bind an element to a shape
178    * \param ElementID - element ID
179    * \param ShapeID - shape ID available through GEOM_Object.GetSubShapeIndices()[0]
180    */
181   void SetMeshElementOnShape(CORBA::Long ElementID, CORBA::Long ShapeID)
182     throw (SALOME::SALOME_Exception);
183
184
185   CORBA::Boolean MoveNode(CORBA::Long NodeID,
186                           CORBA::Double x, CORBA::Double y, CORBA::Double z)
187     throw (SALOME::SALOME_Exception);
188
189   CORBA::Boolean InverseDiag(CORBA::Long NodeID1, CORBA::Long NodeID2)
190     throw (SALOME::SALOME_Exception);
191   CORBA::Boolean DeleteDiag(CORBA::Long NodeID1, CORBA::Long NodeID2)
192     throw (SALOME::SALOME_Exception);
193   CORBA::Boolean Reorient(const SMESH::long_array & IDsOfElements)
194     throw (SALOME::SALOME_Exception);
195   CORBA::Boolean ReorientObject(SMESH::SMESH_IDSource_ptr theObject)
196     throw (SALOME::SALOME_Exception);
197
198   /*!
199    * \brief Reorient faces contained in \a the2Dgroup.
200    * \param the2Dgroup - the mesh or its part to reorient
201    * \param theDirection - desired direction of normal of \a theFace
202    * \param theFace - ID of face whose orientation is checked.
203    *        It can be < 1 then \a thePoint is used to find a face.
204    * \param thePoint - is used to find a face if \a theFace < 1.
205    * \return number of reoriented elements.
206    */
207   CORBA::Long Reorient2D(SMESH::SMESH_IDSource_ptr the2Dgroup,
208                          const SMESH::DirStruct&   theDirection,
209                          CORBA::Long               theFace,
210                          const SMESH::PointStruct& thePoint) throw (SALOME::SALOME_Exception);
211   /*!
212    * \brief Reorient faces basing on orientation of adjacent volumes.
213    * \param faces - a list of objects containing face to reorient
214    * \param volumes - an object containing volumes.
215    * \param outsideNormal - to orient faces to have their normal
216    *        pointing either \a outside or \a inside the adjacent volumes.
217    * \return number of reoriented faces.
218    */
219   CORBA::Long Reorient2DBy3D(const SMESH::ListOfIDSources & faces,
220                              SMESH::SMESH_IDSource_ptr      volumes,
221                              CORBA::Boolean                 outsideNormal)
222     throw (SALOME::SALOME_Exception);
223
224   // Split/Join
225   CORBA::Boolean TriToQuad       (const SMESH::long_array &   IDsOfElements,
226                                   SMESH::NumericalFunctor_ptr Criterion,
227                                   CORBA::Double               MaxAngle)
228     throw (SALOME::SALOME_Exception);
229   CORBA::Boolean TriToQuadObject (SMESH::SMESH_IDSource_ptr   theObject,
230                                   SMESH::NumericalFunctor_ptr Criterion,
231                                   CORBA::Double               MaxAngle)
232     throw (SALOME::SALOME_Exception);
233   CORBA::Boolean QuadToTri       (const SMESH::long_array &   IDsOfElements,
234                                   SMESH::NumericalFunctor_ptr Criterion)
235     throw (SALOME::SALOME_Exception);
236   CORBA::Boolean QuadToTriObject (SMESH::SMESH_IDSource_ptr   theObject,
237                                   SMESH::NumericalFunctor_ptr Criterion)
238     throw (SALOME::SALOME_Exception);
239   void           QuadTo4Tri      (SMESH::SMESH_IDSource_ptr   theObject)
240     throw (SALOME::SALOME_Exception);
241   CORBA::Boolean SplitQuad       (const SMESH::long_array &   IDsOfElements,
242                                   CORBA::Boolean              Diag13)
243     throw (SALOME::SALOME_Exception);
244   CORBA::Boolean SplitQuadObject (SMESH::SMESH_IDSource_ptr   theObject,
245                                   CORBA::Boolean              Diag13)
246     throw (SALOME::SALOME_Exception);
247   CORBA::Long    BestSplit       (CORBA::Long                 IDOfQuad,
248                                   SMESH::NumericalFunctor_ptr Criterion)
249     throw (SALOME::SALOME_Exception);
250   void           SplitVolumesIntoTetra(SMESH::SMESH_IDSource_ptr elems,
251                                        CORBA::Short             methodFlags)
252     throw (SALOME::SALOME_Exception);
253   void           SplitHexahedraIntoPrisms(SMESH::SMESH_IDSource_ptr  elems,
254                                           const SMESH::PointStruct & startHexPoint,
255                                           const SMESH::DirStruct&    facetToSplitNormal,
256                                           CORBA::Short               methodFlags,
257                                           CORBA::Boolean             allDomains)
258     throw (SALOME::SALOME_Exception);
259   void           SplitBiQuadraticIntoLinear(const SMESH::ListOfIDSources& elems)
260     throw (SALOME::SALOME_Exception);
261
262   CORBA::Boolean Smooth(const SMESH::long_array &              IDsOfElements,
263                         const SMESH::long_array &              IDsOfFixedNodes,
264                         CORBA::Long                            MaxNbOfIterations,
265                         CORBA::Double                          MaxAspectRatio,
266                         SMESH::SMESH_MeshEditor::Smooth_Method Method)
267     throw (SALOME::SALOME_Exception);
268   CORBA::Boolean SmoothObject(SMESH::SMESH_IDSource_ptr              theObject,
269                               const SMESH::long_array &              IDsOfFixedNodes,
270                               CORBA::Long                            MaxNbOfIterations,
271                               CORBA::Double                          MaxAspectRatio,
272                               SMESH::SMESH_MeshEditor::Smooth_Method Method)
273     throw (SALOME::SALOME_Exception);
274   CORBA::Boolean SmoothParametric(const SMESH::long_array &              IDsOfElements,
275                                   const SMESH::long_array &              IDsOfFixedNodes,
276                                   CORBA::Long                            MaxNbOfIterations,
277                                   CORBA::Double                          MaxAspectRatio,
278                                   SMESH::SMESH_MeshEditor::Smooth_Method Method)
279     throw (SALOME::SALOME_Exception);
280   CORBA::Boolean SmoothParametricObject(SMESH::SMESH_IDSource_ptr              theObject,
281                                         const SMESH::long_array &              IDsOfFixedNodes,
282                                         CORBA::Long                            MaxNbOfIterations,
283                                         CORBA::Double                          MaxAspectRatio,
284                                         SMESH::SMESH_MeshEditor::Smooth_Method Method)
285     throw (SALOME::SALOME_Exception);
286   CORBA::Boolean smooth(const SMESH::long_array &              IDsOfElements,
287                         const SMESH::long_array &              IDsOfFixedNodes,
288                         CORBA::Long                            MaxNbOfIterations,
289                         CORBA::Double                          MaxAspectRatio,
290                         SMESH::SMESH_MeshEditor::Smooth_Method Method,
291                         bool                                   IsParametric)
292     throw (SALOME::SALOME_Exception);
293   CORBA::Boolean smoothObject(SMESH::SMESH_IDSource_ptr              theObject,
294                               const SMESH::long_array &              IDsOfFixedNodes,
295                               CORBA::Long                            MaxNbOfIterations,
296                               CORBA::Double                          MaxAspectRatio,
297                               SMESH::SMESH_MeshEditor::Smooth_Method Method,
298                               bool                                   IsParametric)
299     throw (SALOME::SALOME_Exception);
300
301   CORBA::Boolean ConvertFromQuadratic()
302     throw (SALOME::SALOME_Exception);
303   void           ConvertFromQuadraticObject(SMESH::SMESH_IDSource_ptr theObject)
304     throw (SALOME::SALOME_Exception);
305   void           ConvertToQuadratic(CORBA::Boolean Force3d)
306     throw (SALOME::SALOME_Exception);
307   void           ConvertToQuadraticObject(CORBA::Boolean            theForce3d,
308                                           SMESH::SMESH_IDSource_ptr theObject)
309     throw (SALOME::SALOME_Exception);
310   void           ConvertToBiQuadratic(CORBA::Boolean            theForce3d,
311                                       SMESH::SMESH_IDSource_ptr theObject)
312     throw (SALOME::SALOME_Exception);
313
314   void RenumberNodes() throw (SALOME::SALOME_Exception);
315   void RenumberElements() throw (SALOME::SALOME_Exception);
316
317   SMESH::ListOfGroups* RotationSweepObjects(const SMESH::ListOfIDSources & nodes,
318                                             const SMESH::ListOfIDSources & edges,
319                                             const SMESH::ListOfIDSources & faces,
320                                             const SMESH::AxisStruct &      Axis,
321                                             CORBA::Double                  AngleInRadians,
322                                             CORBA::Long                    NbOfSteps,
323                                             CORBA::Double                  Tolerance,
324                                             CORBA::Boolean                 toMakeGroups)
325     throw (SALOME::SALOME_Exception);
326
327   SMESH::ListOfGroups* ExtrusionSweepObjects(const SMESH::ListOfIDSources & nodes,
328                                              const SMESH::ListOfIDSources & edges,
329                                              const SMESH::ListOfIDSources & faces,
330                                              const SMESH::DirStruct &       stepVector,
331                                              CORBA::Long                    nbOfSteps,
332                                              CORBA::Boolean                 toMakeGroups)
333     throw (SALOME::SALOME_Exception);
334
335   SMESH::ListOfGroups* ExtrusionByNormal(const SMESH::ListOfIDSources& objects,
336                                          CORBA::Double                 stepSize,
337                                          CORBA::Long                   nbOfSteps,
338                                          CORBA::Boolean                byAverageNormal,
339                                          CORBA::Boolean                useInputElemsOnly,
340                                          CORBA::Boolean                makeGroups,
341                                          CORBA::Short                  dim)
342     throw (SALOME::SALOME_Exception);
343   SMESH::ListOfGroups*  AdvancedExtrusion(const SMESH::long_array & theIDsOfElements,
344                                           const SMESH::DirStruct &  theStepVector,
345                                           CORBA::Long               theNbOfSteps,
346                                           CORBA::Long               theExtrFlags,
347                                           CORBA::Double             theSewTolerance,
348                                           CORBA::Boolean            theMakeGroups)
349     throw (SALOME::SALOME_Exception);
350
351   SMESH::ListOfGroups*
352     ExtrusionAlongPathObjects(const SMESH::ListOfIDSources & nodes,
353                               const SMESH::ListOfIDSources & edges,
354                               const SMESH::ListOfIDSources & faces,
355                               SMESH::SMESH_IDSource_ptr      PathMesh,
356                               GEOM::GEOM_Object_ptr          PathShape,
357                               CORBA::Long                    NodeStart,
358                               CORBA::Boolean                 HasAngles,
359                               const SMESH::double_array &    Angles,
360                               CORBA::Boolean                 LinearVariation,
361                               CORBA::Boolean                 HasRefPoint,
362                               const SMESH::PointStruct &     RefPoint,
363                               bool                           MakeGroups,
364                               SMESH::SMESH_MeshEditor::Extrusion_Error& Error)
365     throw (SALOME::SALOME_Exception);
366
367   SMESH::double_array* LinearAnglesVariation(SMESH::SMESH_Mesh_ptr       PathMesh,
368                                                GEOM::GEOM_Object_ptr       PathShape,
369                                                const SMESH::double_array & Angles);
370
371   void Mirror(const SMESH::long_array &           IDsOfElements,
372               const SMESH::AxisStruct &           Axis,
373               SMESH::SMESH_MeshEditor::MirrorType MirrorType,
374               CORBA::Boolean                      Copy)
375     throw (SALOME::SALOME_Exception);
376   void MirrorObject(SMESH::SMESH_IDSource_ptr           theObject,
377                     const SMESH::AxisStruct &           Axis,
378                     SMESH::SMESH_MeshEditor::MirrorType MirrorType,
379                     CORBA::Boolean                      Copy)
380     throw (SALOME::SALOME_Exception);
381   void Translate(const SMESH::long_array & IDsOfElements,
382                  const SMESH::DirStruct &   Vector,
383                  CORBA::Boolean            Copy)
384     throw (SALOME::SALOME_Exception);
385   void TranslateObject(SMESH::SMESH_IDSource_ptr  theObject,
386                        const SMESH::DirStruct &   Vector,
387                        CORBA::Boolean             Copy)
388     throw (SALOME::SALOME_Exception);
389   void Rotate(const SMESH::long_array & IDsOfElements,
390               const SMESH::AxisStruct &  Axis,
391               CORBA::Double             Angle,
392               CORBA::Boolean            Copy)
393     throw (SALOME::SALOME_Exception);
394   void RotateObject(SMESH::SMESH_IDSource_ptr  theObject,
395                     const SMESH::AxisStruct &  Axis,
396                     CORBA::Double              Angle,
397                     CORBA::Boolean             Copy)
398     throw (SALOME::SALOME_Exception);
399
400   SMESH::ListOfGroups* MirrorMakeGroups(const SMESH::long_array&            IDsOfElements,
401                                         const SMESH::AxisStruct&            Mirror,
402                                         SMESH::SMESH_MeshEditor::MirrorType MirrorType)
403     throw (SALOME::SALOME_Exception);
404   SMESH::ListOfGroups* MirrorObjectMakeGroups(SMESH::SMESH_IDSource_ptr           Object,
405                                               const SMESH::AxisStruct&            Mirror,
406                                               SMESH::SMESH_MeshEditor::MirrorType MirrorType)
407     throw (SALOME::SALOME_Exception);
408   SMESH::ListOfGroups* TranslateMakeGroups(const SMESH::long_array& IDsOfElements,
409                                            const SMESH::DirStruct&  Vector)
410     throw (SALOME::SALOME_Exception);
411   SMESH::ListOfGroups* TranslateObjectMakeGroups(SMESH::SMESH_IDSource_ptr Object,
412                                                  const SMESH::DirStruct&   Vector)
413     throw (SALOME::SALOME_Exception);
414   SMESH::ListOfGroups* RotateMakeGroups(const SMESH::long_array& IDsOfElements,
415                                         const SMESH::AxisStruct& Axis,
416                                         CORBA::Double            AngleInRadians)
417     throw (SALOME::SALOME_Exception);
418   SMESH::ListOfGroups* RotateObjectMakeGroups(SMESH::SMESH_IDSource_ptr Object,
419                                               const SMESH::AxisStruct&  Axis,
420                                               CORBA::Double             AngleInRadians)
421     throw (SALOME::SALOME_Exception);
422
423   SMESH::SMESH_Mesh_ptr MirrorMakeMesh(const SMESH::long_array&            IDsOfElements,
424                                        const SMESH::AxisStruct&            Mirror,
425                                        SMESH::SMESH_MeshEditor::MirrorType MirrorType,
426                                        CORBA::Boolean                      CopyGroups,
427                                        const char*                         MeshName)
428     throw (SALOME::SALOME_Exception);
429   SMESH::SMESH_Mesh_ptr MirrorObjectMakeMesh(SMESH::SMESH_IDSource_ptr           Object,
430                                              const SMESH::AxisStruct&            Mirror,
431                                              SMESH::SMESH_MeshEditor::MirrorType MirrorType,
432                                              CORBA::Boolean                      CopyGroups,
433                                              const char*                         MeshName)
434     throw (SALOME::SALOME_Exception);
435   SMESH::SMESH_Mesh_ptr TranslateMakeMesh(const SMESH::long_array& IDsOfElements,
436                                           const SMESH::DirStruct&  Vector,
437                                           CORBA::Boolean           CopyGroups,
438                                           const char*              MeshName)
439     throw (SALOME::SALOME_Exception);
440   SMESH::SMESH_Mesh_ptr TranslateObjectMakeMesh(SMESH::SMESH_IDSource_ptr Object,
441                                                 const SMESH::DirStruct&   Vector,
442                                                 CORBA::Boolean            CopyGroups,
443                                                 const char*               MeshName)
444     throw (SALOME::SALOME_Exception);
445   SMESH::SMESH_Mesh_ptr RotateMakeMesh(const SMESH::long_array& IDsOfElements,
446                                        const SMESH::AxisStruct& Axis,
447                                        CORBA::Double            AngleInRadians,
448                                        CORBA::Boolean           CopyGroups,
449                                        const char*              MeshName)
450     throw (SALOME::SALOME_Exception);
451   SMESH::SMESH_Mesh_ptr RotateObjectMakeMesh(SMESH::SMESH_IDSource_ptr Object,
452                                              const SMESH::AxisStruct&  Axis,
453                                              CORBA::Double             AngleInRadians,
454                                              CORBA::Boolean            CopyGroups,
455                                              const char*               MeshName)
456     throw (SALOME::SALOME_Exception);
457
458   void Scale(SMESH::SMESH_IDSource_ptr  theObject,
459              const SMESH::PointStruct&  thePoint,
460              const SMESH::double_array& theScaleFact,
461              CORBA::Boolean             theCopy)
462     throw (SALOME::SALOME_Exception);
463
464   SMESH::ListOfGroups* ScaleMakeGroups(SMESH::SMESH_IDSource_ptr  theObject,
465                                        const SMESH::PointStruct&  thePoint,
466                                        const SMESH::double_array& theScaleFact)
467     throw (SALOME::SALOME_Exception);
468
469   SMESH::SMESH_Mesh_ptr ScaleMakeMesh(SMESH::SMESH_IDSource_ptr Object,
470                                       const SMESH::PointStruct& Point,
471                                       const SMESH::double_array& theScaleFact,
472                                       CORBA::Boolean            CopyGroups,
473                                       const char*               MeshName)
474     throw (SALOME::SALOME_Exception);
475
476   void FindCoincidentNodes (CORBA::Double                  Tolerance,
477                             SMESH::array_of_long_array_out GroupsOfNodes,
478                             CORBA::Boolean                 SeparateCornersAndMedium)
479     throw (SALOME::SALOME_Exception);
480   void FindCoincidentNodesOnPart(SMESH::SMESH_IDSource_ptr      Object,
481                                  CORBA::Double                  Tolerance,
482                                  SMESH::array_of_long_array_out GroupsOfNodes,
483                                  CORBA::Boolean                 SeparateCornersAndMedium)
484     throw (SALOME::SALOME_Exception);
485   void FindCoincidentNodesOnPartBut(SMESH::SMESH_IDSource_ptr      Object,
486                                     CORBA::Double                  Tolerance,
487                                     SMESH::array_of_long_array_out GroupsOfNodes,
488                                     const SMESH::ListOfIDSources&  ExceptSubMeshOrGroups,
489                                     CORBA::Boolean                 SeparateCornersAndMedium)
490     throw (SALOME::SALOME_Exception);
491   void MergeNodes (const SMESH::array_of_long_array& GroupsOfNodes,
492                    const SMESH::ListOfIDSources&     NodesToKeep )
493     throw (SALOME::SALOME_Exception);
494   void FindEqualElements(SMESH::SMESH_IDSource_ptr      Object,
495                          SMESH::array_of_long_array_out GroupsOfElementsID)
496     throw (SALOME::SALOME_Exception);
497   void MergeElements(const SMESH::array_of_long_array& GroupsOfElementsID)
498     throw (SALOME::SALOME_Exception);
499   void MergeEqualElements()
500     throw (SALOME::SALOME_Exception);
501   CORBA::Long MoveClosestNodeToPoint(CORBA::Double x,
502                                      CORBA::Double y,
503                                      CORBA::Double z,
504                                      CORBA::Long   nodeID)
505     throw (SALOME::SALOME_Exception);
506   /*!
507    * \brief Return ID of node closest to a given point
508    */
509   CORBA::Long FindNodeClosestTo(CORBA::Double x,
510                                 CORBA::Double y,
511                                 CORBA::Double z)
512     throw (SALOME::SALOME_Exception);
513   /*!
514    * Return elements of given type where the given point is IN or ON.
515    * 'ALL' type means elements of any type excluding nodes
516    */
517   SMESH::long_array* FindElementsByPoint(CORBA::Double      x,
518                                          CORBA::Double      y,
519                                          CORBA::Double      z,
520                                          SMESH::ElementType type)
521     throw (SALOME::SALOME_Exception);
522   /*!
523    * Searching among the given elements, return elements of given type 
524    * where the given point is IN or ON.
525    * 'ALL' type means elements of any type excluding nodes
526    */
527   SMESH::long_array* FindAmongElementsByPoint(SMESH::SMESH_IDSource_ptr elements,
528                                               CORBA::Double             x,
529                                               CORBA::Double             y,
530                                               CORBA::Double             z,
531                                               SMESH::ElementType        type)
532     throw (SALOME::SALOME_Exception);
533
534   /*!
535    * Return point state in a closed 2D mesh in terms of TopAbs_State enumeration.
536    * TopAbs_UNKNOWN state means that either mesh is wrong or the analysis fails.
537    */
538   CORBA::Short GetPointState(CORBA::Double x, CORBA::Double y, CORBA::Double z)
539     throw (SALOME::SALOME_Exception);
540
541   SMESH::SMESH_MeshEditor::Sew_Error
542   SewFreeBorders(CORBA::Long FirstNodeID1,
543                  CORBA::Long SecondNodeID1,
544                  CORBA::Long LastNodeID1,
545                  CORBA::Long FirstNodeID2,
546                  CORBA::Long SecondNodeID2,
547                  CORBA::Long LastNodeID2,
548                  CORBA::Boolean CreatePolygons,
549                  CORBA::Boolean CreatePolyedrs)
550     throw (SALOME::SALOME_Exception);
551   SMESH::SMESH_MeshEditor::Sew_Error
552   SewConformFreeBorders(CORBA::Long FirstNodeID1,
553                         CORBA::Long SecondNodeID1,
554                         CORBA::Long LastNodeID1,
555                         CORBA::Long FirstNodeID2,
556                         CORBA::Long SecondNodeID2)
557     throw (SALOME::SALOME_Exception);
558   SMESH::SMESH_MeshEditor::Sew_Error
559   SewBorderToSide(CORBA::Long FirstNodeIDOnFreeBorder,
560                   CORBA::Long SecondNodeIDOnFreeBorder,
561                   CORBA::Long LastNodeIDOnFreeBorder,
562                   CORBA::Long FirstNodeIDOnSide,
563                   CORBA::Long LastNodeIDOnSide,
564                   CORBA::Boolean CreatePolygons,
565                   CORBA::Boolean CreatePolyedrs)
566     throw (SALOME::SALOME_Exception);
567   SMESH::SMESH_MeshEditor::Sew_Error
568   SewSideElements(const SMESH::long_array& IDsOfSide1Elements,
569                   const SMESH::long_array& IDsOfSide2Elements,
570                   CORBA::Long NodeID1OfSide1ToMerge,
571                   CORBA::Long NodeID1OfSide2ToMerge,
572                   CORBA::Long NodeID2OfSide1ToMerge,
573                   CORBA::Long NodeID2OfSide2ToMerge)
574     throw (SALOME::SALOME_Exception);
575
576   /*!
577    * Set new nodes for given element.
578    * If number of nodes is not corresponded to type of
579    * element - returns false
580    */
581   CORBA::Boolean ChangeElemNodes(CORBA::Long ide, const SMESH::long_array& newIDs)
582     throw (SALOME::SALOME_Exception);
583
584   SMESH::SMESH_Group_ptr DoubleElements(SMESH::SMESH_IDSource_ptr theElements,
585                                         const char*               theGroupName)
586     throw (SALOME::SALOME_Exception);
587
588   CORBA::Boolean DoubleNodes( const SMESH::long_array& theNodes,
589                               const SMESH::long_array& theModifiedElems )
590     throw (SALOME::SALOME_Exception);
591
592   CORBA::Boolean DoubleNode( CORBA::Long theNodeId,
593                              const SMESH::long_array& theModifiedElems )
594     throw (SALOME::SALOME_Exception);
595
596   CORBA::Boolean DoubleNodeGroup( SMESH::SMESH_GroupBase_ptr theNodes,
597                                   SMESH::SMESH_GroupBase_ptr theModifiedElems )
598     throw (SALOME::SALOME_Exception);
599
600   /*!
601    * \brief Creates a hole in a mesh by doubling the nodes of some particular elements.
602    * Works as DoubleNodeGroup(), but returns a new group with newly created nodes.
603    * \param theNodes - group of nodes to be doubled.
604    * \param theModifiedElems - group of elements to be updated.
605    * \return a new group with newly created nodes
606    * \sa DoubleNodeGroup()
607    */
608   SMESH::SMESH_Group_ptr DoubleNodeGroupNew( SMESH::SMESH_GroupBase_ptr theNodes,
609                                              SMESH::SMESH_GroupBase_ptr theModifiedElems )
610     throw (SALOME::SALOME_Exception);
611
612   CORBA::Boolean DoubleNodeGroups( const SMESH::ListOfGroups& theNodes,
613                                    const SMESH::ListOfGroups& theModifiedElems )
614     throw (SALOME::SALOME_Exception);
615
616   SMESH::SMESH_Group_ptr DoubleNodeGroupsNew( const SMESH::ListOfGroups& theNodes,
617                                               const SMESH::ListOfGroups& theModifiedElems )
618     throw (SALOME::SALOME_Exception);
619
620   /*!
621    * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
622    * \param theElems - the list of elements (edges or faces) to be replicated
623    *       The nodes for duplication could be found from these elements
624    * \param theNodesNot - list of nodes to NOT replicate
625    * \param theAffectedElems - the list of elements (cells and edges) to which the 
626    *       replicated nodes should be associated to.
627    * \return TRUE if operation has been completed successfully, FALSE otherwise
628    * \sa DoubleNodeGroup(), DoubleNodeGroups()
629    */
630   CORBA::Boolean DoubleNodeElem( const SMESH::long_array& theElems, 
631                                  const SMESH::long_array& theNodesNot,
632                                  const SMESH::long_array& theAffectedElems )
633     throw (SALOME::SALOME_Exception);
634
635   /*!
636    * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
637    * \param theElems - the list of elements (edges or faces) to be replicated
638    *        The nodes for duplication could be found from these elements
639    * \param theNodesNot - list of nodes to NOT replicate
640    * \param theShape - shape to detect affected elements (element which geometric center
641    *        located on or inside shape).
642    *        The replicated nodes should be associated to affected elements.
643    * \return TRUE if operation has been completed successfully, FALSE otherwise
644    * \sa DoubleNodeGroupInRegion(), DoubleNodeGroupsInRegion()
645    */
646   CORBA::Boolean DoubleNodeElemInRegion( const SMESH::long_array& theElems, 
647                                          const SMESH::long_array& theNodesNot,
648                                          GEOM::GEOM_Object_ptr    theShape )
649     throw (SALOME::SALOME_Exception);
650
651   /*!
652    * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
653    * \param theElems - group of of elements (edges or faces) to be replicated
654    * \param theNodesNot - group of nodes not to replicated
655    * \param theAffectedElems - group of elements to which the replicated nodes
656    *        should be associated to.
657    * \return TRUE if operation has been completed successfully, FALSE otherwise
658    * \sa DoubleNodes(), DoubleNodeGroups(), DoubleNodeElemGroupNew()
659    */
660   CORBA::Boolean DoubleNodeElemGroup( SMESH::SMESH_GroupBase_ptr theElems,
661                                       SMESH::SMESH_GroupBase_ptr theNodesNot,
662                                       SMESH::SMESH_GroupBase_ptr theAffectedElems )
663     throw (SALOME::SALOME_Exception);
664
665   /*!
666    * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
667    * Works as DoubleNodeElemGroup(), but returns a new group with newly created elements.
668    * \param theElems - group of of elements (edges or faces) to be replicated
669    * \param theNodesNot - group of nodes not to replicated
670    * \param theAffectedElems - group of elements to which the replicated nodes
671    *        should be associated to.
672    * \return a new group with newly created elements
673    * \sa DoubleNodeElemGroup()
674    */
675   SMESH::SMESH_Group_ptr DoubleNodeElemGroupNew( SMESH::SMESH_GroupBase_ptr theElems,
676                                                  SMESH::SMESH_GroupBase_ptr theNodesNot,
677                                                  SMESH::SMESH_GroupBase_ptr theAffectedElems )
678     throw (SALOME::SALOME_Exception);
679
680   SMESH::ListOfGroups*   DoubleNodeElemGroup2New(SMESH::SMESH_GroupBase_ptr theElems,
681                                                  SMESH::SMESH_GroupBase_ptr theNodesNot,
682                                                  SMESH::SMESH_GroupBase_ptr theAffectedElems,
683                                                  CORBA::Boolean             theElemGroupNeeded,
684                                                  CORBA::Boolean             theNodeGroupNeeded)
685     throw (SALOME::SALOME_Exception);
686   
687   /*!
688    * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
689    * \param theElems - group of of elements (edges or faces) to be replicated
690    * \param theNodesNot - group of nodes not to replicated
691    * \param theShape - shape to detect affected elements (element which geometric center
692    *        located on or inside shape).
693    *        The replicated nodes should be associated to affected elements.
694    * \return TRUE if operation has been completed successfully, FALSE otherwise
695    * \sa DoubleNodesInRegion(), DoubleNodeGroupsInRegion()
696    */
697   CORBA::Boolean DoubleNodeElemGroupInRegion( SMESH::SMESH_GroupBase_ptr theElems,
698                                               SMESH::SMESH_GroupBase_ptr theNodesNot,
699                                               GEOM::GEOM_Object_ptr      theShape )
700     throw (SALOME::SALOME_Exception);
701
702   /*!
703    * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
704    * This method provided for convenience works as DoubleNodes() described above.
705    * \param theElems - list of groups of elements (edges or faces) to be replicated
706    * \param theNodesNot - list of groups of nodes not to replicated
707    * \param theAffectedElems - group of elements to which the replicated nodes
708    *        should be associated to.
709    * \return TRUE if operation has been completed successfully, FALSE otherwise
710    * \sa DoubleNodeGroup(), DoubleNodes(), DoubleNodeElemGroupsNew()
711    */
712   CORBA::Boolean DoubleNodeElemGroups( const SMESH::ListOfGroups& theElems,
713                                        const SMESH::ListOfGroups& theNodesNot,
714                                        const SMESH::ListOfGroups& theAffectedElems )
715     throw (SALOME::SALOME_Exception);
716
717   /*!
718    * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
719    * Works as DoubleNodeElemGroups(), but returns a new group with newly created elements.
720    * \param theElems - list of groups of elements (edges or faces) to be replicated
721    * \param theNodesNot - list of groups of nodes not to replicated
722    * \param theAffectedElems - group of elements to which the replicated nodes
723    *        should be associated to.
724    * \return a new group with newly created elements
725    * \sa DoubleNodeElemGroups()
726    */
727   SMESH::SMESH_Group_ptr DoubleNodeElemGroupsNew( const SMESH::ListOfGroups& theElems,
728                                                   const SMESH::ListOfGroups& theNodesNot,
729                                                   const SMESH::ListOfGroups& theAffectedElems )
730     throw (SALOME::SALOME_Exception);
731
732   SMESH::ListOfGroups*   DoubleNodeElemGroups2New(const SMESH::ListOfGroups& theElems,
733                                                   const SMESH::ListOfGroups& theNodesNot,
734                                                   const SMESH::ListOfGroups& theAffectedElems,
735                                                   CORBA::Boolean             theElemGroupNeeded,
736                                                   CORBA::Boolean             theNodeGroupNeeded)
737     throw (SALOME::SALOME_Exception);
738
739   /*!
740    * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
741    * This method provided for convenience works as DoubleNodes() described above.
742    * \param theElems - list of groups of elements (edges or faces) to be replicated
743    * \param theNodesNot - list of groups of nodes not to replicated
744    * \param theShape - shape to detect affected elements (element which geometric center
745    *        located on or inside shape).
746    *        The replicated nodes should be associated to affected elements.
747    * \return TRUE if operation has been completed successfully, FALSE otherwise
748    * \sa DoubleNodeGroupInRegion(), DoubleNodesInRegion()
749    */
750   CORBA::Boolean DoubleNodeElemGroupsInRegion( const SMESH::ListOfGroups& theElems,
751                                                const SMESH::ListOfGroups& theNodesNot,
752                                                GEOM::GEOM_Object_ptr      theShape )
753     throw (SALOME::SALOME_Exception);
754
755   /*!
756    * \brief Identify the elements that will be affected by node duplication (actual duplication is not performed.
757    * This method is the first step of DoubleNodeElemGroupsInRegion.
758    * \param theElems - list of groups of elements (edges or faces) to be replicated
759    * \param theNodesNot - list of groups of nodes not to replicated
760    * \param theShape - shape to detect affected elements (element which geometric center
761    *        located on or inside shape).
762    *        The replicated nodes should be associated to affected elements.
763    * \return groups of affected elements
764    * \sa DoubleNodeElemGroupsInRegion()
765    */
766   SMESH::ListOfGroups* AffectedElemGroupsInRegion( const SMESH::ListOfGroups& theElems,
767                                                    const SMESH::ListOfGroups& theNodesNot,
768                                                    GEOM::GEOM_Object_ptr      theShape )
769     throw (SALOME::SALOME_Exception);
770
771   /*!
772    * \brief Double nodes on shared faces between groups of volumes and create flat elements on demand.
773    * The list of groups must describe a partition of the mesh volumes.
774    * The nodes of the internal faces at the boundaries of the groups are doubled.
775    * In option, the internal faces are replaced by flat elements.
776    * Triangles are transformed in prisms, and quadrangles in hexahedrons.
777    * \param theDomains - list of groups of volumes
778    * \param createJointElems - if TRUE, create the elements
779    * \param onAllBoundaries - if TRUE, the nodes and elements are also create on
780    *        the boundary between \a theDomains and the rest mesh
781    * \return TRUE if operation has been completed successfully, FALSE otherwise
782    */
783   CORBA::Boolean DoubleNodesOnGroupBoundaries( const SMESH::ListOfGroups& theDomains,
784                                                CORBA::Boolean             createJointElems,
785                                                CORBA::Boolean             onAllBoundaries )
786     throw (SALOME::SALOME_Exception);
787   /*!
788    * \brief Double nodes on some external faces and create flat elements.
789    * Flat elements are mainly used by some types of mechanic calculations.
790    *
791    * Each group of the list must be constituted of faces.
792    * Triangles are transformed in prisms, and quadrangles in hexahedrons.
793    * @param theGroupsOfFaces - list of groups of faces
794    * @return TRUE if operation has been completed successfully, FALSE otherwise
795    */
796   CORBA::Boolean CreateFlatElementsOnFacesGroups( const SMESH::ListOfGroups& theGroupsOfFaces )
797     throw (SALOME::SALOME_Exception);
798
799   /*!
800    *  \brief identify all the elements around a geom shape, get the faces delimiting the hole
801    *  Build groups of volume to remove, groups of faces to replace on the skin of the object,
802    *  groups of faces to remove insidethe object, (idem edges).
803    *  Build ordered list of nodes at the border of each group of faces to replace (to be used to build a geom subshape)
804    */
805   void CreateHoleSkin(CORBA::Double radius,
806                       GEOM::GEOM_Object_ptr theShape,
807                       const char* groupName,
808                       const SMESH::double_array& theNodesCoords,
809                       SMESH::array_of_long_array_out GroupsOfNodes)
810   throw (SALOME::SALOME_Exception);
811
812   /*!
813    * \brief Generated skin mesh (containing 2D cells) from 3D mesh
814    * The created 2D mesh elements based on nodes of free faces of boundary volumes
815    * \return TRUE if operation has been completed successfully, FALSE otherwise
816    */
817   CORBA::Boolean Make2DMeshFrom3D()
818     throw (SALOME::SALOME_Exception);
819
820   SMESH::SMESH_Mesh_ptr MakeBoundaryMesh(SMESH::SMESH_IDSource_ptr elements,
821                                          SMESH::Bnd_Dimension      dimension,
822                                          const char*               groupName,
823                                          const char*               meshName,
824                                          CORBA::Boolean            toCopyElements,
825                                          CORBA::Boolean            toCopyMissingBondary,
826                                          SMESH::SMESH_Group_out    group)
827     throw (SALOME::SALOME_Exception);
828
829   CORBA::Long MakeBoundaryElements(SMESH::Bnd_Dimension dimension,
830                                    const char* groupName,
831                                    const char* meshName,
832                                    CORBA::Boolean toCopyAll,
833                                    const SMESH::ListOfIDSources& groups,
834                                    SMESH::SMESH_Mesh_out mesh,
835                                    SMESH::SMESH_Group_out group)
836     throw (SALOME::SALOME_Exception);
837
838 private: //!< private methods
839
840   ::SMESH_MeshEditor& getEditor();
841
842   SMESHDS_Mesh * getMeshDS() { return myMesh->GetMeshDS(); }
843
844   MeshEditor_I::TPreviewMesh * getPreviewMesh( SMDSAbs_ElementType previewType = SMDSAbs_All );
845
846   void declareMeshModified( bool isReComputeSafe );
847
848   /*!
849    * \brief Clear myLastCreated* or myPreviewData
850    */
851   void initData(bool deleteSearchers=true);
852
853   /*!
854    * \brief Return groups by their IDs
855    */
856   SMESH::ListOfGroups* getGroups(const std::list<int>* groupIDs)
857     throw (SALOME::SALOME_Exception);
858
859   SMESH::ListOfGroups* mirror(TIDSortedElemSet &                  IDsOfElements,
860                               const SMESH::AxisStruct &           Axis,
861                               SMESH::SMESH_MeshEditor::MirrorType MirrorType,
862                               CORBA::Boolean                      Copy,
863                               bool                                MakeGroups,
864                               ::SMESH_Mesh*                       TargetMesh=0)
865     throw (SALOME::SALOME_Exception);
866   SMESH::ListOfGroups* translate(TIDSortedElemSet        & IDsOfElements,
867                                  const SMESH::DirStruct &  Vector,
868                                  CORBA::Boolean            Copy,
869                                  bool                      MakeGroups,
870                                  ::SMESH_Mesh*             TargetMesh=0)
871     throw (SALOME::SALOME_Exception);
872   SMESH::ListOfGroups* rotate(TIDSortedElemSet &           IDsOfElements,
873                               const SMESH::AxisStruct &  Axis,
874                               CORBA::Double             Angle,
875                               CORBA::Boolean            Copy,
876                               bool                      MakeGroups,
877                               ::SMESH_Mesh*             TargetMesh=0)
878     throw (SALOME::SALOME_Exception);
879
880   SMESH::ListOfGroups* scale(SMESH::SMESH_IDSource_ptr   theObject,
881                              const SMESH::PointStruct&   thePoint,
882                              const SMESH::double_array&  theScaleFact,
883                              CORBA::Boolean              theCopy,
884                              bool                        theMakeGroups,
885                              ::SMESH_Mesh*               theTargetMesh=0)
886     throw (SALOME::SALOME_Exception);
887
888   void convertToQuadratic(CORBA::Boolean            theForce3d,
889                           CORBA::Boolean            theToBiQuad,
890                           SMESH::SMESH_IDSource_ptr theObject = SMESH::SMESH_IDSource::_nil())
891     throw (SALOME::SALOME_Exception);
892
893   SMESH::SMESH_Mesh_ptr makeMesh(const char* theMeshName);
894
895   void dumpGroupsList(SMESH::TPythonDump &        theDumpPython,
896                       const SMESH::ListOfGroups * theGroupList);
897
898   string generateGroupName(const string& thePrefix);
899
900   void prepareIdSource(SMESH::SMESH_IDSource_ptr theObject);
901
902
903   enum IDSource_Error { IDSource_OK, IDSource_INVALID, IDSource_EMPTY };
904
905   bool idSourceToSet(SMESH::SMESH_IDSource_ptr  theIDSource,
906                      const SMESHDS_Mesh*        theMeshDS,
907                      TIDSortedElemSet&          theElemSet,
908                      const SMDSAbs_ElementType  theType,
909                      const bool                 emptyIfIsMesh = false,
910                      IDSource_Error*            error = 0);
911
912   void findCoincidentNodes( TIDSortedNodeSet &             Nodes,
913                             CORBA::Double                  Tolerance,
914                             SMESH::array_of_long_array_out GroupsOfNodes,
915                             CORBA::Boolean                 SeparateCornersAndMedium);
916
917
918
919  private: //!< fields
920
921   SMESH_Mesh_i*                myMesh_i;
922   SMESH_Mesh *                 myMesh;
923   ::SMESH_MeshEditor           myEditor;
924
925   bool                         myIsPreviewMode;
926   MeshEditor_I::TPreviewMesh * myPreviewMesh;
927   ::SMESH_MeshEditor *         myPreviewEditor;
928   SMESH::MeshPreviewStruct_var myPreviewData;
929
930   // temporary IDSources
931   struct _IDSource;
932   // std::list< _IDSource* >      myAuxIDSources;
933   // void                         deleteAuxIDSources();
934 };
935
936 #endif