X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGHS3DPRLPlugin%2FGHS3DPRLPlugin_Hypothesis_i.cxx;h=1c8e1477017872106ef3f5a8e2190a942ffc6797;hb=a82f8d3403d5c3138e21d045861fb130fd7d420b;hp=70c4bcfd06d7d77bcf69b86de67de60eda980aa4;hpb=922619aad64bf90317b241a166222674263995ce;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 70c4bcf..1c8e147 --- a/src/GHS3DPRLPlugin/GHS3DPRLPlugin_Hypothesis_i.cxx +++ b/src/GHS3DPRLPlugin/GHS3DPRLPlugin_Hypothesis_i.cxx @@ -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 @@ -38,15 +38,13 @@ //============================================================================= GHS3DPRLPlugin_Hypothesis_i:: GHS3DPRLPlugin_Hypothesis_i (PortableServer::POA_ptr thePOA, - int theStudyId, - ::SMESH_Gen* theGenImpl) + ::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); + theGenImpl); } //============================================================================= @@ -67,7 +65,10 @@ GHS3DPRLPlugin_Hypothesis_i::~GHS3DPRLPlugin_Hypothesis_i() * GHS3DPRLPlugin_Hypothesis_i::SetNbPart * GHS3DPRLPlugin_Hypothesis_i::SetKeepFiles * GHS3DPRLPlugin_Hypothesis_i::SetBackground - * GHS3DPRLPlugin_Hypothesis_i::SetToMeshHoles + * GHS3DPRLPlugin_Hypothesis_i::SetMultithread + * GHS3DPRLPlugin_Hypothesis_i::SetGradation + * GHS3DPRLPlugin_Hypothesis_i::SetMinSize + * GHS3DPRLPlugin_Hypothesis_i::SetMaxSize */ //============================================================================= @@ -76,7 +77,7 @@ void GHS3DPRLPlugin_Hypothesis_i::SetMEDName (const char *theValue) MESSAGE("GHS3DPRLPlugin_Hypothesis_i::SetMEDName"); ASSERT(myBaseImpl); this->GetImpl()->SetMEDName(theValue); - SMESH::TPythonDump() << _this() << ".SetMEDName( " << theValue << " )"; + SMESH::TPythonDump() << _this() << ".SetMEDName( '" << theValue << "' )"; } void GHS3DPRLPlugin_Hypothesis_i::SetNbPart (CORBA::Long theValue) @@ -103,21 +104,60 @@ void GHS3DPRLPlugin_Hypothesis_i::SetBackground (CORBA::Boolean theValue) SMESH::TPythonDump() << _this() << ".SetBackground( " << theValue << " )"; } -void GHS3DPRLPlugin_Hypothesis_i::SetToMeshHoles (CORBA::Boolean theValue) +void GHS3DPRLPlugin_Hypothesis_i::SetMultithread (CORBA::Boolean theValue) { - MESSAGE("GHS3DPRLPlugin_Hypothesis_i::SetToMeshHoles"); + MESSAGE("GHS3DPRLPlugin_Hypothesis_i::SetMultithread"); ASSERT(myBaseImpl); - this->GetImpl()->SetToMeshHoles(theValue); - SMESH::TPythonDump() << _this() << ".SetToMeshHoles( " << theValue << " )"; + this->GetImpl()->SetMultithread(theValue); + SMESH::TPythonDump() << _this() << ".SetMultithread( " << 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::SetGradation"); + ASSERT(myBaseImpl); + this->GetImpl()->SetGradation(theValue); + SMESH::TPythonDump() << _this() << ".SetGradation( " << theValue << " )"; +} + +void GHS3DPRLPlugin_Hypothesis_i::SetMinSize (CORBA::Float theValue) +{ + MESSAGE("GHS3DPRLPlugin_Hypothesis_i::SetMinSize"); + ASSERT(myBaseImpl); + this->GetImpl()->SetMinSize(theValue); + SMESH::TPythonDump() << _this() << ".SetMinSize( " << theValue << " )"; +} + +void GHS3DPRLPlugin_Hypothesis_i::SetMaxSize (CORBA::Float theValue) +{ + MESSAGE("GHS3DPRLPlugin_Hypothesis_i::SetMaxSize"); + ASSERT(myBaseImpl); + 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::GetToMeshHoles + * GHS3DPRLPlugin_Hypothesis_i::GetMultithread + * GHS3DPRLPlugin_Hypothesis_i::GetGradation + * GHS3DPRLPlugin_Hypothesis_i::GetMinSize + * GHS3DPRLPlugin_Hypothesis_i::GetMaxSize */ //============================================================================= @@ -125,8 +165,8 @@ char * GHS3DPRLPlugin_Hypothesis_i::GetMEDName() { MESSAGE("GHS3DPRLPlugin_Hypothesis_i::GetMEDName"); ASSERT(myBaseImpl); - CORBA::String_var c_s = - CORBA::string_dup(this->GetImpl()->GetMEDName().c_str()); + CORBA::String_var c_s = + CORBA::string_dup(this->GetImpl()->GetMEDName().c_str()); return c_s._retn(); } @@ -151,11 +191,53 @@ CORBA::Boolean GHS3DPRLPlugin_Hypothesis_i::GetBackground() return this->GetImpl()->GetBackground(); } -CORBA::Boolean GHS3DPRLPlugin_Hypothesis_i::GetToMeshHoles() +CORBA::Boolean GHS3DPRLPlugin_Hypothesis_i::GetMultithread() +{ + MESSAGE("GHS3DPRLPlugin_Hypothesis_i::GetMultithread"); + ASSERT(myBaseImpl); + return this->GetImpl()->GetMultithread(); +} + +//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::GetGradation"); + ASSERT(myBaseImpl); + return this->GetImpl()->GetGradation(); +} + +CORBA::Float GHS3DPRLPlugin_Hypothesis_i::GetMinSize() +{ + MESSAGE("GHS3DPRLPlugin_Hypothesis_i::GetMinSize"); + ASSERT(myBaseImpl); + return this->GetImpl()->GetMinSize(); +} + +CORBA::Float GHS3DPRLPlugin_Hypothesis_i::GetMaxSize() { - MESSAGE("GHS3DPRLPlugin_Hypothesis_i::GetToMeshHoles"); + MESSAGE("GHS3DPRLPlugin_Hypothesis_i::GetMaxSize"); ASSERT(myBaseImpl); - return this->GetImpl()->GetToMeshHoles(); + 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() ); } //=============================================================================