X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGHS3DPRLPlugin%2FGHS3DPRLPlugin_Hypothesis_i.cxx;h=1c8e1477017872106ef3f5a8e2190a942ffc6797;hb=a82f8d3403d5c3138e21d045861fb130fd7d420b;hp=816d7e04d9790f08906f21beed606e4300244a99;hpb=1814d40be49c9ffb83307e81bb32e472d893d3c5;p=plugins%2Fghs3dprlplugin.git diff --git a/src/GHS3DPRLPlugin/GHS3DPRLPlugin_Hypothesis_i.cxx b/src/GHS3DPRLPlugin/GHS3DPRLPlugin_Hypothesis_i.cxx old mode 100755 new mode 100644 index 816d7e0..1c8e147 --- a/src/GHS3DPRLPlugin/GHS3DPRLPlugin_Hypothesis_i.cxx +++ b/src/GHS3DPRLPlugin/GHS3DPRLPlugin_Hypothesis_i.cxx @@ -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 @@ -38,14 +38,12 @@ //============================================================================= GHS3DPRLPlugin_Hypothesis_i:: GHS3DPRLPlugin_Hypothesis_i (PortableServer::POA_ptr thePOA, - int theStudyId, ::SMESH_Gen* theGenImpl) : SALOME::GenericObj_i( thePOA ), SMESH_Hypothesis_i( thePOA ) { MESSAGE( "GHS3DPRLPlugin_Hypothesis_i::GHS3DPRLPlugin_Hypothesis_i" ); myBaseImpl = new ::GHS3DPRLPlugin_Hypothesis (theGenImpl->GetANewId(), - theStudyId, theGenImpl); } @@ -67,10 +65,10 @@ GHS3DPRLPlugin_Hypothesis_i::~GHS3DPRLPlugin_Hypothesis_i() * GHS3DPRLPlugin_Hypothesis_i::SetNbPart * GHS3DPRLPlugin_Hypothesis_i::SetKeepFiles * GHS3DPRLPlugin_Hypothesis_i::SetBackground - * GHS3DPRLPlugin_Hypothesis_i::SetToMergeSubdomains - * GHS3DPRLPlugin_Hypothesis_i::SetToTagSubdomains - * GHS3DPRLPlugin_Hypothesis_i::SetToOutputInterfaces - * GHS3DPRLPlugin_Hypothesis_i::SetToDiscardSubdomains + * GHS3DPRLPlugin_Hypothesis_i::SetMultithread + * GHS3DPRLPlugin_Hypothesis_i::SetGradation + * GHS3DPRLPlugin_Hypothesis_i::SetMinSize + * GHS3DPRLPlugin_Hypothesis_i::SetMaxSize */ //============================================================================= @@ -106,48 +104,60 @@ void GHS3DPRLPlugin_Hypothesis_i::SetBackground (CORBA::Boolean theValue) SMESH::TPythonDump() << _this() << ".SetBackground( " << theValue << " )"; } -void GHS3DPRLPlugin_Hypothesis_i::SetToMergeSubdomains (CORBA::Boolean theValue) +void GHS3DPRLPlugin_Hypothesis_i::SetMultithread (CORBA::Boolean theValue) { - MESSAGE("GHS3DPRLPlugin_Hypothesis_i::SetToMergeSubdomains"); + MESSAGE("GHS3DPRLPlugin_Hypothesis_i::SetMultithread"); ASSERT(myBaseImpl); - this->GetImpl()->SetToMergeSubdomains(theValue); - SMESH::TPythonDump() << _this() << ".SetToMergeSubdomains( " << theValue << " )"; + this->GetImpl()->SetMultithread(theValue); + SMESH::TPythonDump() << _this() << ".SetMultithread( " << theValue << " )"; } -void GHS3DPRLPlugin_Hypothesis_i::SetToTagSubdomains (CORBA::Boolean theValue) +//void GHS3DPRLPlugin_Hypothesis_i::SetToMergeSubdomains (CORBA::Boolean theValue) +//{ +// MESSAGE("GHS3DPRLPlugin_Hypothesis_i::SetToMergeSubdomains"); +// ASSERT(myBaseImpl); +// this->GetImpl()->SetToMergeSubdomains(theValue); +// SMESH::TPythonDump() << _this() << ".SetToMergeSubdomains( " << theValue << " )"; +//} + +void GHS3DPRLPlugin_Hypothesis_i::SetGradation (CORBA::Float theValue) { - MESSAGE("GHS3DPRLPlugin_Hypothesis_i::SetToTagSubdomains"); + MESSAGE("GHS3DPRLPlugin_Hypothesis_i::SetGradation"); ASSERT(myBaseImpl); - this->GetImpl()->SetToTagSubdomains(theValue); - SMESH::TPythonDump() << _this() << ".SetToTagSubdomains( " << theValue << " )"; + this->GetImpl()->SetGradation(theValue); + SMESH::TPythonDump() << _this() << ".SetGradation( " << theValue << " )"; } -void GHS3DPRLPlugin_Hypothesis_i::SetToOutputInterfaces (CORBA::Boolean theValue) +void GHS3DPRLPlugin_Hypothesis_i::SetMinSize (CORBA::Float theValue) { - MESSAGE("GHS3DPRLPlugin_Hypothesis_i::SetToOutputInterfaces"); + MESSAGE("GHS3DPRLPlugin_Hypothesis_i::SetMinSize"); ASSERT(myBaseImpl); - this->GetImpl()->SetToOutputInterfaces(theValue); - SMESH::TPythonDump() << _this() << ".SetToOutputInterfaces( " << theValue << " )"; + this->GetImpl()->SetMinSize(theValue); + SMESH::TPythonDump() << _this() << ".SetMinSize( " << theValue << " )"; } -void GHS3DPRLPlugin_Hypothesis_i::SetToDiscardSubdomains (CORBA::Boolean theValue) +void GHS3DPRLPlugin_Hypothesis_i::SetMaxSize (CORBA::Float theValue) { - MESSAGE("GHS3DPRLPlugin_Hypothesis_i::SetToDiscardSubdomains"); + MESSAGE("GHS3DPRLPlugin_Hypothesis_i::SetMaxSize"); ASSERT(myBaseImpl); - this->GetImpl()->SetToDiscardSubdomains(theValue); - SMESH::TPythonDump() << _this() << ".SetToDiscardSubdomains( " << theValue << " )"; + this->GetImpl()->SetMaxSize(theValue); + SMESH::TPythonDump() << _this() << ".SetMaxSize( " << theValue << " )"; } + + + + //============================================================================= /*! * GHS3DPRLPlugin_Hypothesis_i::GetMEDName * GHS3DPRLPlugin_Hypothesis_i::GetNbPart * GHS3DPRLPlugin_Hypothesis_i::GetKeepFiles * GHS3DPRLPlugin_Hypothesis_i::GetBackground - * GHS3DPRLPlugin_Hypothesis_i::GetToMergeSubdomains - * GHS3DPRLPlugin_Hypothesis_i::GetToTagSubdomains - * GHS3DPRLPlugin_Hypothesis_i::GetToOutputInterfaces - * GHS3DPRLPlugin_Hypothesis_i::GetToDiscardSubdomains + * GHS3DPRLPlugin_Hypothesis_i::GetMultithread + * GHS3DPRLPlugin_Hypothesis_i::GetGradation + * GHS3DPRLPlugin_Hypothesis_i::GetMinSize + * GHS3DPRLPlugin_Hypothesis_i::GetMaxSize */ //============================================================================= @@ -181,32 +191,53 @@ CORBA::Boolean GHS3DPRLPlugin_Hypothesis_i::GetBackground() return this->GetImpl()->GetBackground(); } -CORBA::Boolean GHS3DPRLPlugin_Hypothesis_i::GetToMergeSubdomains() +CORBA::Boolean GHS3DPRLPlugin_Hypothesis_i::GetMultithread() { - MESSAGE("GHS3DPRLPlugin_Hypothesis_i::GetToMergeSubdomains"); + MESSAGE("GHS3DPRLPlugin_Hypothesis_i::GetMultithread"); ASSERT(myBaseImpl); - return this->GetImpl()->GetToMergeSubdomains(); + return this->GetImpl()->GetMultithread(); } -CORBA::Boolean GHS3DPRLPlugin_Hypothesis_i::GetToTagSubdomains() +//CORBA::Boolean GHS3DPRLPlugin_Hypothesis_i::GetToMergeSubdomains() +//{ +// MESSAGE("GHS3DPRLPlugin_Hypothesis_i::GetToMergeSubdomains"); +// ASSERT(myBaseImpl); +// return this->GetImpl()->GetToMergeSubdomains(); +//} + +CORBA::Float GHS3DPRLPlugin_Hypothesis_i::GetGradation() { - MESSAGE("GHS3DPRLPlugin_Hypothesis_i::GetToTagSubdomains"); + MESSAGE("GHS3DPRLPlugin_Hypothesis_i::GetGradation"); ASSERT(myBaseImpl); - return this->GetImpl()->GetToTagSubdomains(); + return this->GetImpl()->GetGradation(); } -CORBA::Boolean GHS3DPRLPlugin_Hypothesis_i::GetToOutputInterfaces() +CORBA::Float GHS3DPRLPlugin_Hypothesis_i::GetMinSize() { - MESSAGE("GHS3DPRLPlugin_Hypothesis_i::GetToOutputInterfaces"); + MESSAGE("GHS3DPRLPlugin_Hypothesis_i::GetMinSize"); ASSERT(myBaseImpl); - return this->GetImpl()->GetToOutputInterfaces(); + return this->GetImpl()->GetMinSize(); } -CORBA::Boolean GHS3DPRLPlugin_Hypothesis_i::GetToDiscardSubdomains() +CORBA::Float GHS3DPRLPlugin_Hypothesis_i::GetMaxSize() { - MESSAGE("GHS3DPRLPlugin_Hypothesis_i::GetToDiscardSubdomains"); + MESSAGE("GHS3DPRLPlugin_Hypothesis_i::GetMaxSize"); ASSERT(myBaseImpl); - return this->GetImpl()->GetToDiscardSubdomains(); + return this->GetImpl()->GetMaxSize(); +} + +void GHS3DPRLPlugin_Hypothesis_i::SetAdvancedOption(const char* theOptAndVals ) +{ + if ( theOptAndVals && GetImpl()->GetAdvancedOption() != theOptAndVals ) + { + GetImpl()->SetAdvancedOption( theOptAndVals ); + SMESH::TPythonDump() << _this() << ".SetAdvancedOption( '" << theOptAndVals << "' )"; + } +} + +char* GHS3DPRLPlugin_Hypothesis_i::GetAdvancedOption() +{ + return CORBA::string_dup( GetImpl()->GetAdvancedOption().c_str() ); } //=============================================================================