#include "SMESH_MEDSupport_i.hxx"
#include "utilities.h"
#include "Utils_CorbaException.hxx"
+#include "Utils_ExceptHandlers.hxx"
#include <TopoDS_Iterator.hxx>
#include "SMESHDS_Mesh.hxx"
#include "SMESH_Mesh_i.hxx"
#include "SMESH_subMesh_i.hxx"
+
//=============================================================================
/*!
* Default constructor
*/
//=============================================================================
-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);
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<const SMDS_MeshNode*> & myNodesMap = _subMeshDS->GetNodes();
- set<const SMDS_MeshNode*>::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++;
};
*/
//=============================================================================
-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;
+}