Salome HOME
Update mail address
[modules/smesh.git] / src / SMESH_I / SMESH_MEDSupport_i.hxx
1 // SMESH SMESH_I : idl implementation based on 'SMESH' unit's calsses
2 //
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
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.
10 //
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.
15 //
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
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 //
23 //
24 // File : SMESH_MEDSupport_i.hxx
25 // Module : SMESH
26
27 #ifndef _MED_SMESH_MEDSUPPORT_I_HXX_
28 #define _MED_SMESH_MEDSUPPORT_I_HXX_
29
30 #include <SALOMEconfig.h>
31 #include CORBA_SERVER_HEADER(MED)
32 #include <string>
33
34 #include "SMESHDS_Mesh.hxx"
35 #include "SMESHDS_SubMesh.hxx"
36 #include "SMDS_MeshElement.hxx"
37 #include "SMDS_MeshNode.hxx"
38
39 #include "SMESH_MEDSupport_i.hxx"
40 #include "SALOME_GenericObj_i.hh"
41 class SMESH_subMesh_i;
42
43 class SMESH_MEDSupport_i:
44         public virtual POA_SALOME_MED::SUPPORT, public virtual SALOME::GenericObj_i
45 {
46   public:
47
48 // Constructors and associated internal methods
49         SMESH_MEDSupport_i(SMESH_subMesh_i * sm,
50                 string name, string description, SALOME_MED::medEntityMesh entity);
51         SMESH_MEDSupport_i(const SMESH_MEDSupport_i & s);
52
53 // IDL Methods
54         char *getName() throw(SALOME::SALOME_Exception);
55         char *getDescription() throw(SALOME::SALOME_Exception);
56         SALOME_MED::MESH_ptr getMesh() throw(SALOME::SALOME_Exception);
57         CORBA::Boolean isOnAllElements() throw(SALOME::SALOME_Exception);
58         SALOME_MED::medEntityMesh getEntity() throw(SALOME::SALOME_Exception);
59         CORBA::Long
60         getNumberOfElements(SALOME_MED::medGeometryElement geomElement)
61           throw(SALOME::SALOME_Exception);
62
63         CORBA::Long getNumberOfTypes() throw (SALOME::SALOME_Exception);
64
65         SALOME_MED::long_array *
66         getNumber(SALOME_MED::medGeometryElement geomElement)
67           throw(SALOME::SALOME_Exception);
68
69         SALOME_MED::long_array * getNumberIndex()
70           throw(SALOME::SALOME_Exception);
71
72         CORBA::Long
73         getNumberOfGaussPoint(SALOME_MED::medGeometryElement geomElement)
74           throw(SALOME::SALOME_Exception);
75
76         SALOME_MED::long_array* getNumbersOfGaussPoint()
77           throw (SALOME::SALOME_Exception);
78
79         SALOME_MED::medGeometryElement_array *getTypes()
80           throw(SALOME::SALOME_Exception);
81
82         void getBoundaryElements() throw (SALOME::SALOME_Exception);
83
84         CORBA::Long getCorbaIndex() throw(SALOME::SALOME_Exception);
85
86         SALOME_MED::SUPPORT::supportInfos * getSupportGlobal()
87           throw (SALOME::SALOME_Exception);
88
89         void createSeq() throw(SALOME::SALOME_Exception);
90
91   public: //public field
92         const SMESHDS_SubMesh * _subMeshDS;
93         ::SMESH_subMesh_i * _subMesh_i;
94
95         SMESHDS_Mesh * _meshDS;
96         string _name;
97         string _description;
98         bool _isOnAllElements;
99         bool _seqNumber;
100         int _seqLength;
101
102         SALOME_MED::medEntityMesh _entity;
103         SALOME_MED::medGeometryElement * _geometricType;
104         int _numberOfGeometricType;
105
106   protected:
107         SMESH_MEDSupport_i();
108         ~SMESH_MEDSupport_i();
109 };
110
111 #endif /* _MED_MEDSUPPORT_I_HXX_ */