X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FStdMeshers_I%2FStdMeshers_Adaptive1D_i.cxx;h=dd0b1a4a211c951d58a84c454a0954e5f38d0762;hb=ac78dadbe5c45faeb606eab55bd9e9024aa6460a;hp=bcf6cc5ac5a7c8c6b160c5bad976631a245f3ae5;hpb=80fe1ddefc561a7a571ac08807f7d173f45d8080;p=modules%2Fsmesh.git diff --git a/src/StdMeshers_I/StdMeshers_Adaptive1D_i.cxx b/src/StdMeshers_I/StdMeshers_Adaptive1D_i.cxx index bcf6cc5ac..dd0b1a4a2 100644 --- a/src/StdMeshers_I/StdMeshers_Adaptive1D_i.cxx +++ b/src/StdMeshers_I/StdMeshers_Adaptive1D_i.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -39,13 +39,11 @@ //======================================================================= StdMeshers_Adaptive1D_i::StdMeshers_Adaptive1D_i( PortableServer::POA_ptr thePOA, - int theStudyId, ::SMESH_Gen* theGenImpl ) : SALOME::GenericObj_i( thePOA ), SMESH_Hypothesis_i( thePOA ) { myBaseImpl = new ::StdMeshers_Adaptive1D( theGenImpl->GetANewId(), - theStudyId, theGenImpl ); } @@ -56,7 +54,6 @@ StdMeshers_Adaptive1D_i::StdMeshers_Adaptive1D_i( PortableServer::POA_ptr thePOA StdMeshers_Adaptive1D_i::~StdMeshers_Adaptive1D_i() { - MESSAGE( "StdMeshers_Adaptive1D_i::~StdMeshers_Adaptive1D_i" ); } //======================================================================= @@ -65,7 +62,6 @@ StdMeshers_Adaptive1D_i::~StdMeshers_Adaptive1D_i() //======================================================================= void StdMeshers_Adaptive1D_i::SetMinSize( CORBA::Double minSegLen ) - throw (SALOME::SALOME_Exception) { ASSERT( myBaseImpl ); try { @@ -96,7 +92,6 @@ CORBA::Double StdMeshers_Adaptive1D_i::GetMinSize() //======================================================================= void StdMeshers_Adaptive1D_i::SetMaxSize( CORBA::Double maxSegLen ) - throw (SALOME::SALOME_Exception) { ASSERT( myBaseImpl ); try { @@ -127,7 +122,6 @@ CORBA::Double StdMeshers_Adaptive1D_i::GetMaxSize() //======================================================================= void StdMeshers_Adaptive1D_i::SetDeflection( CORBA::Double theValue ) - throw ( SALOME::SALOME_Exception ) { ASSERT( myBaseImpl ); try { @@ -152,37 +146,6 @@ CORBA::Double StdMeshers_Adaptive1D_i::GetDeflection() return this->GetImpl()->GetDeflection(); } -//======================================================================= -//function : SetGrading -//purpose : Sets how much size of adjacent elements can differ. -//======================================================================= - -void StdMeshers_Adaptive1D_i::SetGrading( CORBA::Double theValue ) - throw ( SALOME::SALOME_Exception ) -{ - ASSERT( myBaseImpl ); - try { - this->GetImpl()->SetGrading( theValue ); - } - catch ( SALOME_Exception& S_ex ) { - THROW_SALOME_CORBA_EXCEPTION( S_ex.what(), SALOME::BAD_PARAM ); - } - - // Update Python script - SMESH::TPythonDump() << _this() << ".SetGrading( " << SMESH::TVar(theValue) << " )"; -} - -//======================================================================= -//function : GetGrading -//purpose : Returns grading -//======================================================================= - -CORBA::Double StdMeshers_Adaptive1D_i::GetGrading() -{ - ASSERT( myBaseImpl ); - return this->GetImpl()->GetGrading(); -} - //======================================================================= //function : GetImpl //purpose : Get implementation