Salome HOME
Remove OCC_LIBS from LDFLAGS
[modules/smesh.git] / src / SMDS / SMDS_MeshNode.lxx
1 //  SMESH SMDS : implementaion of Salome mesh data structure
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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
21 //
22 //
23 //
24 //  File   : SMDS_MeshNode.lxx
25 //  Author : Jean-Michel BOULCOURT
26 //  Module : SMESH
27
28 inline Standard_Integer SMDS_MeshNode::GetKey() const
29 {
30   return myID;
31 }
32
33 //=======================================================================
34 //function : X
35 //purpose  : 
36 //           
37 //=======================================================================
38
39 inline Standard_Real SMDS_MeshNode::X() const
40 {
41   return myPnt.X();
42 }
43
44 //=======================================================================
45 //function : Y
46 //purpose  : 
47 //           
48 //=======================================================================
49
50 inline Standard_Real SMDS_MeshNode::Y() const
51 {
52   return myPnt.Y();
53 }
54
55 //=======================================================================
56 //function : Z
57 //purpose  : 
58 //           
59 //=======================================================================
60
61 inline Standard_Real SMDS_MeshNode::Z() const
62 {
63   return myPnt.Z();
64 }
65
66 //=======================================================================
67 //function : Pnt
68 //purpose  : 
69 //           
70 //=======================================================================
71
72 inline gp_Pnt SMDS_MeshNode::Pnt() const
73 {
74   return myPnt;
75 }
76
77 //=======================================================================
78 //function : Pnt
79 //purpose  : 
80 //           
81 //=======================================================================
82
83 inline void SMDS_MeshNode::SetPnt(const gp_Pnt& P)
84 {
85   myPnt = P;
86 }
87
88 //=======================================================================
89 //function : AddInverseElement
90 //purpose  : 
91 //=======================================================================
92
93 inline void SMDS_MeshNode::AddInverseElement(const Handle(SMDS_MeshElement)& ME)
94 {
95   myInverseElements.Append(ME);
96 }
97
98 //=======================================================================
99 //function : InverseElements
100 //purpose  : 
101 //=======================================================================
102
103 inline const SMDS_ListOfMeshElement& SMDS_MeshNode::InverseElements() const
104 {
105   return myInverseElements;
106 }
107
108 //=======================================================================
109 //function : ClearInverseElements
110 //purpose  : 
111 //=======================================================================
112
113 inline void SMDS_MeshNode::ClearInverseElements()
114 {
115   myInverseElements.Clear();
116 }
117