X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESH_I%2FSMESH_MEDSupport_i.cxx;h=7b5289ebb879212e6acc7a12e24b70b7bcb84f7c;hp=7b9b8f255edf2382f40ac17f4db20abdb9db2b5f;hb=c3bf92bd87b770fd81631a3853f7f5bb1ac6a4e8;hpb=dd138f193fb5fa1d7339e62de896c4913485afca diff --git a/src/SMESH_I/SMESH_MEDSupport_i.cxx b/src/SMESH_I/SMESH_MEDSupport_i.cxx index 7b9b8f255..7b5289ebb 100644 --- a/src/SMESH_I/SMESH_MEDSupport_i.cxx +++ b/src/SMESH_I/SMESH_MEDSupport_i.cxx @@ -28,6 +28,7 @@ using namespace std; #include "SMESH_MEDSupport_i.hxx" #include "utilities.h" #include "Utils_CorbaException.hxx" +#include "Utils_ExceptHandlers.hxx" #include #include "SMESHDS_Mesh.hxx" @@ -36,6 +37,7 @@ using namespace std; #include "SMESH_Mesh_i.hxx" #include "SMESH_subMesh_i.hxx" + //============================================================================= /*! * Default constructor @@ -293,9 +295,10 @@ CORBA::Long SMESH_MEDSupport_i::getNumberOfElements(SALOME_MED:: */ //============================================================================= -Engines::long_array * SMESH_MEDSupport_i::getNumber( +SALOME_MED::long_array * SMESH_MEDSupport_i::getNumber( SALOME_MED::medGeometryElement geomElement) throw(SALOME::SALOME_Exception) { + Unexpect aCatch(SALOME_SalomeException); if (_subMeshDS==NULL) THROW_SALOME_CORBA_EXCEPTION("No associated Support", SALOME::INTERNAL_ERROR); @@ -304,18 +307,15 @@ Engines::long_array * SMESH_MEDSupport_i::getNumber( if (geomElement != SALOME_MED::MED_NONE) THROW_SALOME_CORBA_EXCEPTION("Not implemented", SALOME::BAD_PARAM); - Engines::long_array_var myseq = new Engines::long_array; + SALOME_MED::long_array_var myseq = new SALOME_MED::long_array; int i = 0; myseq->length(_subMeshDS->NbNodes()); - const set & myNodesMap = _subMeshDS->GetNodes(); - set::const_iterator it=myNodesMap.begin(); - for (; it!=myNodesMap.end(); it++) + SMDS_NodeIteratorPtr it = _subMeshDS->GetNodes(); + while(it->more()) { - myseq[i] = (*it)->GetID(); - SCRUTE((*it)->GetID()); - SCRUTE(myseq[i]); + myseq[i] = it->next()->GetID(); i++; }; @@ -332,23 +332,70 @@ Engines::long_array * SMESH_MEDSupport_i::getNumber( */ //============================================================================= -Engines::long_array * +SALOME_MED::long_array * SMESH_MEDSupport_i::getNumberIndex()throw(SALOME::SALOME_Exception) { MESSAGE("Not implemented for SMESH_i"); THROW_SALOME_CORBA_EXCEPTION("Not Implemented", SALOME::BAD_PARAM); - return 0; + return NULL; } - //============================================================================= /*! * CORBA: Array containing indexes for elements included in the support */ //============================================================================= -CORBA::Long SMESH_MEDSupport_i::getNumberOfGaussPoints(SALOME_MED:: +CORBA::Long SMESH_MEDSupport_i::getNumberOfGaussPoint(SALOME_MED:: medGeometryElement geomElement) throw(SALOME::SALOME_Exception) { MESSAGE("Not implemented for SMESH_i"); return 0; } +//============================================================================= +/*! + * Gives the number of types of elements included in the support + */ +//============================================================================= +CORBA::Long SMESH_MEDSupport_i::getNumberOfTypes() + throw (SALOME::SALOME_Exception) +{ + MESSAGE("!!! NOT YET IMPLEMENTED !!!!"); + THROW_SALOME_CORBA_EXCEPTION("Not Implemented", SALOME::BAD_PARAM); + return 0; +} +//============================================================================= +/*! + * Gives CORBA: Array containing the numbers of Gauss point of elements + * included in the support + */ +//============================================================================= +SALOME_MED::long_array* SMESH_MEDSupport_i::getNumbersOfGaussPoint() + throw (SALOME::SALOME_Exception) +{ + MESSAGE("!!! NOT YET IMPLEMENTED !!!!"); + THROW_SALOME_CORBA_EXCEPTION("Not Implemented", SALOME::BAD_PARAM); + return NULL; +} +//============================================================================= +/*! + * build the object which will contain all the boundary elements of the mesh. + */ +//============================================================================= +void SMESH_MEDSupport_i::getBoundaryElements() + throw (SALOME::SALOME_Exception) +{ + MESSAGE("!!! NOT YET IMPLEMENTED !!!!"); + THROW_SALOME_CORBA_EXCEPTION("Not Implemented", SALOME::BAD_PARAM); +} +//============================================================================= +/*! + * Gives information on the support + */ +//============================================================================= +SALOME_MED::SUPPORT::supportInfos * SMESH_MEDSupport_i::getSupportGlobal() + throw (SALOME::SALOME_Exception) +{ + MESSAGE("!!! NOT YET IMPLEMENTED !!!!"); + THROW_SALOME_CORBA_EXCEPTION("Not Implemented", SALOME::BAD_PARAM); + return NULL; +}