0026586: Eliminate compile warnings obtained by building occt with vc14: declaration...
[occt.git] / src / IntTools / IntTools_PntOnFace.cxx
1 // Created on: 2001-12-13
2 // Created by: Peter KURNEV
3 // Copyright (c) 2001-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16
17 #include <gp_Pnt.hxx>
18 #include <IntTools_PntOnFace.hxx>
19 #include <TopoDS_Face.hxx>
20
21 //=======================================================================
22 //function : IntTools_PntOnFace::IntTools_PntOnFace
23 //purpose  : 
24 //=======================================================================
25 IntTools_PntOnFace::IntTools_PntOnFace()
26 :
27   myIsValid(Standard_False),
28   myU(99.),
29   myV(99.)
30 {}
31 //=======================================================================
32 //function : Init
33 //purpose  : 
34 //=======================================================================
35   void IntTools_PntOnFace::Init(const TopoDS_Face& aF,
36                                 const gp_Pnt& aP,
37                                 const Standard_Real anU,
38                                 const Standard_Real aV)
39 {
40   myFace=aF;
41   myPnt=aP;
42   myU=anU;
43   myV=aV;
44 }
45 //=======================================================================
46 //function : SetFace
47 //purpose  : 
48 //=======================================================================
49   void IntTools_PntOnFace::SetFace(const TopoDS_Face& aF)
50 {
51   myFace=aF;
52 }
53
54 //=======================================================================
55 //function : SetPnt
56 //purpose  : 
57 //=======================================================================
58   void IntTools_PntOnFace::SetPnt(const gp_Pnt& aP)
59 {
60   myPnt=aP;
61 }
62 //=======================================================================
63 //function : SetParameters
64 //purpose  : 
65 //=======================================================================
66   void IntTools_PntOnFace::SetParameters(const Standard_Real anU,
67                                          const Standard_Real aV)
68 {
69   myU=anU;
70   myV=aV;
71 }
72 //=======================================================================
73 //function : SetValid
74 //purpose  : 
75 //=======================================================================
76   void IntTools_PntOnFace::SetValid(const Standard_Boolean bF)
77 {
78   myIsValid=bF;
79 }
80
81 //=======================================================================
82 //function : Face
83 //purpose  : 
84 //=======================================================================
85   const TopoDS_Face& IntTools_PntOnFace::Face()const
86 {
87   return myFace;
88 }
89 //=======================================================================
90 //function : Pnt
91 //purpose  : 
92 //=======================================================================
93   const gp_Pnt& IntTools_PntOnFace::Pnt()const
94 {
95   return myPnt;
96 }
97 //=======================================================================
98 //function : Parameters
99 //purpose  : 
100 //=======================================================================
101   void IntTools_PntOnFace::Parameters(Standard_Real& anU,
102                                       Standard_Real& aV)const
103 {
104   anU=myU;
105   aV=myV;
106 }
107 //=======================================================================
108 //function : Valid
109 //purpose  : 
110 //=======================================================================
111   Standard_Boolean IntTools_PntOnFace::Valid()const
112 {
113   return myIsValid;
114 }
115
116 //=======================================================================
117 //function : 
118 //purpose  : 
119 //=======================================================================
120