X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESH_I%2FSMESH_MaxElementVolume_i.cxx;h=9ed53a08dcd6228a78d17038dddfafd2cba119e2;hp=dfbb37b80f60beb9374f8e837e142824dd856d8b;hb=faa1c8f2bc27c5244a34fe03584826de59cb17b3;hpb=4791f5b30ea7a9c1247aa551750dc71cb83b99aa diff --git a/src/SMESH_I/SMESH_MaxElementVolume_i.cxx b/src/SMESH_I/SMESH_MaxElementVolume_i.cxx index dfbb37b80..9ed53a08d 100644 --- a/src/SMESH_I/SMESH_MaxElementVolume_i.cxx +++ b/src/SMESH_I/SMESH_MaxElementVolume_i.cxx @@ -27,3 +27,73 @@ // $Header$ using namespace std; + +#include "SMESH_MaxElementVolume_i.hxx" +#include "SMESH_Gen.hxx" +#include "SMESH_HypothesisFactory.hxx" + +#include "Utils_CorbaException.hxx" +#include "utilities.h" + +//============================================================================= +/*! + * Constructor: + * _name is related to the class name: prefix = SMESH_ ; suffix = _i . + */ +//============================================================================= + +SMESH_MaxElementVolume_i::SMESH_MaxElementVolume_i(const char* anHyp, + int studyId, + ::SMESH_Gen* genImpl) +{ + MESSAGE("SMESH_MaxElementVolume_i::SMESH_MaxElementVolume_i"); + _impl = new ::SMESH_MaxElementVolume(genImpl->_hypothesisFactory.GetANewId(), + studyId, + genImpl); + _baseImpl = _impl; +} + +//============================================================================= +/*! + * + */ +//============================================================================= + +SMESH_MaxElementVolume_i::~SMESH_MaxElementVolume_i() +{ + MESSAGE("SMESH_MaxElementVolume_i::~SMESH_MaxElementVolume_i()"); +} + +//============================================================================= +/*! + * + */ +//============================================================================= + +void SMESH_MaxElementVolume_i::SetMaxElementVolume(CORBA::Double volume) + throw (SALOME::SALOME_Exception) +{ + ASSERT(_impl); + try + { + _impl->SetMaxVolume(volume); + } + catch (SALOME_Exception& S_ex) + { + THROW_SALOME_CORBA_EXCEPTION(S_ex.what(), \ + SALOME::BAD_PARAM); + } +} + +//============================================================================= +/*! + * + */ +//============================================================================= + +CORBA::Double SMESH_MaxElementVolume_i::GetMaxElementVolume() +{ + ASSERT(_impl); + return _impl->GetMaxVolume(); +} +