Back to index

salome-smesh  6.5.0
SMESH_MEDSupport_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 // SMESH SMESH_I : idl implementation based on 'SMESH' unit's calsses
00024 // File : SMESH_MEDSupport_i.hxx
00025 // Module : SMESH
00026 //
00027 #ifndef _MED_SMESH_MEDSUPPORT_I_HXX_
00028 #define _MED_SMESH_MEDSUPPORT_I_HXX_
00029 
00030 #include "SMESH.hxx"
00031 
00032 #include <SALOMEconfig.h>
00033 #include CORBA_SERVER_HEADER(MED)
00034 #include <string>
00035 
00036 #include "SMESHDS_Mesh.hxx"
00037 #include "SMESHDS_SubMesh.hxx"
00038 #include "SMDS_MeshElement.hxx"
00039 #include "SMDS_MeshNode.hxx"
00040 
00041 #include "SMESH_MEDSupport_i.hxx"
00042 #include "SALOME_GenericObj_i.hh"
00043 class SMESH_subMesh;
00044 class SMESH_subMesh_i;
00045 
00046 class SMESH_I_EXPORT SMESH_MEDSupport_i:
00047         public virtual POA_SALOME_MED::SUPPORT, public virtual SALOME::GenericObj_i
00048 {
00049   public:
00050 
00051 // Constructors and associated internal methods
00052         SMESH_MEDSupport_i(SMESH_subMesh_i * sm,
00053                 std::string name, std::string description, SALOME_MED::medEntityMesh entity);
00054         SMESH_MEDSupport_i(const SMESH_MEDSupport_i & s);
00055 
00056 // IDL Methods
00057         char *getName() throw(SALOME::SALOME_Exception);
00058         char *getDescription() throw(SALOME::SALOME_Exception);
00059         SALOME_MED::GMESH_ptr getMesh() throw(SALOME::SALOME_Exception);
00060         CORBA::Boolean isOnAllElements() throw(SALOME::SALOME_Exception);
00061         SALOME_MED::medEntityMesh getEntity() throw(SALOME::SALOME_Exception);
00062         CORBA::Long
00063         getNumberOfElements(SALOME_MED::medGeometryElement geomElement)
00064           throw(SALOME::SALOME_Exception);
00065 
00066         CORBA::Long getNumberOfTypes() throw (SALOME::SALOME_Exception);
00067 
00068         SALOME_TYPES::ListOfLong *
00069         getNumber(SALOME_MED::medGeometryElement geomElement)
00070           throw(SALOME::SALOME_Exception);
00071 
00075         SALOME_TYPES::ListOfLong *
00076         getNumberFromFile(SALOME_MED::medGeometryElement geomElement)
00077           throw(SALOME::SALOME_Exception);
00078 
00079         SALOME_TYPES::ListOfLong * getNumberIndex()
00080           throw(SALOME::SALOME_Exception);
00081 
00082         CORBA::Long
00083         getNumberOfGaussPoint(SALOME_MED::medGeometryElement geomElement)
00084           throw(SALOME::SALOME_Exception);
00085 
00086         SALOME_TYPES::ListOfLong* getNumbersOfGaussPoint()
00087           throw (SALOME::SALOME_Exception);
00088 
00089         SALOME_MED::medGeometryElement_array *getTypes()
00090           throw(SALOME::SALOME_Exception);
00091 
00092         void getBoundaryElements() throw (SALOME::SALOME_Exception);
00093 
00094         CORBA::Long getCorbaIndex() throw(SALOME::SALOME_Exception);
00095 
00096         SALOME_MED::SUPPORT::supportInfos * getSupportGlobal()
00097           throw (SALOME::SALOME_Exception);
00098 
00099         void createSeq() throw(SALOME::SALOME_Exception);
00100 
00101   public: //public field
00102         SMESH_subMesh_i * _subMesh_i;
00103         ::SMESH_subMesh * _subMesh;
00104 
00105         std::string _name;
00106         std::string _description;
00107         bool _isOnAllElements;
00108         bool _seqNumber;
00109         int _seqLength;
00110 
00111         SALOME_MED::medEntityMesh _entity;
00112         SALOME_MED::medGeometryElement * _geometricType;
00113         int _numberOfGeometricType;
00114 
00115   protected:
00116         SMESH_MEDSupport_i();
00117         ~SMESH_MEDSupport_i();
00118 };
00119 
00120 #endif /* _MED_MEDSUPPORT_I_HXX_ */