X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FStdMeshers_I%2FStdMeshers_AutomaticLength_i.cxx;h=2f085a7cf3d5fd70096819670c2bb89c937ef119;hp=5af0952c3b7dcaf21766782ebf88ed8e7f79f601;hb=5c933ecde0251d3c4894d0cdeab8dc67b6c4c3a5;hpb=236b583d315b14278bda28e118748016d0e4f709 diff --git a/src/StdMeshers_I/StdMeshers_AutomaticLength_i.cxx b/src/StdMeshers_I/StdMeshers_AutomaticLength_i.cxx index 5af0952c3..2f085a7cf 100644 --- a/src/StdMeshers_I/StdMeshers_AutomaticLength_i.cxx +++ b/src/StdMeshers_I/StdMeshers_AutomaticLength_i.cxx @@ -30,6 +30,7 @@ using namespace std; #include "StdMeshers_AutomaticLength_i.hxx" #include "SMESH_Gen_i.hxx" #include "SMESH_Gen.hxx" +#include "SMESH_PythonDump.hxx" #include "Utils_CorbaException.hxx" #include "utilities.h" @@ -71,47 +72,40 @@ StdMeshers_AutomaticLength_i::~StdMeshers_AutomaticLength_i() //============================================================================= /*! - * StdMeshers_AutomaticLength_i::SetLength + * StdMeshers_AutomaticLength_i::SetFineness * - * Set length + * Set Fineness */ //============================================================================= -// void StdMeshers_AutomaticLength_i::SetLength( CORBA::Double theLength ) -// throw ( SALOME::SALOME_Exception ) -// { -// MESSAGE( "StdMeshers_AutomaticLength_i::SetLength" ); -// ASSERT( myBaseImpl ); -// try { -// this->GetImpl()->SetLength( theLength ); -// } -// catch ( SALOME_Exception& S_ex ) { -// THROW_SALOME_CORBA_EXCEPTION( S_ex.what(), -// SALOME::BAD_PARAM ); -// } - -// // Update Python script -// TCollection_AsciiString aStr, aStrLen ((double)theLength); -// SMESH_Gen_i::AddObject(aStr, _this()) += ".SetLength("; -// aStr += aStrLen + ")"; - -// SMESH_Gen_i::AddToCurrentPyScript(aStr); -// } +void StdMeshers_AutomaticLength_i::SetFineness( CORBA::Double theFineness ) + throw ( SALOME::SALOME_Exception ) +{ + ASSERT( myBaseImpl ); + try { + this->GetImpl()->SetFineness( theFineness ); + } + catch ( SALOME_Exception& S_ex ) { + THROW_SALOME_CORBA_EXCEPTION( S_ex.what(), + SALOME::BAD_PARAM ); + } + // Update Python script + SMESH::TPythonDump() << _this() << ".SetFineness( " << theFineness << " )"; +} //============================================================================= /*! - * StdMeshers_AutomaticLength_i::GetLength + * StdMeshers_AutomaticLength_i::GetFineness * - * Get length + * Get Fineness */ //============================================================================= -// CORBA::Double StdMeshers_AutomaticLength_i::GetLength() -// { -// MESSAGE( "StdMeshers_AutomaticLength_i::GetLength" ); -// ASSERT( myBaseImpl ); -// return this->GetImpl()->GetLength(); -// } +CORBA::Double StdMeshers_AutomaticLength_i::GetFineness() +{ + ASSERT( myBaseImpl ); + return this->GetImpl()->GetFineness(); +} //============================================================================= /*! @@ -123,7 +117,6 @@ StdMeshers_AutomaticLength_i::~StdMeshers_AutomaticLength_i() ::StdMeshers_AutomaticLength* StdMeshers_AutomaticLength_i::GetImpl() { - MESSAGE( "StdMeshers_AutomaticLength_i::GetImpl" ); return ( ::StdMeshers_AutomaticLength* )myBaseImpl; }