1 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
18 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
22 // File : SMESH_BasicHypothesis.idl
23 // Author : Paul RASCLE, EDF
26 #ifndef _SMESH_BASICHYPOTHESIS_IDL_
27 #define _SMESH_BASICHYPOTHESIS_IDL_
29 #include "SALOME_Exception.idl"
30 #include "SMESH_Hypothesis.idl"
31 #include "SMESH_Mesh.idl"
35 * StdMeshers: interfaces to standard hypotheses and algorithms
40 * StdMeshers_LocalLength: interface of "Average length" hypothesis
42 interface StdMeshers_LocalLength : SMESH::SMESH_Hypothesis
45 * Sets <length> parameter value
47 void SetLength(in double length)
48 raises (SALOME::SALOME_Exception);
51 * Returns <length> parameter value
57 * StdMeshers_NumberOfSegments: interface of "Nb. Segments" hypothesis
59 interface StdMeshers_NumberOfSegments : SMESH::SMESH_Hypothesis
62 * Sets <number of segments> parameter value
64 void SetNumberOfSegments(in long segmentsNumber)
65 raises (SALOME::SALOME_Exception);
68 * Returns <number of segments> parameter value
70 long GetNumberOfSegments();
73 * Sets <distribution type> parameter value
75 void SetDistrType(in long typ)
76 raises (SALOME::SALOME_Exception);
79 * Returns <distribution type> parameter value
84 * Sets <scale factor> parameter value
86 void SetScaleFactor(in double scaleFactor)
87 raises (SALOME::SALOME_Exception);
90 * Returns <scale factor> parameter value
92 double GetScaleFactor()
93 raises (SALOME::SALOME_Exception);
96 * Sets <table function> parameter value for distribution DT_TabFunc
98 void SetTableFunction(in SMESH::double_array table)
99 raises (SALOME::SALOME_Exception);
102 * Returns <table function> parameter value for distribution DT_TabFunc
104 SMESH::double_array GetTableFunction()
105 raises (SALOME::SALOME_Exception);
108 * Sets <expression function> parameter value for distribution DT_ExprFunc
110 void SetExpressionFunction(in string expr)
111 raises (SALOME::SALOME_Exception);
114 * Returns <expression function> parameter value for distribution DT_ExprFunc
116 string GetExpressionFunction()
117 raises (SALOME::SALOME_Exception);
120 * Sets <exponent mode> parameter value for functional distributions
122 void SetExponentMode(in boolean isExponent)
123 raises (SALOME::SALOME_Exception);
126 * Returns <exponent mode> parameter value for functional distributions
128 boolean IsExponentMode()
129 raises (SALOME::SALOME_Exception);
133 * StdMeshers_Arithmetic1D: interface of "Arithmetic 1D" hypothesis
135 interface StdMeshers_Arithmetic1D : SMESH::SMESH_Hypothesis
138 * Sets <start segment length> or <end segment length> parameter value
140 void SetLength(in double length, in boolean isStartLength)
141 raises (SALOME::SALOME_Exception);
144 * Returns <start segment length> or <end segment length> parameter value
146 double GetLength(in boolean isStartLength);
150 * StdMeshers_MaxElementArea: interface of "Max. Triangle Area" hypothesis
152 interface StdMeshers_MaxElementArea : SMESH::SMESH_Hypothesis
155 * Sets <maximum element area> parameter value
157 void SetMaxElementArea(in double area)
158 raises (SALOME::SALOME_Exception);
161 * Returns <maximum element area> parameter value
163 double GetMaxElementArea();
167 * StdMeshers_LengthFromEdges: interface of "Length From Edges (2D Hyp. for Triangulator)" hypothesis
169 interface StdMeshers_LengthFromEdges : SMESH::SMESH_Hypothesis
172 * Sets <mode> parameter value
174 void SetMode(in long mode)
175 raises (SALOME::SALOME_Exception);
178 * Returns <mode> parameter value
184 * StdMeshers_StartEndLength: interface of "Start and End Length" hypothesis
186 interface StdMeshers_StartEndLength : SMESH::SMESH_Hypothesis
189 * Sets <start segment length> or <end segment length> parameter value
191 void SetLength(in double length, in boolean isStartLength)
192 raises (SALOME::SALOME_Exception);
195 * Returns <start segment length> or <end segment length> parameter value
197 double GetLength(in boolean isStartLength);
202 * StdMeshers_Deflection1D: interface of "Deflection 1D" hypothesis
204 interface StdMeshers_Deflection1D : SMESH::SMESH_Hypothesis
207 * Sets <deflection> parameter value
209 void SetDeflection(in double deflection)
210 raises (SALOME::SALOME_Exception);
213 * Returns <deflection> parameter value
215 double GetDeflection();
220 * StdMeshers_MaxElementVolume: interface of "Max. Hexahedron or Tetrahedron Volume" hypothesis
222 interface StdMeshers_MaxElementVolume : SMESH::SMESH_Hypothesis
225 * Sets <maximum element volume> parameter value
227 void SetMaxElementVolume(in double volume)
228 raises (SALOME::SALOME_Exception);
231 * Returns <maximum element volume> parameter value
233 double GetMaxElementVolume();
237 * StdMeshers_NotConformAllowed: interface of "Not Conform Mesh Allowed" hypothesis.
238 * Presence of this hypothesis permits to algorithm generation of not conform mesh.
240 interface StdMeshers_NotConformAllowed : SMESH::SMESH_Hypothesis
245 * StdMeshers_Propagation: interface of "Propagation" hypothesis.
246 * Presence of this hypothesis on any edge propagates any other 1D
247 * hypothesis from this edge on all edges, opposite to it.
248 * It concerns only edges of quadrangle faces.
250 interface StdMeshers_Propagation : SMESH::SMESH_Hypothesis
255 * StdMeshers_Regular_1D: interface of "Wire discretisation" algorithm
257 interface StdMeshers_Regular_1D : SMESH::SMESH_1D_Algo
262 * StdMeshers_MEFISTO_2D: interface of "Triangle (Mefisto)" algorithm
264 interface StdMeshers_MEFISTO_2D : SMESH::SMESH_2D_Algo
269 * StdMeshers_Quadrangle_2D: interface of "Quadrangle (Mapping)" algorithm
271 interface StdMeshers_Quadrangle_2D : SMESH::SMESH_2D_Algo
276 * StdMeshers_Hexa_3D: interface of "Hexahedron (i,j,k)" algorithm
278 interface StdMeshers_Hexa_3D : SMESH::SMESH_3D_Algo