Salome HOME
merge with the branch nadir_update_MED_v1_3_0 (branch to build the V1_3_0
[modules/smesh.git] / src / SMESH_I / SMESH_MEDMesh_i.hxx
index 73370701a5fa8eac0e2e50644517992fceea84e5..9e9814e20860342b4947b5cbb91c367b430de5c5 100644 (file)
@@ -59,7 +59,7 @@ class SMESH_MEDMesh_i:
        int _famIdent;
 
        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 >_mapIndToVectTypes;
@@ -77,71 +77,120 @@ class SMESH_MEDMesh_i:
        // IDL Methods 
        char *getName() throw(SALOME::SALOME_Exception);
        CORBA::Long getSpaceDimension() throw(SALOME::SALOME_Exception);
+
        CORBA::Long getMeshDimension() throw(SALOME::SALOME_Exception);
 
-       char *getCoordinateSystem() throw(SALOME::SALOME_Exception);
-       Engines::double_array * getCoordinates(SALOME_MED::medModeSwitch typeSwitch)
-               throw(SALOME::SALOME_Exception);
-       Engines::string_array * getCoordinatesNames()
+        CORBA::Boolean  getIsAGrid() throw (SALOME::SALOME_Exception);
+
+        CORBA::Boolean
+       existConnectivity(SALOME_MED::medConnectivity connectivityType,
+                         SALOME_MED::medEntityMesh entity)
+         throw (SALOME::SALOME_Exception);
+
+       char *getCoordinatesSystem() throw(SALOME::SALOME_Exception);
+
+        CORBA::Double getCoordinate(CORBA::Long Number, CORBA::Long Axis)
+         throw (SALOME::SALOME_Exception);
+
+       SALOME_MED::double_array * getCoordinates(SALOME_MED::medModeSwitch typeSwitch)
                throw(SALOME::SALOME_Exception);
-       Engines::string_array * getCoordinatesUnits()
+
+       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 getNumberOfTypes(SALOME_MED::medEntityMesh entity)
                throw(SALOME::SALOME_Exception);
+
        SALOME_MED::medGeometryElement_array *
                getTypes(SALOME_MED::medEntityMesh entity) throw(SALOME::
                SALOME_Exception);
 
-       CORBA::Long getNumberOfElements(SALOME_MED::medEntityMesh entity,
-               SALOME_MED::medGeometryElement geomElement)
-               throw(SALOME::SALOME_Exception);
-       Engines::long_array * getConnectivity(SALOME_MED::medModeSwitch typeSwitch,
-               SALOME_MED::medConnectivity mode,
-               SALOME_MED::medEntityMesh entity,
+        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);
-       Engines::long_array * getConnectivityIndex(SALOME_MED::medConnectivity mode,
-               SALOME_MED::medEntityMesh entity) throw(SALOME::SALOME_Exception);
+
+       SALOME_MED::long_array *
+       getConnectivity(SALOME_MED::medModeSwitch typeSwitch,
+                       SALOME_MED::medConnectivity mode,
+                       SALOME_MED::medEntityMesh entity,
+                       SALOME_MED::medGeometryElement geomElement)
+         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,
                SALOME_MED::medEntityMesh entity,
                SALOME_MED::medGeometryElement type,
-               const Engines::long_array & connectivity)
+               const SALOME_MED::long_array & connectivity)
                throw(SALOME::SALOME_Exception);
 
-       Engines::long_array *
-               getReverseConnectivity(SALOME_MED::medConnectivity mode) throw(SALOME::
-               SALOME_Exception);
-       Engines::long_array *
+       SALOME_MED::long_array *
+               getReverseConnectivity(SALOME_MED::medConnectivity mode)
+         throw(SALOME::SALOME_Exception);
+
+       SALOME_MED::long_array *
                getReverseConnectivityIndex(SALOME_MED::
                medConnectivity mode) throw(SALOME::SALOME_Exception);
 
        // Family and Group
        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_array * getFamilies(SALOME_MED::medEntityMesh entity)
-               throw(SALOME::SALOME_Exception);
+
+       SALOME_MED::Family_array *
+       getFamilies(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_array * getGroups(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 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);
 
@@ -159,6 +208,16 @@ class SMESH_MEDMesh_i:
        //                    Cuisine interne
        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 createFamilies() throw(SALOME::SALOME_Exception);