1 // Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 // SMESH SMESH_I : idl implementation based on 'SMESH' unit's calsses
24 // File : SMESH_MEDSupport_i.hxx
27 #ifndef _MED_SMESH_MEDSUPPORT_I_HXX_
28 #define _MED_SMESH_MEDSUPPORT_I_HXX_
32 #include <SALOMEconfig.h>
33 #include CORBA_SERVER_HEADER(MED)
36 #include "SMESHDS_Mesh.hxx"
37 #include "SMESHDS_SubMesh.hxx"
38 #include "SMDS_MeshElement.hxx"
39 #include "SMDS_MeshNode.hxx"
41 #include "SMESH_MEDSupport_i.hxx"
42 #include "SALOME_GenericObj_i.hh"
43 class SMESH_subMesh_i;
45 class SMESH_I_EXPORT SMESH_MEDSupport_i:
46 public virtual POA_SALOME_MED::SUPPORT, public virtual SALOME::GenericObj_i
50 // Constructors and associated internal methods
51 SMESH_MEDSupport_i(SMESH_subMesh_i * sm,
52 std::string name, std::string description, SALOME_MED::medEntityMesh entity);
53 SMESH_MEDSupport_i(const SMESH_MEDSupport_i & s);
56 char *getName() throw(SALOME::SALOME_Exception);
57 char *getDescription() throw(SALOME::SALOME_Exception);
58 SALOME_MED::GMESH_ptr getMesh() throw(SALOME::SALOME_Exception);
59 CORBA::Boolean isOnAllElements() throw(SALOME::SALOME_Exception);
60 SALOME_MED::medEntityMesh getEntity() throw(SALOME::SALOME_Exception);
62 getNumberOfElements(SALOME_MED::medGeometryElement geomElement)
63 throw(SALOME::SALOME_Exception);
65 CORBA::Long getNumberOfTypes() throw (SALOME::SALOME_Exception);
67 SALOME_TYPES::ListOfLong *
68 getNumber(SALOME_MED::medGeometryElement geomElement)
69 throw(SALOME::SALOME_Exception);
72 * Same function as getNumber.
74 SALOME_TYPES::ListOfLong *
75 getNumberFromFile(SALOME_MED::medGeometryElement geomElement)
76 throw(SALOME::SALOME_Exception);
78 SALOME_TYPES::ListOfLong * getNumberIndex()
79 throw(SALOME::SALOME_Exception);
82 getNumberOfGaussPoint(SALOME_MED::medGeometryElement geomElement)
83 throw(SALOME::SALOME_Exception);
85 SALOME_TYPES::ListOfLong* getNumbersOfGaussPoint()
86 throw (SALOME::SALOME_Exception);
88 SALOME_MED::medGeometryElement_array *getTypes()
89 throw(SALOME::SALOME_Exception);
91 void getBoundaryElements() throw (SALOME::SALOME_Exception);
93 CORBA::Long getCorbaIndex() throw(SALOME::SALOME_Exception);
95 SALOME_MED::SUPPORT::supportInfos * getSupportGlobal()
96 throw (SALOME::SALOME_Exception);
98 void createSeq() throw(SALOME::SALOME_Exception);
100 public: //public field
101 const SMESHDS_SubMesh * _subMeshDS;
102 ::SMESH_subMesh_i * _subMesh_i;
104 SMESHDS_Mesh * _meshDS;
106 std::string _description;
107 bool _isOnAllElements;
111 SALOME_MED::medEntityMesh _entity;
112 SALOME_MED::medGeometryElement * _geometricType;
113 int _numberOfGeometricType;
116 SMESH_MEDSupport_i();
117 ~SMESH_MEDSupport_i();
120 #endif /* _MED_MEDSUPPORT_I_HXX_ */