0030686: Visualization, SelectMgr_ViewerSelector - sorting issues of transformation...
[occt.git] / src / TopOpeBRepDS / TopOpeBRepDS_SurfaceCurveInterference.cxx
1 // Created on: 1993-06-23
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 <Geom2d_Curve.hxx>
19 #include <Standard_Type.hxx>
20 #include <TopOpeBRepDS_Interference.hxx>
21 #include <TopOpeBRepDS_SurfaceCurveInterference.hxx>
22 #include <TopOpeBRepDS_Transition.hxx>
23
24 IMPLEMENT_STANDARD_RTTIEXT(TopOpeBRepDS_SurfaceCurveInterference,TopOpeBRepDS_Interference)
25
26 //=======================================================================
27 //function : TopOpeBRepDS_SurfaceCurveInterference
28 //purpose  : 
29 //=======================================================================
30
31 TopOpeBRepDS_SurfaceCurveInterference::TopOpeBRepDS_SurfaceCurveInterference()
32 {
33 }
34
35 //=======================================================================
36 //function : TopOpeBRepDS_SurfaceCurveInterference
37 //purpose  : 
38 //=======================================================================
39
40 TopOpeBRepDS_SurfaceCurveInterference::TopOpeBRepDS_SurfaceCurveInterference
41   (const TopOpeBRepDS_Transition& T,
42    const TopOpeBRepDS_Kind ST, 
43    const Standard_Integer S, 
44    const TopOpeBRepDS_Kind GT, 
45    const Standard_Integer G, 
46    const Handle(Geom2d_Curve)& PC) :
47   TopOpeBRepDS_Interference(T,ST,S,GT,G),
48   myPCurve(PC)
49 {
50 }
51
52 //=======================================================================
53 //function : TopOpeBRepDS_SurfaceCurveInterference
54 //purpose  : 
55 //=======================================================================
56
57 TopOpeBRepDS_SurfaceCurveInterference::TopOpeBRepDS_SurfaceCurveInterference
58   (const Handle(TopOpeBRepDS_Interference)& I) :
59   TopOpeBRepDS_Interference(I)
60 {
61 }
62
63
64 //=======================================================================
65 //function : PCurve
66 //purpose  : 
67 //=======================================================================
68
69 const Handle(Geom2d_Curve)& TopOpeBRepDS_SurfaceCurveInterference::PCurve
70        ()const 
71 {
72   return myPCurve;
73 }
74
75 //=======================================================================
76 //function : PCurve
77 //purpose  : 
78 //=======================================================================
79
80 void  TopOpeBRepDS_SurfaceCurveInterference::PCurve
81   (const Handle(Geom2d_Curve)& PC)
82 {
83   myPCurve = PC;
84 }