Version: 6.3.1
Public Member Functions | Static Public Attributes | Protected Attributes | Static Private Attributes

MEDMEM.GMESH_i Class Reference

#include <MEDMEM_GMesh_i.hxx>

Inheritance diagram for MEDMEM.GMESH_i:
Inheritance graph

Public Member Functions

 GMESH_i ()
 GMESH_i (::MEDMEM::GMESH *const m)
 GMESH_i (GMESH_i &m)
 ~GMESH_i ()
char * getName () throw (SALOME::SALOME_Exception)
CORBA::Long getSpaceDimension () throw (SALOME::SALOME_Exception)
CORBA::Long getMeshDimension () throw (SALOME::SALOME_Exception)
CORBA::Boolean getIsAGrid () throw (SALOME::SALOME_Exception)
char * getCoordinatesSystem () throw (SALOME::SALOME_Exception)
SALOME_TYPES::ListOfString * getCoordinatesNames () throw (SALOME::SALOME_Exception)
SALOME_TYPES::ListOfString * getCoordinatesUnits () throw (SALOME::SALOME_Exception)
CORBA::Long getNumberOfNodes () throw (SALOME::SALOME_Exception)
CORBA::Long getNumberOfTypes (SALOME_MED::medEntityMesh entity) throw (SALOME::SALOME_Exception)
SALOME_MED::medGeometryElement_arraygetTypes (SALOME_MED::medEntityMesh entity) throw (SALOME::SALOME_Exception)
SALOME_MED::medGeometryElement getElementType (SALOME_MED::medEntityMesh entity, CORBA::Long number) throw (SALOME::SALOME_Exception)
CORBA::Long getNumberOfElements (SALOME_MED::medEntityMesh entity, SALOME_MED::medGeometryElement geomElement) throw (SALOME::SALOME_Exception)
CORBA::Long getNumberOfFamilies (SALOME_MED::medEntityMesh entity) throw (SALOME::SALOME_Exception)
CORBA::Long getNumberOfGroups (SALOME_MED::medEntityMesh entity) throw (SALOME::SALOME_Exception)
SALOME_MED::Family_arraygetFamilies (SALOME_MED::medEntityMesh entity) throw (SALOME::SALOME_Exception)
SALOME_MED::FAMILY_ptr getFamily (SALOME_MED::medEntityMesh entity, CORBA::Long i) throw (SALOME::SALOME_Exception)
SALOME_MED::Group_arraygetGroups (SALOME_MED::medEntityMesh entity) throw (SALOME::SALOME_Exception)
SALOME_MED::GROUP_ptr getGroup (SALOME_MED::medEntityMesh entity, CORBA::Long i) throw (SALOME::SALOME_Exception)
SALOME_MED::SUPPORT_ptr getBoundaryElements (SALOME_MED::medEntityMesh entity) throw (SALOME::SALOME_Exception)
SALOME_MED::SUPPORT_ptr getSupportOnAll (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) throw (SALOME::SALOME_Exception)
SALOME_MED::FIELD_ptr getArea (SALOME_MED::SUPPORT_ptr mySupport) throw (SALOME::SALOME_Exception)
SALOME_MED::FIELD_ptr getLength (SALOME_MED::SUPPORT_ptr mySupport) throw (SALOME::SALOME_Exception)
SALOME_MED::FIELD_ptr getNormal (SALOME_MED::SUPPORT_ptr mySupport) throw (SALOME::SALOME_Exception)
SALOME_MED::FIELD_ptr getBarycenter (SALOME_MED::SUPPORT_ptr mySupport) throw (SALOME::SALOME_Exception)
SALOME_MED::FIELD_ptr getNeighbourhood (SALOME_MED::SUPPORT_ptr mySupport) throw (SALOME::SALOME_Exception)
SALOME_MED::MESH_ptr convertInMESH () throw (SALOME::SALOME_Exception)
 Converts this GMESH into MESH.
