merge with the branch nadir_update_MED_v1_3_0 (branch to build the V1_3_0

version of the module.
This commit is contained in:
nadir 2003-11-18 09:19:32 +00:00
parent fca9d06704
commit 341338ff08
6 changed files with 387 additions and 66 deletions

View File

@ -125,7 +125,7 @@ throw (SALOME::SALOME_Exception)
* CORBA: Accessor for attributes identifiers * CORBA: Accessor for attributes identifiers
*/ */
//============================================================================= //=============================================================================
Engines::long_array* SMESH_MEDFamily_i::getAttributesIdentifiers() SALOME_MED::long_array* SMESH_MEDFamily_i::getAttributesIdentifiers()
throw (SALOME::SALOME_Exception) throw (SALOME::SALOME_Exception)
{ {
if (_subMeshDS==NULL) if (_subMeshDS==NULL)
@ -138,7 +138,7 @@ throw (SALOME::SALOME_Exception)
,SALOME::BAD_PARAM); ,SALOME::BAD_PARAM);
}; };
Engines::long_array_var myseq= new Engines::long_array; SALOME_MED::long_array_var myseq= new SALOME_MED::long_array;
myseq->length(_numberOfAttribute); myseq->length(_numberOfAttribute);
for (int i=0;i<_numberOfAttribute;i++) for (int i=0;i<_numberOfAttribute;i++)
{ {
@ -175,7 +175,7 @@ CORBA::Long SMESH_MEDFamily_i::getAttributeIdentifier(CORBA::Long i)
* CORBA: Accessor for attributes values * CORBA: Accessor for attributes values
*/ */
//============================================================================= //=============================================================================
Engines::long_array* SMESH_MEDFamily_i::getAttributesValues() SALOME_MED::long_array* SMESH_MEDFamily_i::getAttributesValues()
throw (SALOME::SALOME_Exception) throw (SALOME::SALOME_Exception)
{ {
if (_subMeshDS==NULL) if (_subMeshDS==NULL)
@ -189,7 +189,7 @@ Engines::long_array* SMESH_MEDFamily_i::getAttributesValues()
,SALOME::BAD_PARAM); ,SALOME::BAD_PARAM);
}; };
Engines::long_array_var myseq= new Engines::long_array; SALOME_MED::long_array_var myseq= new SALOME_MED::long_array;
myseq->length(_numberOfAttribute); myseq->length(_numberOfAttribute);
for (int i=0;i<_numberOfAttribute;i++) for (int i=0;i<_numberOfAttribute;i++)
{ {
@ -223,7 +223,7 @@ CORBA::Long SMESH_MEDFamily_i::getAttributeValue(CORBA::Long i)
* CORBA: Accessor for attributes desriptions * CORBA: Accessor for attributes desriptions
*/ */
//============================================================================= //=============================================================================
Engines::string_array * SMESH_MEDFamily_i::getAttributesDescriptions() SALOME_MED::string_array * SMESH_MEDFamily_i::getAttributesDescriptions()
throw (SALOME::SALOME_Exception) throw (SALOME::SALOME_Exception)
{ {
if (_subMeshDS==NULL) if (_subMeshDS==NULL)
@ -235,7 +235,7 @@ Engines::string_array * SMESH_MEDFamily_i::getAttributesDescriptions()
THROW_SALOME_CORBA_EXCEPTION("No attributes"\ THROW_SALOME_CORBA_EXCEPTION("No attributes"\
,SALOME::BAD_PARAM); ,SALOME::BAD_PARAM);
} }
Engines::string_array_var myseq = new Engines::string_array; SALOME_MED::string_array_var myseq = new SALOME_MED::string_array;
for (int i=0;i<_numberOfAttribute;i++) for (int i=0;i<_numberOfAttribute;i++)
{ {
myseq[i]=CORBA::string_dup(_attributeDescription[i].c_str()); myseq[i]=CORBA::string_dup(_attributeDescription[i].c_str());
@ -262,3 +262,39 @@ char * SMESH_MEDFamily_i::getAttributeDescription( CORBA::Long i)
ASSERT (i <= _numberOfAttribute); ASSERT (i <= _numberOfAttribute);
return CORBA::string_dup(_attributeDescription[i].c_str()); return CORBA::string_dup(_attributeDescription[i].c_str());
} }
//=============================================================================
/*!
* CORBA: Accessor for the number of groups
*/
//=============================================================================
CORBA::Long SMESH_MEDFamily_i::getNumberOfGroups()
throw (SALOME::SALOME_Exception)
{
MESSAGE("!!! NOT YET IMPLEMENTED !!!!");
THROW_SALOME_CORBA_EXCEPTION("Not Implemented", SALOME::BAD_PARAM);
return 0;
}
//=============================================================================
/*!
* CORBA: Accessor for the name of the group i
*/
//=============================================================================
char * SMESH_MEDFamily_i::getGroupName( CORBA::Long i)
throw (SALOME::SALOME_Exception)
{
MESSAGE("!!! NOT YET IMPLEMENTED !!!!");
THROW_SALOME_CORBA_EXCEPTION("Not Implemented", SALOME::BAD_PARAM);
return NULL;
}
//=============================================================================
/*!
* CORBA: Accessor for all the groups name
*/
//=============================================================================
SALOME_MED::string_array* SMESH_MEDFamily_i::getGroupsNames()
throw (SALOME::SALOME_Exception)
{
MESSAGE("!!! NOT YET IMPLEMENTED !!!!");
THROW_SALOME_CORBA_EXCEPTION("Not Implemented", SALOME::BAD_PARAM);
return NULL;
}

View File

@ -62,18 +62,23 @@ public :
throw (SALOME::SALOME_Exception); throw (SALOME::SALOME_Exception);
CORBA::Long getNumberOfAttributes() CORBA::Long getNumberOfAttributes()
throw (SALOME::SALOME_Exception); throw (SALOME::SALOME_Exception);
Engines::long_array* getAttributesIdentifiers() SALOME_MED::long_array* getAttributesIdentifiers()
throw (SALOME::SALOME_Exception); throw (SALOME::SALOME_Exception);
CORBA::Long getAttributeIdentifier(CORBA::Long i) CORBA::Long getAttributeIdentifier(CORBA::Long i)
throw (SALOME::SALOME_Exception); throw (SALOME::SALOME_Exception);
Engines::long_array* getAttributesValues() SALOME_MED::long_array* getAttributesValues()
throw (SALOME::SALOME_Exception); throw (SALOME::SALOME_Exception);
CORBA::Long getAttributeValue(CORBA::Long i) CORBA::Long getAttributeValue(CORBA::Long i)
throw (SALOME::SALOME_Exception); throw (SALOME::SALOME_Exception);
Engines::string_array* getAttributesDescriptions() SALOME_MED::string_array* getAttributesDescriptions()
throw (SALOME::SALOME_Exception); throw (SALOME::SALOME_Exception);
char* getAttributeDescription( CORBA::Long i) char* getAttributeDescription( CORBA::Long i)
throw (SALOME::SALOME_Exception); throw (SALOME::SALOME_Exception);
CORBA::Long getNumberOfGroups()
throw (SALOME::SALOME_Exception);
char * getGroupName( CORBA::Long i)
throw (SALOME::SALOME_Exception);
SALOME_MED::string_array* getGroupsNames()
throw (SALOME::SALOME_Exception);
}; };
#endif /* MED_FAMILY_I_HXX_ */ #endif /* MED_FAMILY_I_HXX_ */

