Salome HOME
Templates for implementation of Geom classes receiving
[modules/shaper.git] / src / GeomAPI / GeomAPI_Pnt.cpp
1 // File:        GeomAPI_Pnt.cpp
2 // Created:     23 Apr 2014
3 // Author:      Mikhail PONIKAROV
4
5 #include<GeomAPI_Pnt.h>
6
7 #include<gp_Pnt.hxx>
8
9 #define MY_PNT static_cast<gp_Pnt*>(myImpl)
10
11 GeomAPI_Pnt::GeomAPI_Pnt(const double theX, const double theY, const double theZ)
12   : GeomAPI_Interface(new gp_Pnt(theX, theY, theZ))
13 {}
14
15 double GeomAPI_Pnt::x() const
16 {
17   return MY_PNT->X();
18 }
19
20 double GeomAPI_Pnt::y() const
21 {
22   return MY_PNT->Y();
23 }
24
25 double GeomAPI_Pnt::z() const
26 {
27   return MY_PNT->Z();
28 }
29
30 void GeomAPI_Pnt::setX(const double theX)
31 {
32   return MY_PNT->SetX(theX);
33 }
34
35 void GeomAPI_Pnt::setY(const double theY)
36 {
37   return MY_PNT->SetY(theY);
38 }
39
40 void GeomAPI_Pnt::setZ(const double theZ)
41 {
42   return MY_PNT->SetZ(theZ);
43 }