b311480e |
1 | // Created on: 2001-12-13 |
2 | // Created by: Peter KURNEV |
3 | // Copyright (c) 2001-2012 OPEN CASCADE SAS |
4 | // |
5 | // The content of this file is subject to the Open CASCADE Technology Public |
6 | // License Version 6.5 (the "License"). You may not use the content of this file |
7 | // except in compliance with the License. Please obtain a copy of the License |
8 | // at http://www.opencascade.org and read it completely before using this file. |
9 | // |
10 | // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
11 | // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
12 | // |
13 | // The Original Code and all software distributed under the License is |
14 | // distributed on an "AS IS" basis, without warranty of any kind, and the |
15 | // Initial Developer hereby disclaims all such warranties, including without |
16 | // limitation, any warranties of merchantability, fitness for a particular |
17 | // purpose or non-infringement. Please see the License for the specific terms |
18 | // and conditions governing the rights and limitations under the License. |
19 | |
7fd59977 |
20 | |
21 | |
22 | #include <IntTools_PntOnFace.ixx> |
23 | //======================================================================= |
24 | //function : IntTools_PntOnFace::IntTools_PntOnFace |
25 | //purpose : |
26 | //======================================================================= |
b311480e |
27 | IntTools_PntOnFace::IntTools_PntOnFace() |
7fd59977 |
28 | : |
29 | myIsValid(Standard_False), |
30 | myU(99.), |
31 | myV(99.) |
32 | {} |
33 | //======================================================================= |
34 | //function : Init |
35 | //purpose : |
36 | //======================================================================= |
37 | void IntTools_PntOnFace::Init(const TopoDS_Face& aF, |
38 | const gp_Pnt& aP, |
39 | const Standard_Real anU, |
40 | const Standard_Real aV) |
41 | { |
42 | myFace=aF; |
43 | myPnt=aP; |
44 | myU=anU; |
45 | myV=aV; |
46 | } |
47 | //======================================================================= |
48 | //function : SetFace |
49 | //purpose : |
50 | //======================================================================= |
51 | void IntTools_PntOnFace::SetFace(const TopoDS_Face& aF) |
52 | { |
53 | myFace=aF; |
54 | } |
55 | |
56 | //======================================================================= |
57 | //function : SetPnt |
58 | //purpose : |
59 | //======================================================================= |
60 | void IntTools_PntOnFace::SetPnt(const gp_Pnt& aP) |
61 | { |
62 | myPnt=aP; |
63 | } |
64 | //======================================================================= |
65 | //function : SetParameters |
66 | //purpose : |
67 | //======================================================================= |
68 | void IntTools_PntOnFace::SetParameters(const Standard_Real anU, |
69 | const Standard_Real aV) |
70 | { |
71 | myU=anU; |
72 | myV=aV; |
73 | } |
74 | //======================================================================= |
75 | //function : SetValid |
76 | //purpose : |
77 | //======================================================================= |
78 | void IntTools_PntOnFace::SetValid(const Standard_Boolean bF) |
79 | { |
80 | myIsValid=bF; |
81 | } |
82 | |
83 | //======================================================================= |
84 | //function : Face |
85 | //purpose : |
86 | //======================================================================= |
87 | const TopoDS_Face& IntTools_PntOnFace::Face()const |
88 | { |
89 | return myFace; |
90 | } |
91 | //======================================================================= |
92 | //function : Pnt |
93 | //purpose : |
94 | //======================================================================= |
95 | const gp_Pnt& IntTools_PntOnFace::Pnt()const |
96 | { |
97 | return myPnt; |
98 | } |
99 | //======================================================================= |
100 | //function : Parameters |
101 | //purpose : |
102 | //======================================================================= |
103 | void IntTools_PntOnFace::Parameters(Standard_Real& anU, |
104 | Standard_Real& aV)const |
105 | { |
106 | anU=myU; |
107 | aV=myV; |
108 | } |
109 | //======================================================================= |
110 | //function : Valid |
111 | //purpose : |
112 | //======================================================================= |
113 | Standard_Boolean IntTools_PntOnFace::Valid()const |
114 | { |
115 | return myIsValid; |
116 | } |
117 | |
118 | //======================================================================= |
119 | //function : |
120 | //purpose : |
121 | //======================================================================= |
122 | |