1 //=============================================================================
2 // File : SMESH_Gen.idl
3 // Created : jeu avr 11 15:26:35 CEST 2002
4 // Author : Paul RASCLE, EDF
6 // Copyright : EDF 2002
8 //=============================================================================
10 #ifndef _SMESH_GEN_IDL_
11 #define _SMESH_GEN_IDL_
13 #include "SALOME_Exception.idl"
14 #include "SALOME_Component.idl"
15 #include "SALOMEDS.idl"
17 #include "GEOM_Gen.idl"
18 #include "GEOM_Shape.idl"
20 #include "SMESH_Mesh.idl"
21 #include "SMESH_Hypothesis.idl"
25 typedef sequence<GEOM::GEOM_Shape> shape_array;
27 interface SMESH_Gen : Engines::Component, SALOMEDS::Driver
30 * Create an hypothesis that can be shared by differents parts of the mesh.
31 * An hypothesis is either:
32 * - a method used to generate or modify a part of the mesh (algorithm).
33 * - a parameter or a law used by an algorithm.
34 * Algorithms are 1D, 2D or 3D.
36 SMESH_Hypothesis CreateHypothesis( in string anHyp,
38 raises (SALOME::SALOME_Exception);
41 * Create a Mesh object, given a geometry shape.
42 * Mesh is created empty (no points, no elements).
43 * Shape is explored via GEOM_Client to create local copies.
44 * of TopoDS_Shapes and bind CORBA references of shape & subshapes
47 SMESH_Mesh Init(in GEOM::GEOM_Gen geomEngine,
49 in GEOM::GEOM_Shape aShape)
50 raises (SALOME::SALOME_Exception);
53 * Create a Mesh object, without a geometry shape reference
55 // SMESH_Mesh NewEmpty(in GEOM::GEOM_Gen geomEngine,
57 // raises (SALOME::SALOME_Exception);
61 * First, verify list of hypothesis associated with the subShape,
62 * return NOK if hypothesis are not sufficient
64 boolean Compute(in SMESH_Mesh aMesh, in GEOM::GEOM_Shape aSubShape)
65 raises (SALOME::SALOME_Exception);
71 boolean IsReadyToCompute(in SMESH_Mesh aMesh, in GEOM::GEOM_Shape aSubShape)
72 raises (SALOME::SALOME_Exception);
77 long_array GetSubShapesId(in GEOM::GEOM_Gen geomEngine,
79 in GEOM::GEOM_Shape mainShape,
80 in shape_array listOfSubShape)
81 raises (SALOME::SALOME_Exception);
86 // long_array GetSubMeshesState(in GEOM::GEOM_Gen geomEngine,
88 // in shape_array listOfSubShape)
89 // raises (SALOME::SALOME_Exception);