Salome HOME
This commit was generated by cvs2git to track changes on a CVS vendor
[modules/smesh.git] / src / SMDS / SMDS_MeshNode.lxx
1 // File:        SMDS_MeshNode.lxx
2 // Created:     Thu Jan 24 17:06:47 2002
3 // Author:      Jean-Michel BOULCOURT
4 //              <jmb@coulox.paris1.matra-dtv.fr>
5
6
7
8 //=======================================================================
9 //function : GetKey
10 //purpose  : 
11 //           
12 //=======================================================================
13
14 inline Standard_Integer SMDS_MeshNode::GetKey() const
15 {
16   return myID;
17 }
18
19 //=======================================================================
20 //function : X
21 //purpose  : 
22 //           
23 //=======================================================================
24
25 inline Standard_Real SMDS_MeshNode::X() const
26 {
27   return myPnt.X();
28 }
29
30 //=======================================================================
31 //function : Y
32 //purpose  : 
33 //           
34 //=======================================================================
35
36 inline Standard_Real SMDS_MeshNode::Y() const
37 {
38   return myPnt.Y();
39 }
40
41 //=======================================================================
42 //function : Z
43 //purpose  : 
44 //           
45 //=======================================================================
46
47 inline Standard_Real SMDS_MeshNode::Z() const
48 {
49   return myPnt.Z();
50 }
51
52 //=======================================================================
53 //function : Pnt
54 //purpose  : 
55 //           
56 //=======================================================================
57
58 inline gp_Pnt SMDS_MeshNode::Pnt() const
59 {
60   return myPnt;
61 }
62
63 //=======================================================================
64 //function : Pnt
65 //purpose  : 
66 //           
67 //=======================================================================
68
69 inline void SMDS_MeshNode::SetPnt(const gp_Pnt& P)
70 {
71   myPnt = P;
72 }
73
74 //=======================================================================
75 //function : AddInverseElement
76 //purpose  : 
77 //=======================================================================
78
79 inline void SMDS_MeshNode::AddInverseElement(const Handle(SMDS_MeshElement)& ME)
80 {
81   myInverseElements.Append(ME);
82 }
83
84 //=======================================================================
85 //function : InverseElements
86 //purpose  : 
87 //=======================================================================
88
89 inline const SMDS_ListOfMeshElement& SMDS_MeshNode::InverseElements() const
90 {
91   return myInverseElements;
92 }
93
94 //=======================================================================
95 //function : ClearInverseElements
96 //purpose  : 
97 //=======================================================================
98
99 inline void SMDS_MeshNode::ClearInverseElements()
100 {
101   myInverseElements.Clear();
102 }
103