Salome HOME
Decrease the gradation limit to 1 to be able to have finer meshes
[plugins/blsurfplugin.git] / idl / BLSURFPlugin_Algorithm.idl
index 79b150dd0370246090b34c938dcc17f2fec868b3..e865c2fd5cd0b58b0ec4b5f1aeb9ef09d0b77028 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2007-2013  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2016  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -277,6 +277,18 @@ module BLSURFPlugin
     void SetPreCADMergeEdges(in boolean toMergeEdges);
     boolean GetPreCADMergeEdges();
 
+    /*!
+     * To remove tiny UV edges edges.
+     */
+    void SetPreCADRemoveTinyUVEdges(in boolean toRemoveTinyUVEdges);
+    boolean GetPreCADRemoveTinyUVEdges();
+
+    /*!
+     * To remove duplicate CAD faces.
+     */
+    void SetPreCADRemoveDuplicateCADFaces(in boolean toRemoveDuplicateCADFaces);
+    boolean GetPreCADRemoveDuplicateCADFaces();
+
     /*!
      * To process 3D topology.
      */
@@ -305,9 +317,17 @@ module BLSURFPlugin
     void UnsetOption(in string optionName);
     void UnsetPreCADOption(in string optionName);
 
+    /*!
+     * Adds custom advanced option and its value
+     */
+    void AddOption(in string optionName, in string optionValue);
+    void AddPreCADOption(in string optionName, in string optionValue);
+    string GetOption(in string optionName);
+    string GetPreCADOption(in string optionName);
+
     /*!
      * Return array of strings each of which is option name concatenated
-     * with option value devided by semicolon - "option_name:option_value".
+     * with option value devided by semicolon - "option_name:option_value:option_type".
      * Option value is empty if an option is not set.
      * Note: the method is mostly for interaction with GUI.
      */
@@ -315,16 +335,16 @@ module BLSURFPlugin
     string_array GetPreCADOptionValues();
 
     /*!
-     * Set option values each in the form "option_name[:option_value]".
+     * Set option values each in the form "option_name[:option_value][:option_type]".
      * Note: the method is mostly for interaction with GUI.
      */
-    void SetOptionValues(in string_array options);
-    void SetPreCADOptionValues(in string_array options);
+    void SetOptionValues(in string_array options) raises (SALOME::SALOME_Exception);
+    void SetPreCADOptionValues(in string_array options) raises (SALOME::SALOME_Exception);
 
     /*!
      * SizeMap
      */
-    void SetSizeMapEntries(in string_array sizeMaps);
+    void SetSizeMapEntries(in string_array sizeMaps) raises (SALOME::SALOME_Exception);
     void ClearSizeMaps();
 
     void UnsetEntry(in string entry);
@@ -332,16 +352,16 @@ module BLSURFPlugin
     /*!
      * Set/unset a SizeMap on geom object
      */
-    void         SetSizeMap(in GEOM::GEOM_Object GeomObj, in string sizeMap);
+    void         SetSizeMap(in GEOM::GEOM_Object GeomObj, in string sizeMap) raises (SALOME::SALOME_Exception);
     void         SetConstantSizeMap(in GEOM::GEOM_Object GeomObj, in double sizeMap);
     void         UnsetSizeMap(in GEOM::GEOM_Object GeomObj);
     
     /*!
      * Set a SizeMap on geom object given by entry
      */
-    void         SetSizeMapEntry(in string entry, in string sizeMap);
-    void         SetConstantSizeMapEntry(in string entry, in GEOM::shape_type shapeType, in double sizeMap);
-    string       GetSizeMapEntry(in string entry);
+    void         SetSizeMapEntry(in string entry, in string sizeMap) raises (SALOME::SALOME_Exception);
+    void         SetConstantSizeMapEntry(in string entry, in GEOM::shape_type shapeType, in double sizeMap) raises (SALOME::SALOME_Exception);
+    string       GetSizeMapEntry(in string entry) raises (SALOME::SALOME_Exception);
     string_array GetSizeMapEntries();
 
     /*!
@@ -353,20 +373,21 @@ module BLSURFPlugin
     /*!
      * Set an attractor on geom object given by entry
      */
-    void         SetAttractorEntry(in string entry, in string attractor);
-    string       GetAttractorEntry(in string entry);
+    void         SetAttractorEntry(in string entry, in string attractor) raises (SALOME::SALOME_Exception);
+    string       GetAttractorEntry(in string entry) raises (SALOME::SALOME_Exception);
     string_array GetAttractorEntries();
 
     /*!
      * Set/unset an attractor given as geom object on another geom object
      */
     void         SetAttractorGeom(in GEOM::GEOM_Object GeomObj, in GEOM::GEOM_Object AttractorShape, in double StartSize, in double EndSize, in double ActionRadius, in double ConstantRadius);
-    void         UnsetAttractorGeom(in GEOM::GEOM_Object GeomObj);
+    void         UnsetAttractorGeom(in GEOM::GEOM_Object GeomObj, in GEOM::GEOM_Object AttractorShape);
+    void         UnsetAttractorEntry(in string entry, in string attractor);
 
     /*!
      * Set an attractor given by entry on a geom object given by entry
      */
-    void         SetClassAttractorEntry(in string entry, in string att_entry, in double StartSize, in double EndSize, in double ActionRadius, in double ConstantRadius );
+    void         SetClassAttractorEntry(in string entry, in string att_entry, in double StartSize, in double EndSize, in double ActionRadius, in double ConstantRadius ) raises (SALOME::SALOME_Exception);
     BLSURFPlugin::TAttParamsMap GetAttractorParams();
 
 /*
@@ -448,10 +469,6 @@ module BLSURFPlugin
     void AddPreCadEdgesPeriodicity(in GEOM::GEOM_Object theEdge1, in GEOM::GEOM_Object theEdge2) raises (SALOME::SALOME_Exception);
     void AddPreCadEdgesPeriodicityWithVertices(in GEOM::GEOM_Object theEdge1, in GEOM::GEOM_Object theEdge2, in GEOM::ListOfGO theSourceVertices, in GEOM::ListOfGO theTargetVertices) raises (SALOME::SALOME_Exception);
     void AddPreCadEdgesPeriodicityEntry(in TEntry theEdge1, in TEntry theEdge2, in TEntryList theSourceVertices, in TEntryList theTargetVertices)  raises (SALOME::SALOME_Exception);
-    void AddFacePeriodicity(in GEOM::GEOM_Object theFace1, in GEOM::GEOM_Object theFace2) raises (SALOME::SALOME_Exception);
-    void AddEdgePeriodicity(in GEOM::GEOM_Object theFace1, in GEOM::GEOM_Object theEdge1, in GEOM::GEOM_Object theFace2, in GEOM::GEOM_Object theEdge2, in long edge_orientation) raises (SALOME::SALOME_Exception);
-    void AddEdgePeriodicityWithoutFaces(in GEOM::GEOM_Object theEdge1, in GEOM::GEOM_Object theEdge2, in long edge_orientation) raises (SALOME::SALOME_Exception);
-    void AddVertexPeriodicity(in GEOM::GEOM_Object theEdge1, in GEOM::GEOM_Object theVertex1, in GEOM::GEOM_Object theEdge2, in GEOM::GEOM_Object theVertex2) raises (SALOME::SALOME_Exception);
     TPeriodicityList GetPreCadFacesPeriodicityVector();
     TPeriodicityList GetPreCadEdgesPeriodicityVector();
     ///////////////////////