1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // File : BLSURFPlugin_Algorithm.idl
21 // Authors : Francis KLOSS (OCC) & Patrick LAUG (INRIA) & Lioka RAZAFINDRAZAKA (CEA)
24 #ifndef _SMESH_BLSURFALGORITHM_IDL_
25 #define _SMESH_BLSURFALGORITHM_IDL_
27 #include "SMESH_Hypothesis.idl"
28 #include "SALOME_Exception.idl"
31 * BLSURFPlugin: interfaces to BLSURF related hypotheses and algorithms
35 typedef sequence<string> string_array;
38 * BLSURFPlugin_BLSURF: interface of BLSURF algorithm
40 interface BLSURFPlugin_BLSURF : SMESH::SMESH_2D_Algo
45 * BLSURFPlugin_Hypothesis: interface of "BLSURF parameters" hypothesis
47 interface BLSURFPlugin_Hypothesis : SMESH::SMESH_Hypothesis
50 * Sets topology usage way defining how mesh conformity is assured
51 * value=0 - mesh conformity is assured by conformity of a shape
52 * value=1,2 - mesh conformity is assured by pre-processing a CAD model
54 void SetTopology(in long way);
58 * Sets a way to define size of mesh elements to generate
59 * 0 - size is defined automatically
60 * 1 - size is set by SetPhySize() method
62 void SetPhysicalMesh(in long isCustom);
63 long GetPhysicalMesh();
66 * Sets size of mesh elements to generate
68 void SetPhySize(in double size);
72 * Sets lower boundary of mesh element size (PhySize)
74 void SetPhyMin(in double theMinSize);
78 * Sets upper boundary of mesh element size (PhySize)
80 void SetPhyMax(in double theMaxSize);
84 * Sets a way to define maximum angular deflection of mesh from CAD model
85 * 0 - deflection is defined automatically
86 * 1 - deflection is set by SetAngleMeshS() and SetAngleMeshC() methods
88 void SetGeometricMesh(in long isCustom);
89 long GetGeometricMesh();
92 * Sets angular deflection (in degrees) of a mesh face from CAD surface
94 void SetAngleMeshS(in double angle);
95 double GetAngleMeshS();
98 * Sets angular deflection (in degrees) of a mesh edge from CAD curve
100 void SetAngleMeshC(in double angle);
101 double GetAngleMeshC();
104 * Sets lower boundary of mesh element size computed to respect angular deflection
106 void SetGeoMin(in double theMinSize);
110 * Sets upper boundary of mesh element size computed to respect angular deflection
112 void SetGeoMax(in double theMaxSize);
116 * Sets maximal allowed ratio between the lengths of two adjacent edges
118 void SetGradation(in double ratio);
119 double GetGradation();
122 * Sets to create quadrilateral elements or not
124 void SetQuadAllowed(in boolean allowed);
125 boolean GetQuadAllowed();
128 * To respect geometrical edges or not
130 void SetDecimesh(in boolean toIgnoreEdges);
131 boolean GetDecimesh();
134 * Sets verbosity level in the range 0 to 100.
136 void SetVerbosity(in short theVal) raises (SALOME::SALOME_Exception);
137 short GetVerbosity();
140 * Sets advanced option value
142 void SetOptionValue(in string optionName,
143 in string optionValue) raises (SALOME::SALOME_Exception);
144 string GetOptionValue(in string optionName) raises (SALOME::SALOME_Exception);
146 * Unsets advanced option
148 void UnsetOption(in string optionName);
151 * Return array of strings each of which is option name concatenated
152 * with option value devided by semicolon - "option_name:option_value".
153 * Option value is empty if an option is not set.
154 * Note: the method is mostly for interaction with GUI.
156 string_array GetOptionValues();
159 * Set option values each in the form "option_name[:option_value]".
160 * Note: the method is mostly for interaction with GUI.
162 void SetOptionValues(in string_array options);