b311480e |
1 | // Created on: 2001-12-13 |
2 | // Created by: Peter KURNEV |
973c2be1 |
3 | // Copyright (c) 2001-2014 OPEN CASCADE SAS |
b311480e |
4 | // |
973c2be1 |
5 | // This file is part of Open CASCADE Technology software library. |
b311480e |
6 | // |
d5f74e42 |
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 |
973c2be1 |
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. |
b311480e |
12 | // |
973c2be1 |
13 | // Alternatively, this file may be used under the terms of Open CASCADE |
14 | // commercial license or contractual agreement. |
7fd59977 |
15 | |
16 | #include <IntTools_PntOnFace.ixx> |
17 | //======================================================================= |
18 | //function : IntTools_PntOnFace::IntTools_PntOnFace |
19 | //purpose : |
20 | //======================================================================= |
b311480e |
21 | IntTools_PntOnFace::IntTools_PntOnFace() |
7fd59977 |
22 | : |
23 | myIsValid(Standard_False), |
24 | myU(99.), |
25 | myV(99.) |
26 | {} |
27 | //======================================================================= |
28 | //function : Init |
29 | //purpose : |
30 | //======================================================================= |
31 | void IntTools_PntOnFace::Init(const TopoDS_Face& aF, |
32 | const gp_Pnt& aP, |
33 | const Standard_Real anU, |
34 | const Standard_Real aV) |
35 | { |
36 | myFace=aF; |
37 | myPnt=aP; |
38 | myU=anU; |
39 | myV=aV; |
40 | } |
41 | //======================================================================= |
42 | //function : SetFace |
43 | //purpose : |
44 | //======================================================================= |
45 | void IntTools_PntOnFace::SetFace(const TopoDS_Face& aF) |
46 | { |
47 | myFace=aF; |
48 | } |
49 | |
50 | //======================================================================= |
51 | //function : SetPnt |
52 | //purpose : |
53 | //======================================================================= |
54 | void IntTools_PntOnFace::SetPnt(const gp_Pnt& aP) |
55 | { |
56 | myPnt=aP; |
57 | } |
58 | //======================================================================= |
59 | //function : SetParameters |
60 | //purpose : |
61 | //======================================================================= |
62 | void IntTools_PntOnFace::SetParameters(const Standard_Real anU, |
63 | const Standard_Real aV) |
64 | { |
65 | myU=anU; |
66 | myV=aV; |
67 | } |
68 | //======================================================================= |
69 | //function : SetValid |
70 | //purpose : |
71 | //======================================================================= |
72 | void IntTools_PntOnFace::SetValid(const Standard_Boolean bF) |
73 | { |
74 | myIsValid=bF; |
75 | } |
76 | |
77 | //======================================================================= |
78 | //function : Face |
79 | //purpose : |
80 | //======================================================================= |
81 | const TopoDS_Face& IntTools_PntOnFace::Face()const |
82 | { |
83 | return myFace; |
84 | } |
85 | //======================================================================= |
86 | //function : Pnt |
87 | //purpose : |
88 | //======================================================================= |
89 | const gp_Pnt& IntTools_PntOnFace::Pnt()const |
90 | { |
91 | return myPnt; |
92 | } |
93 | //======================================================================= |
94 | //function : Parameters |
95 | //purpose : |
96 | //======================================================================= |
97 | void IntTools_PntOnFace::Parameters(Standard_Real& anU, |
98 | Standard_Real& aV)const |
99 | { |
100 | anU=myU; |
101 | aV=myV; |
102 | } |
103 | //======================================================================= |
104 | //function : Valid |
105 | //purpose : |
106 | //======================================================================= |
107 | Standard_Boolean IntTools_PntOnFace::Valid()const |
108 | { |
109 | return myIsValid; |
110 | } |
111 | |
112 | //======================================================================= |
113 | //function : |
114 | //purpose : |
115 | //======================================================================= |
116 | |