View File

@ -162,13 +162,55 @@ CORBA::Long SMESH_MEDMesh_i::getMeshDimension()throw(SALOME::SALOME_Exception)
SALOME::INTERNAL_ERROR); SALOME::INTERNAL_ERROR);
return 3; return 3;
} }
//=============================================================================
/*!
* CORBA: Accessor for the boolean _isAGrid
*/
//=============================================================================
CORBA::Boolean SMESH_MEDMesh_i::getIsAGrid() throw (SALOME::SALOME_Exception)
{
MESSAGE("!!!!!! NOT YET IMPLEMENTED !!!!!!");
THROW_SALOME_CORBA_EXCEPTION("Unimplemented Method", SALOME::BAD_PARAM);
return false;
}
//=============================================================================
/*!
* CORBA: Accessor for the connectivities, to see if they exist
*/
//=============================================================================
CORBA::Boolean
SMESH_MEDMesh_i::existConnectivity(SALOME_MED::medConnectivity connectivityType,
SALOME_MED::medEntityMesh entity)
throw (SALOME::SALOME_Exception)
{
MESSAGE("!!!!!! IMPLEMENTED BUT ONLY PARTIALLY !!!!!!");
return false;
}
//=============================================================================
/*!
* CORBA: Accessor for Coordinate
*/
//=============================================================================
CORBA::Double SMESH_MEDMesh_i::getCoordinate(CORBA::Long Number, CORBA::Long Axis)
throw (SALOME::SALOME_Exception)
{
MESSAGE("!!!!!! NOT YET IMPLEMENTED !!!!");
THROW_SALOME_CORBA_EXCEPTION("Unimplemented Method", SALOME::BAD_PARAM);
return 0.0;
}
//============================================================================= //=============================================================================
/*! /*!
* CORBA: Accessor for Coordinates System * CORBA: Accessor for Coordinates System
*/ */
//============================================================================= //=============================================================================
char *SMESH_MEDMesh_i::getCoordinateSystem() throw(SALOME::SALOME_Exception) char *SMESH_MEDMesh_i::getCoordinatesSystem() throw(SALOME::SALOME_Exception)
{ {
if (_mesh_i == 0) if (_mesh_i == 0)
THROW_SALOME_CORBA_EXCEPTION("No associated Mesh", THROW_SALOME_CORBA_EXCEPTION("No associated Mesh",
@ -192,13 +234,13 @@ char *SMESH_MEDMesh_i::getCoordinateSystem() throw(SALOME::SALOME_Exception)
* CORBA: Accessor for Coordinates * CORBA: Accessor for Coordinates
*/ */
//============================================================================= //=============================================================================
Engines::double_array * SMESH_MEDMesh_i::getCoordinates( SALOME_MED::double_array * SMESH_MEDMesh_i::getCoordinates(
SALOME_MED::medModeSwitch typeSwitch) throw(SALOME::SALOME_Exception) SALOME_MED::medModeSwitch typeSwitch) throw(SALOME::SALOME_Exception)
{ {
if (_mesh_i == 0) if (_mesh_i == 0)
THROW_SALOME_CORBA_EXCEPTION("No associated Mesh", THROW_SALOME_CORBA_EXCEPTION("No associated Mesh",
SALOME::INTERNAL_ERROR); SALOME::INTERNAL_ERROR);
Engines::double_array_var myseq = new Engines::double_array; SALOME_MED::double_array_var myseq = new SALOME_MED::double_array;
try try
{ {
// PN : En dur // PN : En dur
@ -250,13 +292,13 @@ Engines::double_array * SMESH_MEDMesh_i::getCoordinates(
* CORBA: Accessor for Coordinates Names * CORBA: Accessor for Coordinates Names
*/ */
//============================================================================= //=============================================================================
Engines::string_array * SALOME_MED::string_array *
SMESH_MEDMesh_i::getCoordinatesNames()throw(SALOME::SALOME_Exception) SMESH_MEDMesh_i::getCoordinatesNames()throw(SALOME::SALOME_Exception)
{ {
if (_mesh_i == 0) if (_mesh_i == 0)
THROW_SALOME_CORBA_EXCEPTION("No associated Mesh", THROW_SALOME_CORBA_EXCEPTION("No associated Mesh",
SALOME::INTERNAL_ERROR); SALOME::INTERNAL_ERROR);
Engines::string_array_var myseq = new Engines::string_array; SALOME_MED::string_array_var myseq = new SALOME_MED::string_array;
try try
{ {
// PN : en dur // PN : en dur
@ -281,13 +323,13 @@ Engines::string_array *
* CORBA: Accessor for Coordinates Units * CORBA: Accessor for Coordinates Units
*/ */
//============================================================================= //=============================================================================
Engines::string_array * SALOME_MED::string_array *
SMESH_MEDMesh_i::getCoordinatesUnits()throw(SALOME::SALOME_Exception) SMESH_MEDMesh_i::getCoordinatesUnits()throw(SALOME::SALOME_Exception)
{ {
if (_mesh_i == 0) if (_mesh_i == 0)
THROW_SALOME_CORBA_EXCEPTION("No associated Mesh", THROW_SALOME_CORBA_EXCEPTION("No associated Mesh",
SALOME::INTERNAL_ERROR); SALOME::INTERNAL_ERROR);
Engines::string_array_var myseq = new Engines::string_array; SALOME_MED::string_array_var myseq = new SALOME_MED::string_array;
try try
{ {
// PN : en dur // PN : en dur
@ -453,10 +495,12 @@ CORBA::Long SMESH_MEDMesh_i::getNumberOfElements(SALOME_MED::
* CORBA: Accessor for connectivities * CORBA: Accessor for connectivities
*/ */
//============================================================================= //=============================================================================
Engines::long_array * SALOME_MED::long_array *
SMESH_MEDMesh_i::getConnectivity(SALOME_MED::medModeSwitch typeSwitch, SMESH_MEDMesh_i::getConnectivity(SALOME_MED::medModeSwitch typeSwitch,
SALOME_MED::medConnectivity mode, SALOME_MED::medEntityMesh entity, SALOME_MED::medConnectivity mode,
SALOME_MED::medGeometryElement geomElement) throw(SALOME::SALOME_Exception) SALOME_MED::medEntityMesh entity,
SALOME_MED::medGeometryElement geomElement)
throw(SALOME::SALOME_Exception)
{ {
if (_mesh_i == 0) if (_mesh_i == 0)
THROW_SALOME_CORBA_EXCEPTION("No associated Mesh", THROW_SALOME_CORBA_EXCEPTION("No associated Mesh",
@ -482,9 +526,10 @@ Engines::long_array *
* CORBA: Accessor for connectivities * CORBA: Accessor for connectivities
*/ */
//============================================================================= //=============================================================================
Engines::long_array * SALOME_MED::long_array *
SMESH_MEDMesh_i::getConnectivityIndex(SALOME_MED::medConnectivity mode, SMESH_MEDMesh_i::getConnectivityIndex(SALOME_MED::medConnectivity mode,
SALOME_MED::medEntityMesh entity) throw(SALOME::SALOME_Exception) SALOME_MED::medEntityMesh entity)
throw(SALOME::SALOME_Exception)
{ {
MESSAGE("Pas Implemente dans SMESH"); MESSAGE("Pas Implemente dans SMESH");
THROW_SALOME_CORBA_EXCEPTION("Unimplemented Method", SALOME::BAD_PARAM); THROW_SALOME_CORBA_EXCEPTION("Unimplemented Method", SALOME::BAD_PARAM);
@ -496,10 +541,12 @@ Engines::long_array *
* CORBA: Find an element corresponding to the given connectivity * CORBA: Find an element corresponding to the given connectivity
*/ */
//============================================================================= //=============================================================================
CORBA::Long SMESH_MEDMesh_i::getElementNumber(SALOME_MED::medConnectivity mode, CORBA::Long
SMESH_MEDMesh_i::getElementNumber(SALOME_MED::medConnectivity mode,
SALOME_MED::medEntityMesh entity, SALOME_MED::medEntityMesh entity,
SALOME_MED::medGeometryElement type, SALOME_MED::medGeometryElement type,
const Engines::long_array & connectivity)throw(SALOME::SALOME_Exception) const SALOME_MED::long_array & connectivity)
throw(SALOME::SALOME_Exception)
{ {
const char *LOC = "getElementNumber "; const char *LOC = "getElementNumber ";
MESSAGE(LOC << "Pas Implemente dans SMESH"); MESSAGE(LOC << "Pas Implemente dans SMESH");
@ -513,7 +560,7 @@ CORBA::Long SMESH_MEDMesh_i::getElementNumber(SALOME_MED::medConnectivity mode,
* not implemented for MED_ALL_ENTITIES and MED_MAILLE * not implemented for MED_ALL_ENTITIES and MED_MAILLE
*/ */
//============================================================================= //=============================================================================
Engines::long_array * SALOME_MED::long_array *
SMESH_MEDMesh_i::getReverseConnectivity(SALOME_MED:: SMESH_MEDMesh_i::getReverseConnectivity(SALOME_MED::
medConnectivity mode) throw(SALOME::SALOME_Exception) medConnectivity mode) throw(SALOME::SALOME_Exception)
{ {
@ -527,7 +574,7 @@ Engines::long_array *
* CORBA: Accessor for connectivities * CORBA: Accessor for connectivities
*/ */
//============================================================================= //=============================================================================
Engines::long_array * SALOME_MED::long_array *
SMESH_MEDMesh_i::getReverseConnectivityIndex(SALOME_MED:: SMESH_MEDMesh_i::getReverseConnectivityIndex(SALOME_MED::
medConnectivity mode) throw(SALOME::SALOME_Exception) medConnectivity mode) throw(SALOME::SALOME_Exception)
{ {
@ -641,7 +688,53 @@ SALOME_MED::GROUP_ptr SMESH_MEDMesh_i::getGroup(SALOME_MED::
MESSAGE(" Pas d implementation des groupes dans SMESH"); MESSAGE(" Pas d implementation des groupes dans SMESH");
THROW_SALOME_CORBA_EXCEPTION("No group implementation", SALOME::BAD_PARAM); THROW_SALOME_CORBA_EXCEPTION("No group implementation", SALOME::BAD_PARAM);
} }
//=============================================================================
/*!
* CORBA: Returns references for the global numbering index
*/
//=============================================================================
SALOME_MED::long_array*
SMESH_MEDMesh_i::getGlobalNumberingIndex(SALOME_MED::medEntityMesh entity)
throw (SALOME::SALOME_Exception)
{
MESSAGE("!!!! NOT YET IMPLEMENTED !!!!!");
THROW_SALOME_CORBA_EXCEPTION("Unimplemented Method", SALOME::BAD_PARAM);
return NULL;
}
//=============================================================================
/*!
* CORBA: Returns references for the support of boundary elements of type
* entity
*/
//=============================================================================
SALOME_MED::SUPPORT_ptr
SMESH_MEDMesh_i::getBoundaryElements(SALOME_MED::medEntityMesh entity)
throw (SALOME::SALOME_Exception)
{
MESSAGE("!!!! NOT YET IMPLEMENTED !!!!!");
THROW_SALOME_CORBA_EXCEPTION("Unimplemented Method", SALOME::BAD_PARAM);
return NULL;
}
//=============================================================================
/*!
* CORBA: Returns references for the support of the skin of the support
* mySupport3D
*/
//=============================================================================
SALOME_MED::SUPPORT_ptr
SMESH_MEDMesh_i::getSkin(SALOME_MED::SUPPORT_ptr mySupport3D)
throw (SALOME::SALOME_Exception)
{
MESSAGE("!!!! NOT YET IMPLEMENTED !!!!!");
THROW_SALOME_CORBA_EXCEPTION("Unimplemented Method", SALOME::BAD_PARAM);
return NULL;
}
//============================================================================= //=============================================================================
/*! /*!
* CORBA: * CORBA:
@ -1047,3 +1140,63 @@ void SMESH_MEDMesh_i::createFamilies() throw(SALOME::SALOME_Exception)
} }
} }
}; };
//=============================================================================
/*!
* Gives informations of the considered mesh.
*/
//=============================================================================
SALOME_MED::MESH::meshInfos * SMESH_MEDMesh_i::getMeshGlobal()
throw (SALOME::SALOME_Exception)
{
MESSAGE("!!!! NOT YET IMPLEMENTED !!!!!");
THROW_SALOME_CORBA_EXCEPTION("Unimplemented Method", SALOME::BAD_PARAM);
return NULL;
}
//=============================================================================
/*!
* Gives informations on coordinates of the considered mesh.
*/
//=============================================================================
SALOME_MED::MESH::coordinateInfos * SMESH_MEDMesh_i::getCoordGlobal()
throw (SALOME::SALOME_Exception)
{
MESSAGE("!!!! NOT YET IMPLEMENTED !!!!!");
THROW_SALOME_CORBA_EXCEPTION("Unimplemented Method", SALOME::BAD_PARAM);
return NULL;
}
//=============================================================================
/*!
* Gives informations on connectivities of the considered mesh for the entity
* entity.
*/
//=============================================================================
SALOME_MED::MESH::connectivityInfos *
SMESH_MEDMesh_i::getConnectGlobal(SALOME_MED::medEntityMesh entity)
throw (SALOME::SALOME_Exception)
{
MESSAGE("!!!! NOT YET IMPLEMENTED !!!!!");
THROW_SALOME_CORBA_EXCEPTION("Unimplemented Method", SALOME::BAD_PARAM);
return NULL;
}
//=============================================================================
/*!
* Gives the type of the element number of entity entity
*/
//=============================================================================
SALOME_MED::medGeometryElement
SMESH_MEDMesh_i::getElementType(SALOME_MED::medEntityMesh entity,
CORBA::Long number)
throw (SALOME::SALOME_Exception)
{
MESSAGE("!!!! NOT YET IMPLEMENTED !!!!!");
THROW_SALOME_CORBA_EXCEPTION("Unimplemented Method", SALOME::BAD_PARAM);
return 0;
}

View File

@ -59,7 +59,7 @@ class SMESH_MEDMesh_i:
int _famIdent; int _famIdent;
map < SALOME_MED::medGeometryElement, int >_mapIndToSeqElts; map < SALOME_MED::medGeometryElement, int >_mapIndToSeqElts;
Engines::long_array_var _seq_elemId[MED_NBR_GEOMETRIE_MAILLE]; SALOME_MED::long_array_var _seq_elemId[MED_NBR_GEOMETRIE_MAILLE];
map < SALOME_MED::medEntityMesh, int >_mapNbTypes; map < SALOME_MED::medEntityMesh, int >_mapNbTypes;
map < SALOME_MED::medEntityMesh, int >_mapIndToVectTypes; map < SALOME_MED::medEntityMesh, int >_mapIndToVectTypes;
@ -77,71 +77,120 @@ class SMESH_MEDMesh_i:
// IDL Methods // IDL Methods
char *getName() throw(SALOME::SALOME_Exception); char *getName() throw(SALOME::SALOME_Exception);
CORBA::Long getSpaceDimension() throw(SALOME::SALOME_Exception); CORBA::Long getSpaceDimension() throw(SALOME::SALOME_Exception);
CORBA::Long getMeshDimension() throw(SALOME::SALOME_Exception); CORBA::Long getMeshDimension() throw(SALOME::SALOME_Exception);
char *getCoordinateSystem() throw(SALOME::SALOME_Exception); CORBA::Boolean getIsAGrid() throw (SALOME::SALOME_Exception);
Engines::double_array * getCoordinates(SALOME_MED::medModeSwitch typeSwitch)
CORBA::Boolean
existConnectivity(SALOME_MED::medConnectivity connectivityType,
SALOME_MED::medEntityMesh entity)
throw (SALOME::SALOME_Exception); throw (SALOME::SALOME_Exception);
Engines::string_array * getCoordinatesNames()
char *getCoordinatesSystem() throw(SALOME::SALOME_Exception);
CORBA::Double getCoordinate(CORBA::Long Number, CORBA::Long Axis)
throw (SALOME::SALOME_Exception); throw (SALOME::SALOME_Exception);
Engines::string_array * getCoordinatesUnits()
SALOME_MED::double_array * getCoordinates(SALOME_MED::medModeSwitch typeSwitch)
throw(SALOME::SALOME_Exception); throw(SALOME::SALOME_Exception);
SALOME_MED::string_array * getCoordinatesNames()
throw(SALOME::SALOME_Exception);
SALOME_MED::string_array * getCoordinatesUnits()
throw(SALOME::SALOME_Exception);
CORBA::Long getNumberOfNodes() throw(SALOME::SALOME_Exception); CORBA::Long getNumberOfNodes() throw(SALOME::SALOME_Exception);
CORBA::Long getNumberOfTypes(SALOME_MED::medEntityMesh entity) CORBA::Long getNumberOfTypes(SALOME_MED::medEntityMesh entity)
throw(SALOME::SALOME_Exception); throw(SALOME::SALOME_Exception);
SALOME_MED::medGeometryElement_array * SALOME_MED::medGeometryElement_array *
getTypes(SALOME_MED::medEntityMesh entity) throw(SALOME:: getTypes(SALOME_MED::medEntityMesh entity) throw(SALOME::
SALOME_Exception); SALOME_Exception);
SALOME_MED::medGeometryElement
getElementType(SALOME_MED::medEntityMesh entity,
CORBA::Long number)
throw (SALOME::SALOME_Exception);
CORBA::Long getNumberOfElements(SALOME_MED::medEntityMesh entity, CORBA::Long getNumberOfElements(SALOME_MED::medEntityMesh entity,
SALOME_MED::medGeometryElement geomElement) SALOME_MED::medGeometryElement geomElement)
throw(SALOME::SALOME_Exception); throw(SALOME::SALOME_Exception);
Engines::long_array * getConnectivity(SALOME_MED::medModeSwitch typeSwitch,
SALOME_MED::long_array *
getConnectivity(SALOME_MED::medModeSwitch typeSwitch,
SALOME_MED::medConnectivity mode, SALOME_MED::medConnectivity mode,
SALOME_MED::medEntityMesh entity, SALOME_MED::medEntityMesh entity,
SALOME_MED::medGeometryElement geomElement) SALOME_MED::medGeometryElement geomElement)
throw(SALOME::SALOME_Exception); throw(SALOME::SALOME_Exception);
Engines::long_array * getConnectivityIndex(SALOME_MED::medConnectivity mode,
SALOME_MED::medEntityMesh entity) throw(SALOME::SALOME_Exception); SALOME_MED::long_array *
getConnectivityIndex(SALOME_MED::medConnectivity mode,
SALOME_MED::medEntityMesh entity)
throw(SALOME::SALOME_Exception);
SALOME_MED::long_array*
getGlobalNumberingIndex(SALOME_MED::medEntityMesh entity)
throw (SALOME::SALOME_Exception);
CORBA::Long getElementNumber(SALOME_MED::medConnectivity mode, CORBA::Long getElementNumber(SALOME_MED::medConnectivity mode,
SALOME_MED::medEntityMesh entity, SALOME_MED::medEntityMesh entity,
SALOME_MED::medGeometryElement type, SALOME_MED::medGeometryElement type,
const Engines::long_array & connectivity) const SALOME_MED::long_array & connectivity)
throw(SALOME::SALOME_Exception); throw(SALOME::SALOME_Exception);
Engines::long_array * SALOME_MED::long_array *
getReverseConnectivity(SALOME_MED::medConnectivity mode) throw(SALOME:: getReverseConnectivity(SALOME_MED::medConnectivity mode)
SALOME_Exception); throw(SALOME::SALOME_Exception);
Engines::long_array *
SALOME_MED::long_array *
getReverseConnectivityIndex(SALOME_MED:: getReverseConnectivityIndex(SALOME_MED::
medConnectivity mode) throw(SALOME::SALOME_Exception); medConnectivity mode) throw(SALOME::SALOME_Exception);
// Family and Group // Family and Group
CORBA::Long getNumberOfFamilies(SALOME_MED::medEntityMesh entity) CORBA::Long getNumberOfFamilies(SALOME_MED::medEntityMesh entity)
throw(SALOME::SALOME_Exception); throw(SALOME::SALOME_Exception);
CORBA::Long getNumberOfGroups(SALOME_MED::medEntityMesh entity) CORBA::Long getNumberOfGroups(SALOME_MED::medEntityMesh entity)
throw(SALOME::SALOME_Exception); throw(SALOME::SALOME_Exception);
SALOME_MED::Family_array * getFamilies(SALOME_MED::medEntityMesh entity)
SALOME_MED::Family_array *
getFamilies(SALOME_MED::medEntityMesh entity)
throw(SALOME::SALOME_Exception); throw(SALOME::SALOME_Exception);
SALOME_MED::FAMILY_ptr getFamily(SALOME_MED::medEntityMesh entity, SALOME_MED::FAMILY_ptr getFamily(SALOME_MED::medEntityMesh entity,
CORBA::Long i) throw(SALOME::SALOME_Exception); CORBA::Long i) throw(SALOME::SALOME_Exception);
SALOME_MED::Group_array * getGroups(SALOME_MED::medEntityMesh entity) SALOME_MED::Group_array * getGroups(SALOME_MED::medEntityMesh entity)
throw(SALOME::SALOME_Exception); throw(SALOME::SALOME_Exception);
SALOME_MED::GROUP_ptr getGroup(SALOME_MED::medEntityMesh entity, SALOME_MED::GROUP_ptr getGroup(SALOME_MED::medEntityMesh entity,
CORBA::Long i) throw(SALOME::SALOME_Exception); CORBA::Long i) throw(SALOME::SALOME_Exception);
//
SALOME_MED::SUPPORT_ptr
getBoundaryElements(SALOME_MED::medEntityMesh entity)
throw (SALOME::SALOME_Exception);
SALOME_MED::SUPPORT_ptr getSkin(SALOME_MED::SUPPORT_ptr mySupport3D)
throw (SALOME::SALOME_Exception);
SALOME_MED::FIELD_ptr getVolume(SALOME_MED::SUPPORT_ptr mySupport) SALOME_MED::FIELD_ptr getVolume(SALOME_MED::SUPPORT_ptr mySupport)
throw(SALOME::SALOME_Exception); throw(SALOME::SALOME_Exception);
SALOME_MED::FIELD_ptr getArea(SALOME_MED::SUPPORT_ptr mySupport) SALOME_MED::FIELD_ptr getArea(SALOME_MED::SUPPORT_ptr mySupport)
throw(SALOME::SALOME_Exception); throw(SALOME::SALOME_Exception);
SALOME_MED::FIELD_ptr getLength(SALOME_MED::SUPPORT_ptr mySupport) SALOME_MED::FIELD_ptr getLength(SALOME_MED::SUPPORT_ptr mySupport)
throw(SALOME::SALOME_Exception); throw(SALOME::SALOME_Exception);
SALOME_MED::FIELD_ptr getNormal(SALOME_MED::SUPPORT_ptr mySupport) SALOME_MED::FIELD_ptr getNormal(SALOME_MED::SUPPORT_ptr mySupport)
throw(SALOME::SALOME_Exception); throw(SALOME::SALOME_Exception);
SALOME_MED::FIELD_ptr getBarycenter(SALOME_MED::SUPPORT_ptr mySupport) SALOME_MED::FIELD_ptr getBarycenter(SALOME_MED::SUPPORT_ptr mySupport)
throw(SALOME::SALOME_Exception); throw(SALOME::SALOME_Exception);
SALOME_MED::FIELD_ptr getNeighbourhood(SALOME_MED::SUPPORT_ptr mySupport) SALOME_MED::FIELD_ptr getNeighbourhood(SALOME_MED::SUPPORT_ptr mySupport)
throw(SALOME::SALOME_Exception); throw(SALOME::SALOME_Exception);
@ -159,6 +208,16 @@ class SMESH_MEDMesh_i:
// Cuisine interne // Cuisine interne
CORBA::Long getCorbaIndex() throw(SALOME::SALOME_Exception); CORBA::Long getCorbaIndex() throw(SALOME::SALOME_Exception);
SALOME_MED::MESH::meshInfos * getMeshGlobal()
throw (SALOME::SALOME_Exception);
SALOME_MED::MESH::coordinateInfos * getCoordGlobal()
throw (SALOME::SALOME_Exception);
SALOME_MED::MESH::connectivityInfos *
getConnectGlobal(SALOME_MED::medEntityMesh entity)
throw (SALOME::SALOME_Exception);
// //
void calculeNbElts() throw(SALOME::SALOME_Exception); void calculeNbElts() throw(SALOME::SALOME_Exception);
void createFamilies() throw(SALOME::SALOME_Exception); void createFamilies() throw(SALOME::SALOME_Exception);

View File

@ -293,7 +293,7 @@ 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) SALOME_MED::medGeometryElement geomElement) throw(SALOME::SALOME_Exception)
{ {
if (_subMeshDS==NULL) if (_subMeshDS==NULL)
@ -304,7 +304,7 @@ Engines::long_array * SMESH_MEDSupport_i::getNumber(
if (geomElement != SALOME_MED::MED_NONE) if (geomElement != SALOME_MED::MED_NONE)
THROW_SALOME_CORBA_EXCEPTION("Not implemented", SALOME::BAD_PARAM); 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; int i = 0;
myseq->length(_subMeshDS->NbNodes()); myseq->length(_subMeshDS->NbNodes());
@ -330,12 +330,12 @@ Engines::long_array * SMESH_MEDSupport_i::getNumber(
*/ */
//============================================================================= //=============================================================================
Engines::long_array * SALOME_MED::long_array *
SMESH_MEDSupport_i::getNumberIndex()throw(SALOME::SALOME_Exception) SMESH_MEDSupport_i::getNumberIndex()throw(SALOME::SALOME_Exception)
{ {
MESSAGE("Not implemented for SMESH_i"); MESSAGE("Not implemented for SMESH_i");
THROW_SALOME_CORBA_EXCEPTION("Not Implemented", SALOME::BAD_PARAM); THROW_SALOME_CORBA_EXCEPTION("Not Implemented", SALOME::BAD_PARAM);
return 0; return NULL;
} }
//============================================================================= //=============================================================================
@ -344,9 +344,57 @@ Engines::long_array *
*/ */
//============================================================================= //=============================================================================
CORBA::Long SMESH_MEDSupport_i::getNumberOfGaussPoints(SALOME_MED:: CORBA::Long SMESH_MEDSupport_i::getNumberOfGaussPoint(SALOME_MED::
medGeometryElement geomElement) throw(SALOME::SALOME_Exception) medGeometryElement geomElement) throw(SALOME::SALOME_Exception)
{ {
MESSAGE("Not implemented for SMESH_i"); MESSAGE("Not implemented for SMESH_i");
return 0; 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;
}

View File

@ -56,16 +56,36 @@ class SMESH_MEDSupport_i:
SALOME_MED::MESH_ptr getMesh() throw(SALOME::SALOME_Exception); SALOME_MED::MESH_ptr getMesh() throw(SALOME::SALOME_Exception);
CORBA::Boolean isOnAllElements() throw(SALOME::SALOME_Exception); CORBA::Boolean isOnAllElements() throw(SALOME::SALOME_Exception);
SALOME_MED::medEntityMesh getEntity() throw(SALOME::SALOME_Exception); SALOME_MED::medEntityMesh getEntity() throw(SALOME::SALOME_Exception);
CORBA::Long getNumberOfElements(SALOME_MED::medGeometryElement geomElement) CORBA::Long
getNumberOfElements(SALOME_MED::medGeometryElement geomElement)
throw(SALOME::SALOME_Exception); throw(SALOME::SALOME_Exception);
Engines::long_array * getNumber(SALOME_MED::medGeometryElement geomElement)
CORBA::Long getNumberOfTypes() throw (SALOME::SALOME_Exception);
SALOME_MED::long_array *
getNumber(SALOME_MED::medGeometryElement geomElement)
throw(SALOME::SALOME_Exception); throw(SALOME::SALOME_Exception);
Engines::long_array * getNumberIndex() throw(SALOME::SALOME_Exception);
CORBA::Long getNumberOfGaussPoints(SALOME_MED:: SALOME_MED::long_array * getNumberIndex()
medGeometryElement geomElement) throw(SALOME::SALOME_Exception); throw(SALOME::SALOME_Exception);
SALOME_MED::medGeometryElement_array *
getTypes() throw(SALOME::SALOME_Exception); CORBA::Long
getNumberOfGaussPoint(SALOME_MED::medGeometryElement geomElement)
throw(SALOME::SALOME_Exception);
SALOME_MED::long_array* getNumbersOfGaussPoint()
throw (SALOME::SALOME_Exception);
SALOME_MED::medGeometryElement_array *getTypes()
throw(SALOME::SALOME_Exception);
void getBoundaryElements() throw (SALOME::SALOME_Exception);
CORBA::Long getCorbaIndex() throw(SALOME::SALOME_Exception); CORBA::Long getCorbaIndex() throw(SALOME::SALOME_Exception);
SALOME_MED::SUPPORT::supportInfos * getSupportGlobal()
throw (SALOME::SALOME_Exception);
void createSeq() throw(SALOME::SALOME_Exception); void createSeq() throw(SALOME::SALOME_Exception);
public: //public field public: //public field