Version: 6.3.1

src/SMESH_I/SMESH_MEDSupport_i.hxx

Go to the documentation of this file.
00001 // Copyright (C) 2007-2011  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_i;
00044 
00045 class SMESH_I_EXPORT SMESH_MEDSupport_i:
00046         public virtual POA_SALOME_MED::SUPPORT, public virtual SALOME::GenericObj_i
00047 {
00048   public:
00049 
00050 // Constructors and associated internal methods
00051         SMESH_MEDSupport_i(SMESH_subMesh_i * sm,
00052                 std::string name, std::string description, SALOME_MED::medEntityMesh entity);
00053         SMESH_MEDSupport_i(const SMESH_MEDSupport_i & s);
00054 
00055 // IDL Methods
00056         char *getName() throw(SALOME::SALOME_Exception);
00057         char *getDescription() throw(SALOME::SALOME_Exception);
00058         SALOME_MED::GMESH_ptr getMesh() throw(SALOME::SALOME_Exception);
00059         CORBA::Boolean isOnAllElements() throw(SALOME::SALOME_Exception);
00060         SALOME_MED::medEntityMesh getEntity() throw(SALOME::SALOME_Exception);
00061         CORBA::Long
00062         getNumberOfElements(SALOME_MED::medGeometryElement geomElement)
00063           throw(SALOME::SALOME_Exception);
00064 
00065         CORBA::Long getNumberOfTypes() throw (SALOME::SALOME_Exception);
00066 
00067         SALOME_TYPES::ListOfLong *
00068         getNumber(SALOME_MED::medGeometryElement geomElement)
00069           throw(SALOME::SALOME_Exception);
00070 
00074         SALOME_TYPES::ListOfLong *
00075         getNumberFromFile(SALOME_MED::medGeometryElement geomElement)
00076           throw(SALOME::SALOME_Exception);
00077 
00078         SALOME_TYPES::ListOfLong * getNumberIndex()
00079           throw(SALOME::SALOME_Exception);
00080 
00081         CORBA::Long
00082         getNumberOfGaussPoint(SALOME_MED::medGeometryElement geomElement)
00083           throw(SALOME::SALOME_Exception);
00084 
00085         SALOME_TYPES::ListOfLong* getNumbersOfGaussPoint()
00086           throw (SALOME::SALOME_Exception);
00087 
00088         SALOME_MED::medGeometryElement_array *getTypes()
00089           throw(SALOME::SALOME_Exception);
00090 
00091         void getBoundaryElements() throw (SALOME::SALOME_Exception);
00092 
00093         CORBA::Long getCorbaIndex() throw(SALOME::SALOME_Exception);
00094 
00095         SALOME_MED::SUPPORT::supportInfos * getSupportGlobal()
00096           throw (SALOME::SALOME_Exception);
00097 
00098         void createSeq() throw(SALOME::SALOME_Exception);
00099 
00100   public: //public field
00101         const SMESHDS_SubMesh * _subMeshDS;
00102         ::SMESH_subMesh_i * _subMesh_i;
00103 
00104         SMESHDS_Mesh * _meshDS;
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_ */
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