Back to index

salome-med  6.5.0
MEDMEM_Mesh_i.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 //=============================================================================
00024 // File      : MEDMEM_Mesh_i.hxx
00025 // Project   : SALOME
00026 // Author    : EDF 
00027 // $Header: /export/home/PAL/MED_SRC/src/MEDMEM_I/MEDMEM_Mesh_i.hxx
00028 //=============================================================================
00029 //
00030 #ifndef _MED_MESH_I_HXX_
00031 #define _MED_MESH_I_HXX_
00032 
00033 #include <MEDMEM_I.hxx>
00034 
00035 #include <map>
00036 #include <string>
00037 
00038 #include <SALOMEconfig.h>
00039 #include "SALOMEMultiComm.hxx"
00040 #include "SALOME_GenericObj_i.hh"
00041 #include "MEDMEM_GMesh_i.hxx"
00042 #include CORBA_SERVER_HEADER(MED)
00043 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
00044 #include CORBA_SERVER_HEADER(SALOME_Comm)
00045 
00046 namespace MEDMEM 
00047 {
00048   class MESH;
00049   class MEDMEM_I_EXPORT MESH_i: virtual public POA_SALOME_MED::MESH,
00050                                 virtual public GMESH_i
00051   {
00052   public:
00053 
00054     // Constructors and associated internal methods
00055     MESH_i();
00056     MESH_i(::MEDMEM::MESH * const m);
00057     MESH_i(MESH_i & m);
00058     ~MESH_i();
00059 
00060     // IDL Methods 
00061     CORBA::Boolean  existConnectivity ( SALOME_MED::medConnectivity connectivityType,
00062                                         SALOME_MED::medEntityMesh entity)
00063       throw (SALOME::SALOME_Exception);
00064 
00065     SALOME_TYPES::ListOfDouble* getCoordinates(SALOME_MED::medModeSwitch typeSwitch)
00066       throw (SALOME::SALOME_Exception);
00067 
00068     SALOME::SenderDouble_ptr getSenderForCoordinates(SALOME_MED::medModeSwitch typeSwitch)
00069       throw (SALOME::SALOME_Exception);
00070 
00071     CORBA::Double  getCoordinate(CORBA::Long Number, CORBA::Long Axis)
00072       throw (SALOME::SALOME_Exception);
00073 
00074     SALOME_TYPES::ListOfLong*   getConnectivity(SALOME_MED::medConnectivity mode, 
00075                                                 SALOME_MED::medEntityMesh entity, 
00076                                                 SALOME_MED::medGeometryElement geomElement)
00077       throw (SALOME::SALOME_Exception);
00078 
00079     SALOME::SenderInt_ptr getSenderForConnectivity(SALOME_MED::medConnectivity mode, 
00080                                                    SALOME_MED::medEntityMesh entity, 
00081                                                    SALOME_MED::medGeometryElement geomElement)
00082       throw (SALOME::SALOME_Exception);
00083 
00084     SALOME_TYPES::ListOfLong*   getConnectivityIndex(SALOME_MED::medConnectivity mode,
00085                                                      SALOME_MED::medEntityMesh entity)
00086       throw (SALOME::SALOME_Exception);
00087 
00088     SALOME::SenderInt_ptr getSenderForConnectivityIndex(SALOME_MED::medConnectivity mode,
00089                                                         SALOME_MED::medEntityMesh entity,
00090                                                         SALOME_MED::medGeometryElement geomElement)
00091       throw (SALOME::SALOME_Exception);
00092 
00093     SALOME_TYPES::ListOfLong*   getGlobalNumberingIndex(SALOME_MED::medEntityMesh entity)
00094       throw (SALOME::SALOME_Exception);
00095 
00096     CORBA::Long            getElementNumber(SALOME_MED::medConnectivity mode,
00097                                             SALOME_MED::medEntityMesh entity,
00098                                             SALOME_MED::medGeometryElement type,
00099                                             const SALOME_TYPES::ListOfLong& connectivity)
00100       throw  (SALOME::SALOME_Exception);
00101 
00102     SALOME_TYPES::ListOfLong*   getReverseConnectivity(SALOME_MED::medConnectivity mode)
00103       throw (SALOME::SALOME_Exception);
00104 
00105     SALOME_TYPES::ListOfLong*   getReverseConnectivityIndex(SALOME_MED::medConnectivity mode)
00106       throw (SALOME::SALOME_Exception);
00107 
00108 
00109     //                                  Cuisine interne
00110     ::MEDMEM::MESH * constructConstMesh() const;
00111     SALOME_MED::MESH::connectivityInfos * getConnectGlobal (SALOME_MED::medEntityMesh entity)
00112       throw (SALOME::SALOME_Exception);
00113     CORBA::Boolean areEquals(SALOME_MED::MESH_ptr other);
00114   };
00115 }
00116 
00117 #endif /* _MED_MESH_I_HXX_ */