void addInStudy (SALOMEDS::Study_ptr myStudy, SALOME_MED::GMESH_ptr myIor) throw (SALOME::SALOME_Exception, SALOMEDS::StudyBuilder::LockProtection)
void addInStudy (SALOMEDS::Study_ptr myStudy, SALOME_MED::GMESH_ptr myIor, const std::string &fileName) throw (SALOME::SALOME_Exception, SALOMEDS::StudyBuilder::LockProtection)
CORBA::Long addDriver (SALOME_MED::medDriverTypes driverType, const char *fileName, const char *meshName) throw (SALOME::SALOME_Exception)
void rmDriver (CORBA::Long i) throw (SALOME::SALOME_Exception)
void read (CORBA::Long i) throw (SALOME::SALOME_Exception)
void write (CORBA::Long i, const char *driverMeshName) throw (SALOME::SALOME_Exception)
CORBA::Long getCorbaIndex () throw (SALOME::SALOME_Exception)
::MEDMEM::GMESHconstructConstMesh () const
SALOME_MED::GMESH::meshInfosgetMeshGlobal () throw (SALOME::SALOME_Exception)
SALOME_MED::GMESH::coordinateInfosgetCoordGlobal () throw (SALOME::SALOME_Exception)
CORBA::Boolean areEquals (SALOME_MED::GMESH_ptr other)

Static Public Attributes

static std::map< int,::MEDMEM::GMESH * > meshMap

Protected Attributes

::MEDMEM::GMESH *const _mesh
const int _corbaIndex
std::string _meshId

Static Private Attributes

static int meshIndex = 0

Constructor & Destructor Documentation

GMESH_i::GMESH_i ( )
GMESH_i::GMESH_i ( ::MEDMEM::GMESH *const  m)
GMESH_i::GMESH_i ( GMESH_i m)
GMESH_i::~GMESH_i ( )

Member Function Documentation

char * GMESH_i::getName ( ) throw (SALOME::SALOME_Exception)
CORBA::Long GMESH_i::getSpaceDimension ( ) throw (SALOME::SALOME_Exception)

CORBA: Accessor for Space Dimension

References MEDMEM.GMESH_i._mesh, MEDMEM.GMESH.getSpaceDimension(), MESSAGE, and MEDMEM.MEDEXCEPTION.what().

CORBA::Long GMESH_i::getMeshDimension ( ) throw (SALOME::SALOME_Exception)

CORBA: Accessor for Mesh Dimension

References MEDMEM.GMESH_i._mesh, MEDMEM.GMESH.getMeshDimension(), MESSAGE, and MEDMEM.MEDEXCEPTION.what().

CORBA::Boolean GMESH_i::getIsAGrid ( ) throw (SALOME::SALOME_Exception)

CORBA: boolean indicating if mesh is a Grid

References MEDMEM.GMESH_i._mesh, MEDMEM.GMESH.getIsAGrid(), MESSAGE, and MEDMEM.MEDEXCEPTION.what().

char * GMESH_i::getCoordinatesSystem ( ) throw (SALOME::SALOME_Exception)

CORBA: Accessor for Coordinates System

References MEDMEM.GMESH_i._mesh, MEDMEM.GMESH.getCoordinatesSystem(), MESSAGE, and MEDMEM.MEDEXCEPTION.what().

SALOME_TYPES::ListOfString * GMESH_i::getCoordinatesNames ( ) throw (SALOME::SALOME_Exception)
SALOME_TYPES::ListOfString * GMESH_i::getCoordinatesUnits ( ) throw (SALOME::SALOME_Exception)
CORBA::Long GMESH_i::getNumberOfNodes ( ) throw (SALOME::SALOME_Exception)

CORBA: Accessor for Number of Nodes

References MEDMEM.GMESH_i._mesh, MEDMEM.GMESH.getNumberOfNodes(), MESSAGE, and MEDMEM.MEDEXCEPTION.what().

CORBA::Long GMESH_i::getNumberOfTypes ( SALOME_MED::medEntityMesh  entity) throw (SALOME::SALOME_Exception)

CORBA: Accessor for number of Types

References convertIdlEntToMedEnt(), med_opsupp_test.entity, MESSAGE, and MEDMEM.MEDEXCEPTION.what().

