Salome HOME
Copyright update 2022
[plugins/hexoticplugin.git] / src / HexoticPlugin / HexoticPlugin_Hypothesis_i.hxx
index 8f6c8184f98efb4836c9760f4e76df0ff2bebd7f..257fecb649a5e054463f4f5655b37789242ae0d8 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2016  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
@@ -59,21 +59,33 @@ class HEXOTICPLUGIN_EXPORT HexoticPlugin_Hypothesis_i:
   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::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();
 
@@ -82,15 +94,27 @@ class HEXOTICPLUGIN_EXPORT HexoticPlugin_Hypothesis_i:
 
   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 ();
@@ -118,6 +142,16 @@ class HEXOTICPLUGIN_EXPORT HexoticPlugin_Hypothesis_i:
   
   // 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