0031682: Visualization - Prs3d_ShadingAspect::SetTransparency() has no effect with...
[occt.git] / src / TopOpeBRep / TopOpeBRep_WPointInter.cxx
CommitLineData
b311480e 1// Created on: 1993-11-10
2// Created by: Jean Yves LEBEY
3// Copyright (c) 1993-1999 Matra Datavision
973c2be1 4// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5//
973c2be1 6// This file is part of Open CASCADE Technology software library.
b311480e 7//
d5f74e42 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
973c2be1 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.
b311480e 13//
973c2be1 14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
7fd59977 16
42cf5bc1 17
18#include <gp_Pnt.hxx>
19#include <gp_Pnt2d.hxx>
20#include <IntSurf_PntOn2S.hxx>
21#include <TopOpeBRep_WPointInter.hxx>
7fd59977 22
23//=======================================================================
24//function : WPointInter
25//purpose :
26//=======================================================================
7fd59977 27TopOpeBRep_WPointInter::TopOpeBRep_WPointInter()
28{}
29
30//=======================================================================
31//function : Set
32//purpose :
33//=======================================================================
34
35void TopOpeBRep_WPointInter::Set(const IntSurf_PntOn2S& P)
36{
37 myPP2S = (IntSurf_PntOn2S*)&P;
38}
39
40//=======================================================================
41//function : ParametersOnS1
42//purpose :
43//=======================================================================
44
45void TopOpeBRep_WPointInter::ParametersOnS1
46 (Standard_Real& U1, Standard_Real& V1) const
47{
48 myPP2S->ParametersOnS1(U1,V1);
49}
50
51//=======================================================================
52//function : ParametersOnS2
53//purpose :
54//=======================================================================
55
56void TopOpeBRep_WPointInter::ParametersOnS2
57 (Standard_Real& U2, Standard_Real& V2) const
58{
59 myPP2S->ParametersOnS2(U2,V2);
60}
61
62//=======================================================================
63//function : Parameters
64//purpose :
65//=======================================================================
66
67void TopOpeBRep_WPointInter::Parameters
68 (Standard_Real& U1, Standard_Real& V1,
69 Standard_Real& U2, Standard_Real& V2) const
70{
71 myPP2S->Parameters(U1,V1,U2,V2);
72}
73
74//=======================================================================
75//function : ValueOnS1
76//purpose :
77//=======================================================================
78
79gp_Pnt2d TopOpeBRep_WPointInter::ValueOnS1() const
80{
81 Standard_Real u,v;
82 myPP2S->ParametersOnS1(u,v);
83 return gp_Pnt2d(u,v);
84}
85
86//=======================================================================
87//function : ValueOnS2
88//purpose :
89//=======================================================================
90
91gp_Pnt2d TopOpeBRep_WPointInter::ValueOnS2() const
92{
93 Standard_Real u,v;
94 myPP2S->ParametersOnS2(u,v);
95 return gp_Pnt2d(u,v);
96}
97
98//=======================================================================
99//function : Value
100//purpose :
101//=======================================================================
102
103const gp_Pnt& TopOpeBRep_WPointInter::Value() const
104{
105 return myPP2S->Value();
106}
107
108TopOpeBRep_PPntOn2S TopOpeBRep_WPointInter::PPntOn2SDummy() const { return myPP2S; }