X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGMSHPlugin%2FGMSHPlugin_Hypothesis_i.cxx;h=036fdc9489d97861881651f7311189eba318ca3f;hb=97152dd9e2e996ae17f86373151606e357883695;hp=89b32d3e281cbed4ab9715d7d740950906943fc0;hpb=8c81a0756fe427c559ef4207c6d339a97e5e2cb7;p=plugins%2Fgmshplugin.git diff --git a/src/GMSHPlugin/GMSHPlugin_Hypothesis_i.cxx b/src/GMSHPlugin/GMSHPlugin_Hypothesis_i.cxx index 89b32d3..036fdc9 100644 --- a/src/GMSHPlugin/GMSHPlugin_Hypothesis_i.cxx +++ b/src/GMSHPlugin/GMSHPlugin_Hypothesis_i.cxx @@ -1,5 +1,5 @@ // Copyright (C) 2012-2015 ALNEOS -// Copyright (C) 2016-2020 EDF R&D +// Copyright (C) 2016-2023 EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -67,6 +67,22 @@ CORBA::Double GMSHPlugin_Hypothesis_i::GetMaxSize() return this->GetImpl()->GetMaxSize(); } + +void GMSHPlugin_Hypothesis_i::SetMeshCurvatureSize (CORBA::Double theMeshCurvatureSize) +{ + if ( isToSetParameter( GetMeshCurvatureSize(), theMeshCurvatureSize, METH_SetMeshCurvatureSize )) + { + this->GetImpl()->SetMeshCurvatureSize(theMeshCurvatureSize); + SMESH::TPythonDump() << _this() << ".SetMeshCurvatureSize( " << SMESH::TVar(theMeshCurvatureSize) << " )"; + } +} + +CORBA::Double GMSHPlugin_Hypothesis_i::GetMeshCurvatureSize() +{ + return this->GetImpl()->GetMeshCurvatureSize(); +} + + void GMSHPlugin_Hypothesis_i::SetMinSize (CORBA::Double theValue) { if ( isToSetParameter( GetMinSize(), theValue, METH_SetMinSize )) @@ -319,6 +335,7 @@ int GMSHPlugin_Hypothesis_i::getParamIndex(const TCollection_AsciiString& method if ( method == "SetNbSegPerEdge" ) return 2; if ( method == "SetNbSegPerRadius" ) return 3; if ( method == "SetMinSize" ) return nbVars-1; + if ( method == "SetMeshCurvatureSize" ) return 5; return SMESH_Hypothesis_i::getParamIndex( method, nbVars ); // return default value } @@ -340,6 +357,7 @@ std::string GMSHPlugin_Hypothesis_i::getMethodOfParameter(const int paramIndex, case 2: return "SetNbSegPerEdge"; case 3: return "SetNbSegPerRadius"; case 4: return "SetMinSize"; + case 5: return "SetMeshCurvatureSize"; } return ""; } @@ -352,7 +370,7 @@ std::string GMSHPlugin_Hypothesis_i::getMethodOfParameter(const int paramIndex, bool GMSHPlugin_Hypothesis_i::getObjectsDependOn( std::vector< std::string > & entryArray, - std::vector< int > & subIDArray ) const + std::vector< int > & /*subIDArray*/ ) const { typedef ::GMSHPlugin_Hypothesis THyp; const THyp* impl = static_cast( myBaseImpl ); @@ -371,7 +389,7 @@ GMSHPlugin_Hypothesis_i::getObjectsDependOn( std::vector< std::string > & entryA bool GMSHPlugin_Hypothesis_i::setObjectsDependOn( std::vector< std::string > & entryArray, - std::vector< int > & subIDArray ) + std::vector< int > & /*subIDArray*/ ) { typedef ::GMSHPlugin_Hypothesis THyp; THyp* impl = static_cast< THyp* >( myBaseImpl );