Version: 8.3.0
SMESH_BasicHypothesis.idl
Go to the documentation of this file.
1 // Copyright (C) 2007-2016 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 // File : SMESH_BasicHypothesis.idl
24 // Author : Paul RASCLE, EDF
25 //
26 #ifndef _SMESH_BASICHYPOTHESIS_IDL_
27 #define _SMESH_BASICHYPOTHESIS_IDL_
28 
29 #include "SALOME_Exception.idl"
30 #include "SMESH_Hypothesis.idl"
31 #include "SMESH_Mesh.idl"
32 
36 module StdMeshers
37 {
42  {
46  void SetLength(in double length)
47  raises (SALOME::SALOME_Exception);
48 
61  void SetPrecision(in double precision)
62  raises (SALOME::SALOME_Exception);
63 
67  double GetLength();
68 
72  double GetPrecision();
73  };
74 
79  {
83  void SetLength(in double length)
84  raises (SALOME::SALOME_Exception);
88  double GetLength();
92  boolean HavePreestimatedLength();
96  double GetPreestimatedLength();
100  void SetPreestimatedLength(in double length);
105  void SetUsePreestimatedLength(in boolean toUse);
110  boolean GetUsePreestimatedLength();
111  };
112 
117  {
121  void SetFineness(in double theFineness)
122  raises (SALOME::SALOME_Exception);
123 
127  double GetFineness();
128  };
129 
133  interface Reversible1D
134  {
138  void SetReversedEdges( in SMESH::long_array list );
139 
143  SMESH::long_array GetReversedEdges();
144 
148  void SetObjectEntry( in string entry );
149 
153  string GetObjectEntry();
154  };
155 
160  {
164  SMESH::double_array BuildDistributionExpr( in string func, in long nbSeg, in long conv )
165  raises (SALOME::SALOME_Exception);
166  SMESH::double_array BuildDistributionTab( in SMESH::double_array func, in long nbSeg, in long conv )
167  raises (SALOME::SALOME_Exception);
168 
172  void SetNumberOfSegments(in long segmentsNumber)
173  raises (SALOME::SALOME_Exception);
174 
178  long GetNumberOfSegments();
179 
183  void SetDistrType(in long typ)
184  raises (SALOME::SALOME_Exception);
185 
189  long GetDistrType();
190 
194  void SetScaleFactor(in double scaleFactor)
195  raises (SALOME::SALOME_Exception);
196 
200  double GetScaleFactor()
201  raises (SALOME::SALOME_Exception);
202 
207  raises (SALOME::SALOME_Exception);
208 
213  raises (SALOME::SALOME_Exception);
214 
218  void SetExpressionFunction(in string expr)
219  raises (SALOME::SALOME_Exception);
220 
224  string GetExpressionFunction()
225  raises (SALOME::SALOME_Exception);
226 
230  void SetConversionMode(in long conv )
231  raises (SALOME::SALOME_Exception);
232 
236  long ConversionMode()
237  raises (SALOME::SALOME_Exception);
238  };
239 
244  {
250  void SetLength(in double length, in boolean isStartLength)
251  raises (SALOME::SALOME_Exception);
252 
256  void SetStartLength(in double length)
257  raises (SALOME::SALOME_Exception);
258 
262  void SetEndLength(in double length)
263  raises (SALOME::SALOME_Exception);
264 
268  double GetLength(in boolean isStartLength);
269 
270  };
271 
276  {
280  void SetStartLength(in double length)
281  raises (SALOME::SALOME_Exception);
282 
286  void SetCommonRatio(in double factor)
287  raises (SALOME::SALOME_Exception);
288 
292  double GetStartLength();
293 
297  double GetCommonRatio();
298 
299  };
300 
305  {
309  void SetMaxElementArea(in double area)
310  raises (SALOME::SALOME_Exception);
311 
315  double GetMaxElementArea();
316  };
317 
322  {
326  void SetMode(in long mode)
327  raises (SALOME::SALOME_Exception);
328 
332  long GetMode();
333  };
334 
339  {
345  void SetLength(in double length, in boolean isStartLength)
346  raises (SALOME::SALOME_Exception);
347 
351  void SetStartLength(in double length)
352  raises (SALOME::SALOME_Exception);
353 
357  void SetEndLength(in double length)
358  raises (SALOME::SALOME_Exception);
359 
363  double GetLength(in boolean isStartLength);
364 
365  };
366 
367 
372  {
376  void SetDeflection(in double deflection)
377  raises (SALOME::SALOME_Exception);
378 
382  double GetDeflection();
383  };
384 
389  {
396  void SetPoints(in SMESH::double_array listParams)
397  raises (SALOME::SALOME_Exception);
398  void SetNbSegments(in SMESH::long_array listNbSeg)
399  raises (SALOME::SALOME_Exception);
400 
405 
410 
411  };
412 
417  {
421  void SetMinSize(in double minSegLen) raises (SALOME::SALOME_Exception);
422  double GetMinSize();
423 
427  void SetMaxSize(in double maxSegLen) raises (SALOME::SALOME_Exception);
428  double GetMaxSize();
429 
434  void SetDeflection(in double deflection) raises (SALOME::SALOME_Exception);
435  double GetDeflection();
436  };
437 
442  {
446  void SetMaxElementVolume(in double volume)
447  raises (SALOME::SALOME_Exception);
448 
452  double GetMaxElementVolume();
453  };
454 
460  {
461  };
462 
471  {
472  };
473 
482  {
483  };
484 
493  {
494  };
495 
507  {
508  };
509 
510 
518  {
522  void SetNumberOfLayers(in long numberOfLayers)
523  raises (SALOME::SALOME_Exception);
524 
528  long GetNumberOfLayers();
529 
530  };
531 
539  {
543  void SetLayerDistribution(in SMESH::SMESH_Hypothesis distributionHyp)
544  raises (SALOME::SALOME_Exception);
545 
550 
551  };
552 
560  {
561  };
562 
570  {
571  };
572 
580  {
584  void SetSourceEdge(in GEOM::GEOM_Object edge)
585  raises (SALOME::SALOME_Exception);
586 
590  GEOM::GEOM_Object GetSourceEdge();
591 
595  void SetSourceMesh(in SMESH::SMESH_Mesh mesh);
596 
601 
606  void SetVertexAssociation(in GEOM::GEOM_Object sourceVertex,
607  in GEOM::GEOM_Object targetVertex)
608  raises (SALOME::SALOME_Exception);
609 
614  GEOM::GEOM_Object GetSourceVertex();
615 
620  GEOM::GEOM_Object GetTargetVertex();
621  };
622 
630  {
634  void SetSourceFace(in GEOM::GEOM_Object face)
635  raises (SALOME::SALOME_Exception);
636 
640  GEOM::GEOM_Object GetSourceFace();
641 
645  void SetSourceMesh(in SMESH::SMESH_Mesh mesh);
646 
651 
657  void SetVertexAssociation(in GEOM::GEOM_Object sourceVertex1,
658  in GEOM::GEOM_Object sourceVertex2,
659  in GEOM::GEOM_Object targetVertex1,
660  in GEOM::GEOM_Object targetVertex2)
661  raises (SALOME::SALOME_Exception);
662 
668  GEOM::GEOM_Object GetSourceVertex(in long i)
669  raises (SALOME::SALOME_Exception);
670 
676  GEOM::GEOM_Object GetTargetVertex(in long i)
677  raises (SALOME::SALOME_Exception);
678  };
679 
687  {
691  void SetSource3DShape(in GEOM::GEOM_Object shape)
692  raises (SALOME::SALOME_Exception);
693 
697  GEOM::GEOM_Object GetSource3DShape();
698 
702  void SetSourceMesh(in SMESH::SMESH_Mesh mesh);
703 
708 
714  void SetVertexAssociation(in GEOM::GEOM_Object sourceVertex1,
715  in GEOM::GEOM_Object sourceVertex2,
716  in GEOM::GEOM_Object targetVertex1,
717  in GEOM::GEOM_Object targetVertex2)
718  raises (SALOME::SALOME_Exception);
719 
725  GEOM::GEOM_Object GetSourceVertex(in long i)
726  raises (SALOME::SALOME_Exception);
727 
733  GEOM::GEOM_Object GetTargetVertex(in long i)
734  raises (SALOME::SALOME_Exception);
735  };
736 
743  {
747  void SetLength(in double length)
748  raises (SALOME::SALOME_Exception);
749 
753  double GetLength();
754  };
755 
759  enum QuadType
760  {
766  QUAD_NB_TYPES /* this is not a type of quadrangulation */
767  };
768 
770  {
774  void SetTriaVertex( in long vertID );
775 
779  long GetTriaVertex();
780 
784  void SetObjectEntry( in string entry );
785 
789  string GetObjectEntry();
790 
794  void SetQuadType( in QuadType type );
795 
800 
804  void SetEnforcedNodes(in GEOM::ListOfGO vertices, in SMESH::nodes_array points)
805  raises (SALOME::SALOME_Exception);
806 
810  void GetEnforcedNodes(out GEOM::ListOfGO vertices, out SMESH::nodes_array points);
811 
815  SMESH::string_array GetEnfVertices();
816  };
817 
824  {
828  void SetSourceEdges(in SMESH::ListOfGroups groups);
829  SMESH::string_array GetSourceEdges();
830 
835  void SetCopySourceMesh(in boolean toCopyMesh, in boolean toCopyGroups);
836  void GetCopySourceMesh(out boolean toCopyMesh,out boolean toCopyGroups);
837  };
838 
845  {
849  void SetSourceFaces(in SMESH::ListOfGroups groups);
850  SMESH::string_array GetSourceFaces();
851 
856  void SetCopySourceMesh(in boolean toCopyMesh,in boolean toCopyGroups);
857  void GetCopySourceMesh(out boolean toCopyMesh,out boolean toCopyGroups);
858  };
859 
864  // node is translated along normal to a surface with possible further smoothing
866  // node is translated along the average normal of surrounding faces till
867  // intersection with a neighbor face translated along its own normal
868  // by the layers thickness
870  // node is translated along the average normal of surrounding faces
871  // by the layers thickness
873  };
874 
882  {
886  void SetIgnoreFaces(in SMESH::long_array faceIDs) raises (SALOME::SALOME_Exception);
887  SMESH::long_array GetIgnoreFaces();
888 
892  void SetFaces(in SMESH::long_array faceIDs,
893  in boolean toIgnore) raises (SALOME::SALOME_Exception);
894  SMESH::long_array GetFaces();
895  boolean GetIsToIgnoreFaces();
896 
900  void SetTotalThickness(in double thickness) raises (SALOME::SALOME_Exception);
901  double GetTotalThickness();
902 
906  void SetNumberLayers(in short nb) raises (SALOME::SALOME_Exception);
907  short GetNumberLayers();
908 
912  void SetStretchFactor(in double factor) raises (SALOME::SALOME_Exception);
913  double GetStretchFactor();
914 
915  void SetMethod( in VLExtrusionMethod how );
917  };
918 
926  {
930  void SetIgnoreEdges(in SMESH::long_array edgeIDs) raises (SALOME::SALOME_Exception);
931  SMESH::long_array GetIgnoreEdges();
932 
936  void SetEdges(in SMESH::long_array edgeIDs,
937  in boolean toIgnore) raises (SALOME::SALOME_Exception);
938  SMESH::long_array GetEdges();
939  boolean GetIsToIgnoreEdges();
940 
944  void SetTotalThickness(in double thickness) raises (SALOME::SALOME_Exception);
945  double GetTotalThickness();
946 
950  void SetNumberLayers(in short nb) raises (SALOME::SALOME_Exception);
951  short GetNumberLayers();
952 
956  void SetStretchFactor(in double factor) raises (SALOME::SALOME_Exception);
957  double GetStretchFactor();
958  };
959 
968  {
975  void SetSizeThreshold(in double threshold) raises (SALOME::SALOME_Exception);
976  double GetSizeThreshold();
977 
982  boolean IsGridBySpacing(in short axis);
983 
987  void SetGrid(in SMESH::double_array coords,
988  in short axis) raises (SALOME::SALOME_Exception);
989  SMESH::double_array GetGrid(in short axis) raises (SALOME::SALOME_Exception);
990 
1000  void SetGridSpacing(in SMESH::string_array spaceFunctions,
1001  in SMESH::double_array internalPoints,
1002  in short axis) raises (SALOME::SALOME_Exception);
1003 
1004  void GetGridSpacing(out SMESH::string_array spaceFunctions,
1005  out SMESH::double_array internalPoints,
1006  in short axis) raises (SALOME::SALOME_Exception);
1010  void SetAxesDirs(in SMESH::DirStruct x,
1011  in SMESH::DirStruct y,
1012  in SMESH::DirStruct z ) raises (SALOME::SALOME_Exception);
1013  void GetAxesDirs(out SMESH::DirStruct x,
1014  out SMESH::DirStruct y,
1015  out SMESH::DirStruct z );
1020  void SetFixedPoint(in SMESH::PointStruct p, in boolean toUnset);
1021  boolean GetFixedPoint(out SMESH::PointStruct p);
1022 
1028  void SetToAddEdges(in boolean toAdd);
1029  boolean GetToAddEdges();
1030 
1034  void ComputeOptimalAxesDirs(in GEOM::GEOM_Object shape,
1035  in boolean isOrthogonal,
1036  out SMESH::DirStruct x,
1037  out SMESH::DirStruct y,
1038  out SMESH::DirStruct z )
1039  raises (SALOME::SALOME_Exception);
1040 
1051  in double x1,
1052  in SMESH::string_array spaceFuns,
1053  in SMESH::double_array points,
1054  in string axisName )
1055  raises (SALOME::SALOME_Exception);
1056  };
1057 
1062  {
1063  };
1064 
1069  {
1070  };
1071 
1076  {
1077  };
1078 
1083  {
1084  };
1085 
1090  {
1091  };
1092 
1097  {
1098  };
1099 
1104  {
1105  };
1106 
1111  {
1112  };
1113 
1118  {
1119  };
1120 
1125  {
1126  };
1127 
1132  {
1133  };
1134 
1139  {
1140  };
1141 
1146  {
1147  };
1148 
1153  {
1154  };
1155 
1161  {
1162  };
1163 
1169  {
1170  };
1171 
1176  {
1177  };
1178 
1183  {
1184  };
1189  {
1190  };
1195  {
1196  };
1197 
1198 };
1199 
1200 #endif