X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYBRIDPlugin%2FHYBRIDPlugin_HYBRID_i.cxx;h=f04ce5698dd39114cb437ea4451b1ab1d30f3e7d;hb=7972d6e3ce34777547876d3f4d52fc7c09d39334;hp=91b0c14e89a33dd3db6750cc5258b87453ac8185;hpb=381fbeaddd2167fa440a8f727d8ddf5e3d707a1b;p=plugins%2Fhybridplugin.git diff --git a/src/HYBRIDPlugin/HYBRIDPlugin_HYBRID_i.cxx b/src/HYBRIDPlugin/HYBRIDPlugin_HYBRID_i.cxx index 91b0c14..f04ce56 100644 --- a/src/HYBRIDPlugin/HYBRIDPlugin_HYBRID_i.cxx +++ b/src/HYBRIDPlugin/HYBRIDPlugin_HYBRID_i.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2015 CEA/DEN, EDF R&D +// Copyright (C) 2007-2023 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -41,17 +41,14 @@ //============================================================================= HYBRIDPlugin_HYBRID_i::HYBRIDPlugin_HYBRID_i (PortableServer::POA_ptr thePOA, - int theStudyId, - ::SMESH_Gen* theGenImpl ) + ::SMESH_Gen* theGenImpl ) : SALOME::GenericObj_i( thePOA ), SMESH_Hypothesis_i( thePOA ), SMESH_Algo_i( thePOA ), SMESH_3D_Algo_i( thePOA ) { - MESSAGE( "HYBRIDPlugin_HYBRID_i::HYBRIDPlugin_HYBRID_i" ); myBaseImpl = new ::HYBRIDPlugin_HYBRID (theGenImpl->GetANewId(), - theStudyId, - theGenImpl ); + theGenImpl ); } //============================================================================= @@ -64,7 +61,6 @@ HYBRIDPlugin_HYBRID_i::HYBRIDPlugin_HYBRID_i (PortableServer::POA_ptr thePOA, HYBRIDPlugin_HYBRID_i::~HYBRIDPlugin_HYBRID_i() { - MESSAGE( "HYBRIDPlugin_HYBRID_i::~HYBRIDPlugin_HYBRID_i" ); } //============================================================================= @@ -77,7 +73,6 @@ HYBRIDPlugin_HYBRID_i::~HYBRIDPlugin_HYBRID_i() ::HYBRIDPlugin_HYBRID* HYBRIDPlugin_HYBRID_i::GetImpl() { - MESSAGE( "HYBRIDPlugin_HYBRID_i::GetImpl" ); return ( ::HYBRIDPlugin_HYBRID* )myBaseImpl; } @@ -91,11 +86,10 @@ HYBRIDPlugin_HYBRID_i::~HYBRIDPlugin_HYBRID_i() SMESH::SMESH_Mesh_ptr HYBRIDPlugin_HYBRID_i::importGMFMesh(const char* theGMFFileName) { - MESSAGE( "HYBRIDPlugin_HYBRID_i::importGMFMesh" ); SMESH_Gen_i* smeshGen = SMESH_Gen_i::GetSMESHGen(); SMESH::SMESH_Mesh_ptr theMesh = smeshGen->CreateEmptyMesh(); - smeshGen->RemoveLastFromPythonScript(smeshGen->GetCurrentStudy()->StudyId()); - SALOMEDS::SObject_ptr theSMesh = smeshGen->ObjectToSObject(smeshGen->GetCurrentStudy(), theMesh); + smeshGen->RemoveLastFromPythonScript(); + SALOMEDS::SObject_ptr theSMesh = smeshGen->ObjectToSObject(theMesh); #ifdef WINNT #define SEP '\\' #else