]> SALOME platform Git repositories - modules/med.git/blob - src/MEDMEM/MEDMEM_PolyhedronArray.hxx
Salome HOME
update after merging trhe branches CEA_V3_0_x, OCC_V3_1_0_a1_x, and the main
[modules/med.git] / src / MEDMEM / MEDMEM_PolyhedronArray.hxx
1 # ifndef __POLYHEDRONARRAY_H__
2 # define __POLYHEDRONARRAY_H__
3
4 #include "MEDMEM_Exception.hxx"
5 #include "MEDMEM_PointerOf.hxx"
6 #include "MEDMEM_define.hxx"
7
8 namespace MEDMEM {
9 class POLYHEDRONARRAY
10 {
11 private :
12   MED_EN::med_int   _numberOfPolyhedron;
13   MED_EN::med_int   _numberOfFaces;
14   MED_EN::med_int   _numberOfNodes;
15   PointerOf <MED_EN::med_int>   _polyhedronIndex;
16   PointerOf <MED_EN::med_int>   _facesIndex;
17   PointerOf <MED_EN::med_int>   _nodes;
18
19 public :
20   POLYHEDRONARRAY();
21   POLYHEDRONARRAY(MED_EN::med_int numberofpolyhedron,MED_EN::med_int numberoffaces,MED_EN::med_int numberofnodes);
22   POLYHEDRONARRAY(const POLYHEDRONARRAY& m);
23
24   inline  MED_EN::med_int   getNumberOfPolyhedron()     const;
25   inline  MED_EN::med_int   getNumberOfFaces()          const;
26   inline  MED_EN::med_int   getNumberOfNodes()          const;
27   inline  const MED_EN::med_int*   getPolyhedronIndex()    const;
28   inline  const MED_EN::med_int*   getFacesIndex()         const;
29   inline  const MED_EN::med_int*   getNodes()              const;
30
31   inline  void      setPolyhedronIndex(const MED_EN::med_int* polyhedronindex);
32   inline  void      setFacesIndex(const MED_EN::med_int* facesindex);
33   inline  void      setNodes(const MED_EN::med_int* nodes);
34 };
35
36 // ----------------------------------------------------------
37 //                       Methodes Inline
38 // ----------------------------------------------------------
39 inline MED_EN::med_int POLYHEDRONARRAY::getNumberOfPolyhedron() const
40 {
41   return _numberOfPolyhedron;
42 };
43 inline MED_EN::med_int POLYHEDRONARRAY::getNumberOfFaces() const
44 {
45   return _numberOfFaces;
46 };
47 inline MED_EN::med_int POLYHEDRONARRAY::getNumberOfNodes() const
48 {
49   return _numberOfNodes;
50 };
51 inline const MED_EN::med_int* POLYHEDRONARRAY::getPolyhedronIndex() const
52 {
53   return (const MED_EN::med_int*) _polyhedronIndex;
54 };
55 inline const MED_EN::med_int* POLYHEDRONARRAY::getFacesIndex() const
56 {
57   return (const MED_EN::med_int*) _facesIndex;
58 };
59 inline const MED_EN::med_int* POLYHEDRONARRAY::getNodes() const
60 {
61   return (const MED_EN::med_int*) _nodes;
62 };
63
64
65 inline void POLYHEDRONARRAY::setPolyhedronIndex(const MED_EN::med_int* polyhedronindex)
66 {
67   _polyhedronIndex.set(_numberOfPolyhedron+1, polyhedronindex);
68 }
69 inline void POLYHEDRONARRAY::setFacesIndex(const MED_EN::med_int* facesindex)
70 {
71   _facesIndex.set(_numberOfFaces+1, facesindex);
72 }
73 inline void POLYHEDRONARRAY::setNodes(const MED_EN::med_int* nodes)
74 {
75   _nodes.set(_numberOfNodes, nodes);
76 }
77
78 }
79
80 # endif