Salome HOME
Copyright update 2022
[plugins/hexoticplugin.git] / src / HexoticPlugin / HexoticPlugin_Hypothesis_i.hxx
index a6377be63d46a5b4547a297a3a4126e1474f1dbf..257fecb649a5e054463f4f5655b37789242ae0d8 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2022  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
@@ -42,8 +42,7 @@ class HEXOTICPLUGIN_EXPORT HexoticPlugin_Hypothesis_i:
  public:
   // Constructor
   HexoticPlugin_Hypothesis_i (PortableServer::POA_ptr thePOA,
-                             int                     theStudyId,
-                             ::SMESH_Gen*            theGenImpl);
+                              ::SMESH_Gen*            theGenImpl);
   // Destructor
   virtual ~HexoticPlugin_Hypothesis_i();
 
@@ -54,29 +53,105 @@ class HEXOTICPLUGIN_EXPORT HexoticPlugin_Hypothesis_i:
   void SetHexesMaxLevel(CORBA::Long theVal);
   CORBA::Long GetHexesMaxLevel();
 
-  void SetHexoticQuadrangles(CORBA::Boolean theVal);
-  CORBA::Boolean GetHexoticQuadrangles();
+  void SetMinSize(CORBA::Double theVal);
+  CORBA::Double GetMinSize();
+
+  void SetMaxSize(CORBA::Double theVal);
+  CORBA::Double GetMaxSize();
+
+  void SetGeomApproxAngle(CORBA::Double angle);
+  CORBA::Double GetGeomApproxAngle();
 
   void SetHexoticIgnoreRidges(CORBA::Boolean theVal);
   CORBA::Boolean GetHexoticIgnoreRidges();
-  
+
   void SetHexoticInvalidElements(CORBA::Boolean theVal);
   CORBA::Boolean GetHexoticInvalidElements();
-  
-  void SetHexoticSharpAngleThreshold(CORBA::Long theVal);
-  CORBA::Long GetHexoticSharpAngleThreshold();
-  
+
+  void SetHexoticSharpAngleThreshold(CORBA::Double theVal);
+  CORBA::Double GetHexoticSharpAngleThreshold();
+
   void SetHexoticNbProc(CORBA::Long theVal);
   CORBA::Long GetHexoticNbProc();
-  
-  void SetHexoticWorkingDirectory(const char* path) throw ( SALOME::SALOME_Exception );
+
+  void SetHexoticWorkingDirectory(const char* path);
   char* GetHexoticWorkingDirectory();
 
+  void SetKeepFiles(::CORBA::Boolean toKeep);
+  ::CORBA::Boolean GetKeepFiles();
+
+  void SetStandardOutputLog(::CORBA::Boolean logInStandardOutput);
+  ::CORBA::Boolean GetStandardOutputLog();
+
+  void SetRemoveLogOnSuccess(::CORBA::Boolean removeLogOnSuccess);
+  ::CORBA::Boolean GetRemoveLogOnSuccess();
+
+  void SetHexoticSdMode(CORBA::Long value);
+  CORBA::Long GetHexoticSdMode();
+
+  void SetHexoticVerbosity(CORBA::Long theVal);
+  CORBA::Long GetHexoticVerbosity();
+
+  void SetHexoticMaxMemory(CORBA::Long theVal);
+  CORBA::Long GetHexoticMaxMemory();
+
+  void SetAdvancedOption(const char* theOptions);
+  char* GetAdvancedOption();
+  void SetTextOptions(const char* theOptions); // obsolete
+  char* GetTextOptions();
+
+  void SetOptionValue(const char* optionName, const char* optionValue);
+  char* GetOptionValue(const char* optionName);
+  void UnsetOption(const char* optionName);
+
+  HexoticPlugin::string_array* GetOptionValues();
+  HexoticPlugin::string_array* GetAdvancedOptionValues();
+
+  void SetOptionValues(const HexoticPlugin::string_array& options);
+  void SetAdvancedOptionValues(const HexoticPlugin::string_array& options);
+
+  void AddOption(const char* optionName, const char* optionValue);
+  char* GetOption(const char* optionName);
+  void SetSizeMapEntry(const char* theEntry, CORBA::Double theSize);
+  void UnsetSizeMapEntry(const char* theEntry);
+
+  void SetSizeMap(GEOM::GEOM_Object_ptr theGeomObj, double theSize);
+  void UnsetSizeMap(GEOM::GEOM_Object_ptr theGeomObj);
+  HexoticPlugin::HexoticPluginSizeMapsList* GetSizeMaps ();
+
+  void SetNbLayers(CORBA::Long theVal);
+  CORBA::Long GetNbLayers();
+
+  void SetFirstLayerSize(CORBA::Double theVal);
+  CORBA::Double GetFirstLayerSize();
+
+  void SetDirection(CORBA::Boolean theVal);
+  CORBA::Boolean GetDirection();
+
+  void SetGrowth(CORBA::Double theVal);
+  CORBA::Double GetGrowth();
+
+  void SetFacesWithLayers(const SMESH::long_array& theVal);
+  SMESH::long_array* GetFacesWithLayers();
+
+  void SetImprintedFaces(const SMESH::long_array& theVal);
+  SMESH::long_array* GetImprintedFaces();
+
   // Get implementation
   ::HexoticPlugin_Hypothesis* GetImpl();
   
   // Verify whether hypothesis supports given entity type 
   CORBA::Boolean IsDimSupported( SMESH::Dimension type );
+
+  // Methods for copying mesh definition to other geometry
+
+  // Return geometry this hypothesis depends on. Return false if there is no geometry parameter
+  virtual bool getObjectsDependOn( std::vector< std::string > & entryArray,
+                                   std::vector< int >         & subIDArray ) const;
+
+  // Set new geometry instead of that returned by getObjectsDependOn()
+  virtual bool setObjectsDependOn( std::vector< std::string > & entryArray,
+                                   std::vector< int >         & subIDArray );
 };
 
 #endif