SALOME_MED::medGeometryElement_array * GMESH_i::getTypes ( SALOME_MED::medEntityMesh  entity) throw (SALOME::SALOME_Exception)

CORBA: Accessor for existing geometry element types Not implemented for MED_ALL_ENTITIES

References convertIdlEntToMedEnt(), convertMedEltToIdlElt(), med_opsupp_test.entity, SALOME_MED.MED_ALL_ENTITIES, MESSAGE, and MEDMEM.MEDEXCEPTION.what().

SALOME_MED::medGeometryElement GMESH_i::getElementType ( SALOME_MED::medEntityMesh  entity,
CORBA::Long  number 
) throw (SALOME::SALOME_Exception)

CORBA: Accessor for existing geometry element types

References convertIdlEntToMedEnt(), med_opsupp_test.entity, MESSAGE, batchmode_medcorba_test.number, and MEDMEM.MEDEXCEPTION.what().

CORBA::Long GMESH_i::getNumberOfElements ( SALOME_MED::medEntityMesh  entity,
SALOME_MED::medGeometryElement  geomElement 
) throw (SALOME::SALOME_Exception)

CORBA: Returns number of elements of type medGeometryElement Not implemented for MED_ALL_ELEMENTS implemented for MED_ALL_ENTITIES

References convertIdlEltToMedElt(), convertIdlEntToMedEnt(), med_opsupp_test.entity, MESSAGE, verifieParam(), and MEDMEM.MEDEXCEPTION.what().

CORBA::Long GMESH_i::getNumberOfFamilies ( SALOME_MED::medEntityMesh  entity) throw (SALOME::SALOME_Exception)

CORBA: Returns number of families within the mesh

References convertIdlEntToMedEnt(), med_opsupp_test.entity, MESSAGE, and MEDMEM.MEDEXCEPTION.what().

CORBA::Long GMESH_i::getNumberOfGroups ( SALOME_MED::medEntityMesh  entity) throw (SALOME::SALOME_Exception)

CORBA: Returns number of groups within the mesh

References convertIdlEntToMedEnt(), med_opsupp_test.entity, MESSAGE, and MEDMEM.MEDEXCEPTION.what().

SALOME_MED::Family_array * GMESH_i::getFamilies ( SALOME_MED::medEntityMesh  entity) throw (SALOME::SALOME_Exception)

CORBA: Returns references for families within the mesh

References convertIdlEntToMedEnt(), med_opsupp_test.entity, testDriverAscii.f1, MESSAGE, and MEDMEM.MEDEXCEPTION.what().

SALOME_MED::FAMILY_ptr GMESH_i::getFamily ( SALOME_MED::medEntityMesh  entity,
CORBA::Long  i 
) throw (SALOME::SALOME_Exception)

CORBA: Returns references for family i within the mesh

References convertIdlEntToMedEnt(), med_opsupp_test.entity, testDriverAscii.f1, MESSAGE, and MEDMEM.MEDEXCEPTION.what().

SALOME_MED::Group_array * GMESH_i::getGroups ( SALOME_MED::medEntityMesh  entity) throw (SALOME::SALOME_Exception)
SALOME_MED::GROUP_ptr GMESH_i::getGroup ( SALOME_MED::medEntityMesh  entity,
CORBA::Long  i 
) throw (SALOME::SALOME_Exception)

CORBA: Returns references for group i within the mesh

References convertIdlEntToMedEnt(), med_opsupp_test.entity, testDriverAscii.f1, MESSAGE, and MEDMEM.MEDEXCEPTION.what().

