X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHexoticPlugin%2FHexoticPlugin_Hypothesis_i.hxx;h=37b75e52a76dd32530c9e9080b2e16f83bcacbbd;hb=630658fb93f8a4e33fe530dd624b3f1d0b205e31;hp=8f6c8184f98efb4836c9760f4e76df0ff2bebd7f;hpb=1712d74dc4aec3b7c6c74cf899b28ca44e5ae879;p=plugins%2Fhexoticplugin.git diff --git a/src/HexoticPlugin/HexoticPlugin_Hypothesis_i.hxx b/src/HexoticPlugin/HexoticPlugin_Hypothesis_i.hxx index 8f6c818..37b75e5 100644 --- a/src/HexoticPlugin/HexoticPlugin_Hypothesis_i.hxx +++ b/src/HexoticPlugin/HexoticPlugin_Hypothesis_i.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 CEA/DEN, EDF R&D +// Copyright (C) 2007-2020 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 ); 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); + + void SetAdvancedOption(const char* theOptions) throw (SALOME::SALOME_Exception); char* GetAdvancedOption(); void SetTextOptions(const char* theOptions); // obsolete char* GetTextOptions(); + void SetOptionValue(const char* optionName, const char* optionValue) throw (SALOME::SALOME_Exception); + char* GetOptionValue(const char* optionName) throw (SALOME::SALOME_Exception); + void UnsetOption(const char* optionName); + + HexoticPlugin::string_array* GetOptionValues(); + HexoticPlugin::string_array* GetAdvancedOptionValues(); + + void SetOptionValues(const HexoticPlugin::string_array& options) throw (SALOME::SALOME_Exception); + 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