b311480e |
1 | // Created on: 1993-06-23 |
2 | // Created by: Jean Yves LEBEY |
3 | // Copyright (c) 1993-1999 Matra Datavision |
4 | // Copyright (c) 1999-2012 OPEN CASCADE SAS |
5 | // |
6 | // The content of this file is subject to the Open CASCADE Technology Public |
7 | // License Version 6.5 (the "License"). You may not use the content of this file |
8 | // except in compliance with the License. Please obtain a copy of the License |
9 | // at http://www.opencascade.org and read it completely before using this file. |
10 | // |
11 | // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
12 | // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
13 | // |
14 | // The Original Code and all software distributed under the License is |
15 | // distributed on an "AS IS" basis, without warranty of any kind, and the |
16 | // Initial Developer hereby disclaims all such warranties, including without |
17 | // limitation, any warranties of merchantability, fitness for a particular |
18 | // purpose or non-infringement. Please see the License for the specific terms |
19 | // and conditions governing the rights and limitations under the License. |
20 | |
7fd59977 |
21 | |
22 | |
23 | #include <TopOpeBRepDS_SurfaceCurveInterference.ixx> |
24 | |
25 | #ifdef DEB |
26 | #include <TopOpeBRepDS_Dumper.hxx> |
27 | #endif |
28 | |
29 | //======================================================================= |
30 | //function : TopOpeBRepDS_SurfaceCurveInterference |
31 | //purpose : |
32 | //======================================================================= |
33 | |
34 | TopOpeBRepDS_SurfaceCurveInterference::TopOpeBRepDS_SurfaceCurveInterference() |
35 | { |
36 | } |
37 | |
38 | //======================================================================= |
39 | //function : TopOpeBRepDS_SurfaceCurveInterference |
40 | //purpose : |
41 | //======================================================================= |
42 | |
43 | TopOpeBRepDS_SurfaceCurveInterference::TopOpeBRepDS_SurfaceCurveInterference |
44 | (const TopOpeBRepDS_Transition& T, |
45 | const TopOpeBRepDS_Kind ST, |
46 | const Standard_Integer S, |
47 | const TopOpeBRepDS_Kind GT, |
48 | const Standard_Integer G, |
49 | const Handle(Geom2d_Curve)& PC) : |
50 | TopOpeBRepDS_Interference(T,ST,S,GT,G), |
51 | myPCurve(PC) |
52 | { |
53 | } |
54 | |
55 | //======================================================================= |
56 | //function : TopOpeBRepDS_SurfaceCurveInterference |
57 | //purpose : |
58 | //======================================================================= |
59 | |
60 | TopOpeBRepDS_SurfaceCurveInterference::TopOpeBRepDS_SurfaceCurveInterference |
61 | (const Handle(TopOpeBRepDS_Interference)& I) : |
62 | TopOpeBRepDS_Interference(I) |
63 | { |
64 | } |
65 | |
66 | |
67 | //======================================================================= |
68 | //function : PCurve |
69 | //purpose : |
70 | //======================================================================= |
71 | |
72 | const Handle(Geom2d_Curve)& TopOpeBRepDS_SurfaceCurveInterference::PCurve |
73 | ()const |
74 | { |
75 | return myPCurve; |
76 | } |
77 | |
78 | //======================================================================= |
79 | //function : PCurve |
80 | //purpose : |
81 | //======================================================================= |
82 | |
83 | void TopOpeBRepDS_SurfaceCurveInterference::PCurve |
84 | (const Handle(Geom2d_Curve)& PC) |
85 | { |
86 | myPCurve = PC; |
87 | } |
88 | |
89 | |
90 | //======================================================================= |
91 | //function : DumpPCurve |
92 | //purpose : |
93 | //======================================================================= |
94 | |
95 | Standard_OStream& TopOpeBRepDS_SurfaceCurveInterference::DumpPCurve |
96 | (Standard_OStream& OS, |
97 | const Standard_Boolean compact)const |
98 | { |
99 | #ifdef DEB |
100 | Dump(OS); OS<<endl; |
101 | |
102 | OS<<"PCurve "; |
103 | if (!PCurve().IsNull()) TopOpeBRepDS_Dumper::Print(PCurve(),OS,compact); |
104 | else OS<<" is null"; |
105 | OS<<endl; |
106 | #endif |
107 | |
108 | return OS; |
109 | } |
110 | |
111 | |
112 | //======================================================================= |
113 | //function : Dump |
114 | //purpose : |
115 | //======================================================================= |
116 | |
117 | Standard_OStream& TopOpeBRepDS_SurfaceCurveInterference::Dump |
118 | (Standard_OStream& OS) const |
119 | { |
120 | #ifdef DEB |
121 | OS<<"SCI ";TopOpeBRepDS_Dumper::PrintType(myPCurve,OS);OS<<" "; |
122 | TopOpeBRepDS_Interference::Dump(OS); |
123 | #endif |
124 | |
125 | return OS; |
126 | } |