0033040: Coding - get rid of unused headers [Storage to TopOpeBRepTool]
[occt.git] / src / TopOpeBRep / TopOpeBRep_WPointInter.cxx
1 // Created on: 1993-11-10
2 // Created by: Jean Yves LEBEY
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17
18 #include <gp_Pnt2d.hxx>
19 #include <IntSurf_PntOn2S.hxx>
20 #include <TopOpeBRep_WPointInter.hxx>
21
22 //=======================================================================
23 //function : WPointInter
24 //purpose  : 
25 //=======================================================================
26 TopOpeBRep_WPointInter::TopOpeBRep_WPointInter()
27 {}
28
29 //=======================================================================
30 //function : Set
31 //purpose  : 
32 //=======================================================================
33
34 void TopOpeBRep_WPointInter::Set(const IntSurf_PntOn2S& P)
35 {
36   myPP2S = (IntSurf_PntOn2S*)&P;
37 }
38
39 //=======================================================================
40 //function : ParametersOnS1
41 //purpose  : 
42 //=======================================================================
43
44 void TopOpeBRep_WPointInter::ParametersOnS1
45   (Standard_Real& U1, Standard_Real& V1) const
46 {
47   myPP2S->ParametersOnS1(U1,V1);
48 }
49
50 //=======================================================================
51 //function : ParametersOnS2
52 //purpose  : 
53 //=======================================================================
54
55 void  TopOpeBRep_WPointInter::ParametersOnS2
56   (Standard_Real& U2, Standard_Real& V2) const
57 {
58   myPP2S->ParametersOnS2(U2,V2);
59 }
60
61 //=======================================================================
62 //function : Parameters
63 //purpose  : 
64 //=======================================================================
65
66 void  TopOpeBRep_WPointInter::Parameters
67   (Standard_Real& U1, Standard_Real& V1,
68    Standard_Real& U2, Standard_Real& V2) const
69 {
70   myPP2S->Parameters(U1,V1,U2,V2);
71 }
72
73 //=======================================================================
74 //function : ValueOnS1
75 //purpose  : 
76 //=======================================================================
77
78 gp_Pnt2d TopOpeBRep_WPointInter::ValueOnS1() const
79 {
80   Standard_Real u,v;
81   myPP2S->ParametersOnS1(u,v);
82   return gp_Pnt2d(u,v);
83 }
84
85 //=======================================================================
86 //function : ValueOnS2
87 //purpose  : 
88 //=======================================================================
89
90 gp_Pnt2d TopOpeBRep_WPointInter::ValueOnS2() const
91 {
92   Standard_Real u,v;
93   myPP2S->ParametersOnS2(u,v);
94   return gp_Pnt2d(u,v);
95 }
96
97 //=======================================================================
98 //function : Value
99 //purpose  : 
100 //=======================================================================
101
102 const gp_Pnt& TopOpeBRep_WPointInter::Value() const
103 {
104   return myPP2S->Value();
105 }
106
107 TopOpeBRep_PPntOn2S TopOpeBRep_WPointInter::PPntOn2SDummy() const { return myPP2S; }