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_AutomaticLength: interface of "Automatic length" hypothesis
59 interface StdMeshers_AutomaticLength : SMESH::SMESH_Hypothesis
64 * StdMeshers_NumberOfSegments: interface of "Nb. Segments" hypothesis
66 interface StdMeshers_NumberOfSegments : SMESH::SMESH_Hypothesis
69 * Sets <number of segments> parameter value
71 void SetNumberOfSegments(in long segmentsNumber)
72 raises (SALOME::SALOME_Exception);
75 * Returns <number of segments> parameter value
77 long GetNumberOfSegments();
80 * Sets <distribution type> parameter value
82 void SetDistrType(in long typ)
83 raises (SALOME::SALOME_Exception);
86 * Returns <distribution type> parameter value
91 * Sets <scale factor> parameter value
93 void SetScaleFactor(in double scaleFactor)
94 raises (SALOME::SALOME_Exception);
97 * Returns <scale factor> parameter value
99 double GetScaleFactor()
100 raises (SALOME::SALOME_Exception);
103 * Sets <table function> parameter value for distribution DT_TabFunc
105 void SetTableFunction(in SMESH::double_array table)
106 raises (SALOME::SALOME_Exception);
109 * Returns <table function> parameter value for distribution DT_TabFunc
111 SMESH::double_array GetTableFunction()
112 raises (SALOME::SALOME_Exception);
115 * Sets <expression function> parameter value for distribution DT_ExprFunc
117 void SetExpressionFunction(in string expr)
118 raises (SALOME::SALOME_Exception);
121 * Returns <expression function> parameter value for distribution DT_ExprFunc
123 string GetExpressionFunction()
124 raises (SALOME::SALOME_Exception);
127 * Sets <exponent mode> parameter value for functional distributions
129 void SetExponentMode(in boolean isExponent)
130 raises (SALOME::SALOME_Exception);
133 * Returns <exponent mode> parameter value for functional distributions
135 boolean IsExponentMode()
136 raises (SALOME::SALOME_Exception);
140 * StdMeshers_Arithmetic1D: interface of "Arithmetic 1D" hypothesis
142 interface StdMeshers_Arithmetic1D : SMESH::SMESH_Hypothesis
145 * Sets <start segment length> or <end segment length> parameter value
147 void SetLength(in double length, in boolean isStartLength)
148 raises (SALOME::SALOME_Exception);
151 * Returns <start segment length> or <end segment length> parameter value
153 double GetLength(in boolean isStartLength);
157 * StdMeshers_MaxElementArea: interface of "Max. Triangle Area" hypothesis
159 interface StdMeshers_MaxElementArea : SMESH::SMESH_Hypothesis
162 * Sets <maximum element area> parameter value
164 void SetMaxElementArea(in double area)
165 raises (SALOME::SALOME_Exception);
168 * Returns <maximum element area> parameter value
170 double GetMaxElementArea();
174 * StdMeshers_LengthFromEdges: interface of "Length From Edges (2D Hyp. for Triangulator)" hypothesis
176 interface StdMeshers_LengthFromEdges : SMESH::SMESH_Hypothesis
179 * Sets <mode> parameter value
181 void SetMode(in long mode)
182 raises (SALOME::SALOME_Exception);
185 * Returns <mode> parameter value
191 * StdMeshers_StartEndLength: interface of "Start and End Length" hypothesis
193 interface StdMeshers_StartEndLength : SMESH::SMESH_Hypothesis
196 * Sets <start segment length> or <end segment length> parameter value
198 void SetLength(in double length, in boolean isStartLength)
199 raises (SALOME::SALOME_Exception);
202 * Returns <start segment length> or <end segment length> parameter value
204 double GetLength(in boolean isStartLength);
209 * StdMeshers_Deflection1D: interface of "Deflection 1D" hypothesis
211 interface StdMeshers_Deflection1D : SMESH::SMESH_Hypothesis
214 * Sets <deflection> parameter value
216 void SetDeflection(in double deflection)
217 raises (SALOME::SALOME_Exception);
220 * Returns <deflection> parameter value
222 double GetDeflection();
227 * StdMeshers_MaxElementVolume: interface of "Max. Hexahedron or Tetrahedron Volume" hypothesis
229 interface StdMeshers_MaxElementVolume : SMESH::SMESH_Hypothesis
232 * Sets <maximum element volume> parameter value
234 void SetMaxElementVolume(in double volume)
235 raises (SALOME::SALOME_Exception);
238 * Returns <maximum element volume> parameter value
240 double GetMaxElementVolume();
244 * StdMeshers_NotConformAllowed: interface of "Not Conform Mesh Allowed" hypothesis.
245 * Presence of this hypothesis permits to algorithm generation of not conform mesh.
247 interface StdMeshers_NotConformAllowed : SMESH::SMESH_Hypothesis
252 * StdMeshers_Propagation: interface of "Propagation" hypothesis.
253 * Presence of this hypothesis on any edge propagates any other 1D
254 * hypothesis from this edge on all edges, opposite to it.
255 * It concerns only edges of quadrangle faces.
257 interface StdMeshers_Propagation : SMESH::SMESH_Hypothesis
262 * StdMeshers_Regular_1D: interface of "Wire discretisation" algorithm
264 interface StdMeshers_Regular_1D : SMESH::SMESH_1D_Algo
269 * StdMeshers_MEFISTO_2D: interface of "Triangle (Mefisto)" algorithm
271 interface StdMeshers_MEFISTO_2D : SMESH::SMESH_2D_Algo
276 * StdMeshers_Quadrangle_2D: interface of "Quadrangle (Mapping)" algorithm
278 interface StdMeshers_Quadrangle_2D : SMESH::SMESH_2D_Algo
283 * StdMeshers_Hexa_3D: interface of "Hexahedron (i,j,k)" algorithm
285 interface StdMeshers_Hexa_3D : SMESH::SMESH_3D_Algo