Back to index

salome-med  6.5.0
CONNECTIVITYClient.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 #ifndef _CONNECTIVITY_CLIENT_HXX
00024 #define _CONNECTIVITY_CLIENT_HXX
00025 
00026 #include <SALOMEconfig.h>
00027 #include "MEDMEM_Connectivity.hxx"
00028 #include CORBA_CLIENT_HEADER(MED)
00029 
00030 namespace MEDMEM {
00031   class CONNECTIVITYClient : public CONNECTIVITY {
00032 
00033   protected:
00034 
00035     long *_numberOfElements_client;
00036     long _totalNumberOfElements_client;
00037 
00038     mutable bool _complete;
00039     SALOME_MED::MESH_var IOR_Mesh ;
00040 
00041   public:
00042 
00043     CONNECTIVITYClient(const SALOME_MED::MESH_ptr m, 
00044                        medEntityMesh Entity=MED_CELL);
00045 
00046     virtual ~CONNECTIVITYClient();
00047 
00048     void fillCopy();
00049     void blankCopy();
00050 
00051     int getNumberOf(medEntityMesh Entity, medGeometryElement Type) const;
00052 
00053     const int * getConnectivity      (medConnectivity ConnectivityType, 
00054                                       medEntityMesh Entity,
00055                                       medGeometryElement Type) const;
00056     int         getConnectivityLength(MED_EN::medConnectivity    ConnectivityType,
00057                                       MED_EN::medEntityMesh      Entity,
00058                                       MED_EN::medGeometryElement Type) const;
00059     const int * getConnectivityIndex (medConnectivity ConnectivityType,
00060                                       medEntityMesh Entity) const;
00061 
00062     void  calculateConnectivity (medConnectivity connectivityType, 
00063                                  medEntityMesh Entity);
00064 
00065     void  updateFamily (vector<FAMILY*> myFamilies);
00066 
00067     const int * getGlobalNumberingIndex (medEntityMesh Entity) const throw (MEDEXCEPTION);
00068 
00069     bool existConnectivity(medConnectivity ConnectivityType, 
00070                            medEntityMesh Entity) const;
00071 
00072     const int* getReverseConnectivity (medConnectivity ConnectivityType, 
00073                                        medEntityMesh Entity=MED_CELL) const throw (MEDEXCEPTION);
00074 
00075     const int* getReverseConnectivityIndex (medConnectivity ConnectivityType,
00076                                             medEntityMesh Entity=MED_CELL) const throw (MEDEXCEPTION);
00077 
00078     const int* getValue (medConnectivity TypeConnectivity, 
00079                          medGeometryElement Type) const;
00080 
00081     const int* getValueIndex        (medConnectivity TypeConnectivity) const;
00082     const int* getNeighbourhood() const;
00083   };
00084 };
00085 
00086 
00087 #endif