SALOME_MED::SUPPORT_ptr GMESH_i::getBoundaryElements ( SALOME_MED::medEntityMesh  entity) throw (SALOME::SALOME_Exception)
SALOME_MED::SUPPORT_ptr GMESH_i::getSupportOnAll ( SALOME_MED::medEntityMesh  entity) throw (SALOME::SALOME_Exception)
SALOME_MED::SUPPORT_ptr GMESH_i::getSkin ( SALOME_MED::SUPPORT_ptr  mySupport3D) throw (SALOME::SALOME_Exception)
SALOME_MED::FIELD_ptr GMESH_i::getVolume ( SALOME_MED::SUPPORT_ptr  mySupport) throw (SALOME::SALOME_Exception)
SALOME_MED::FIELD_ptr GMESH_i::getArea ( SALOME_MED::SUPPORT_ptr  mySupport) throw (SALOME::SALOME_Exception)
SALOME_MED::FIELD_ptr GMESH_i::getLength ( SALOME_MED::SUPPORT_ptr  mySupport) throw (SALOME::SALOME_Exception)
SALOME_MED::FIELD_ptr GMESH_i::getNormal ( SALOME_MED::SUPPORT_ptr  mySupport) throw (SALOME::SALOME_Exception)
SALOME_MED::FIELD_ptr GMESH_i::getBarycenter ( SALOME_MED::SUPPORT_ptr  mySupport) throw (SALOME::SALOME_Exception)
SALOME_MED::FIELD_ptr GMESH_i::getNeighbourhood ( SALOME_MED::SUPPORT_ptr  mySupport) throw (SALOME::SALOME_Exception)

CORBA:

References MESSAGE.

SALOME_MED::MESH_ptr GMESH_i::convertInMESH ( ) throw (SALOME::SALOME_Exception)
void GMESH_i::addInStudy ( SALOMEDS::Study_ptr  myStudy,
SALOME_MED::GMESH_ptr  myIor 
) throw (SALOME::SALOME_Exception, SALOMEDS::StudyBuilder::LockProtection)

CORBA: add the Mesh in the StudyManager

References ASSERT, init, MESSAGE, and TestMedCorba1.orb.

void MEDMEM.GMESH_i.addInStudy ( SALOMEDS::Study_ptr  myStudy,
SALOME_MED::GMESH_ptr  myIor,
const std::string &  fileName 
) throw (SALOME::SALOME_Exception, SALOMEDS::StudyBuilder::LockProtection)
CORBA::Long GMESH_i::addDriver ( SALOME_MED::medDriverTypes  driverType,
const char *  fileName,
const char *  meshName 
) throw (SALOME::SALOME_Exception)
void GMESH_i::rmDriver ( CORBA::Long  i) throw (SALOME::SALOME_Exception)

CORBA : release driver

References MESSAGE, and MEDMEM.MEDEXCEPTION.what().

void GMESH_i::read ( CORBA::Long  i) throw (SALOME::SALOME_Exception)

CORBA: read mesh in a med file

References MESSAGE, and MEDMEM.MEDEXCEPTION.what().

void GMESH_i::write ( CORBA::Long  i,
const char *  driverMeshName 
) throw (SALOME::SALOME_Exception)

CORBA: write mesh in a med file

References MESSAGE, and MEDMEM.MEDEXCEPTION.what().

CORBA::Long GMESH_i::getCorbaIndex ( ) throw (SALOME::SALOME_Exception)

CORBA: Accessor for corbaindex cuisine interne

References MEDMEM.GMESH_i._corbaIndex, and MEDMEM.GMESH_i._mesh.

GMESH * GMESH_i::constructConstMesh ( ) const

Internal Method in order to have a const ptr

Reimplemented in MEDMEM.MESH_i.

SALOME_MED::GMESH::meshInfos * GMESH_i::getMeshGlobal ( ) throw (SALOME::SALOME_Exception)
SALOME_MED::GMESH::coordinateInfos * GMESH_i::getCoordGlobal ( ) throw (SALOME::SALOME_Exception)
CORBA::Boolean GMESH_i::areEquals ( SALOME_MED::GMESH_ptr  other)

CORBA : Test if this and other aggregate the same MESH using the MESH.operator==

References MEDMEM.GMESH_i._mesh.


Field Documentation

map< int,::GMESH * > GMESH_i::meshMap [static]
int GMESH_i::meshIndex = 0 [static, private]
::MEDMEM::GMESH* const MEDMEM.GMESH_i._mesh [protected]
const int MEDMEM.GMESH_i._corbaIndex [protected]
std::string MEDMEM.GMESH_i._meshId [protected]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS