b311480e |
1 | // Created on: 1993-08-10 |
2 | // Created by: Remi LEQUETTE |
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 <BRep_PointRepresentation.hxx> |
19 | #include <Geom2d_Curve.hxx> |
20 | #include <Geom_Curve.hxx> |
21 | #include <Geom_Surface.hxx> |
22 | #include <Standard_DomainError.hxx> |
23 | #include <Standard_Type.hxx> |
24 | #include <TopLoc_Location.hxx> |
7fd59977 |
25 | |
92efcf78 |
26 | IMPLEMENT_STANDARD_RTTIEXT(BRep_PointRepresentation,MMgt_TShared) |
27 | |
7fd59977 |
28 | //======================================================================= |
29 | //function : BRep_PointRepresentation |
30 | //purpose : |
31 | //======================================================================= |
7fd59977 |
32 | BRep_PointRepresentation::BRep_PointRepresentation(const Standard_Real P, |
33 | const TopLoc_Location& L) : |
34 | myLocation(L), |
35 | myParameter(P) |
36 | { |
37 | } |
38 | |
39 | |
40 | //======================================================================= |
41 | //function : IsPointOnCurve |
42 | //purpose : |
43 | //======================================================================= |
44 | |
45 | Standard_Boolean BRep_PointRepresentation::IsPointOnCurve()const |
46 | { |
47 | return Standard_False; |
48 | } |
49 | |
50 | |
51 | //======================================================================= |
52 | //function : IsPointOnCurveOnSurface |
53 | //purpose : |
54 | //======================================================================= |
55 | |
56 | Standard_Boolean BRep_PointRepresentation::IsPointOnCurveOnSurface()const |
57 | { |
58 | return Standard_False; |
59 | } |
60 | |
61 | |
62 | //======================================================================= |
63 | //function : IsPointOnSurface |
64 | //purpose : |
65 | //======================================================================= |
66 | |
67 | Standard_Boolean BRep_PointRepresentation::IsPointOnSurface()const |
68 | { |
69 | return Standard_False; |
70 | } |
71 | |
72 | |
73 | //======================================================================= |
74 | //function : IsPointOnCurve |
75 | //purpose : |
76 | //======================================================================= |
77 | |
78 | Standard_Boolean BRep_PointRepresentation::IsPointOnCurve |
79 | (const Handle(Geom_Curve)& , |
80 | const TopLoc_Location& )const |
81 | { |
82 | return Standard_False; |
83 | } |
84 | |
85 | |
86 | //======================================================================= |
87 | //function : IsPointOnCurveOnSurface |
88 | //purpose : |
89 | //======================================================================= |
90 | |
91 | Standard_Boolean BRep_PointRepresentation::IsPointOnCurveOnSurface |
92 | (const Handle(Geom2d_Curve)& , |
93 | const Handle(Geom_Surface)& , |
94 | const TopLoc_Location& )const |
95 | { |
96 | return Standard_False; |
97 | } |
98 | |
99 | |
100 | //======================================================================= |
101 | //function : IsPointOnSurface |
102 | //purpose : |
103 | //======================================================================= |
104 | |
105 | Standard_Boolean BRep_PointRepresentation::IsPointOnSurface |
106 | (const Handle(Geom_Surface)& , |
107 | const TopLoc_Location& )const |
108 | { |
109 | return Standard_False; |
110 | } |
111 | |
112 | |
113 | //======================================================================= |
114 | //function : Parameter2 |
115 | //purpose : |
116 | //======================================================================= |
117 | |
118 | Standard_Real BRep_PointRepresentation::Parameter2()const |
119 | { |
9775fa61 |
120 | throw Standard_DomainError("BRep_PointRepresentation"); |
7fd59977 |
121 | } |
122 | |
123 | |
124 | //======================================================================= |
125 | //function : Parameter2 |
126 | //purpose : |
127 | //======================================================================= |
128 | |
129 | void BRep_PointRepresentation::Parameter2(const Standard_Real ) |
130 | { |
9775fa61 |
131 | throw Standard_DomainError("BRep_PointRepresentation"); |
7fd59977 |
132 | } |
133 | |
134 | |
135 | //======================================================================= |
136 | //function : Curve |
137 | //purpose : |
138 | //======================================================================= |
139 | |
140 | const Handle(Geom_Curve)& BRep_PointRepresentation::Curve()const |
141 | { |
9775fa61 |
142 | throw Standard_DomainError("BRep_PointRepresentation"); |
7fd59977 |
143 | } |
144 | |
145 | |
146 | //======================================================================= |
147 | //function : Curve |
148 | //purpose : |
149 | //======================================================================= |
150 | |
151 | void BRep_PointRepresentation::Curve(const Handle(Geom_Curve)& ) |
152 | { |
9775fa61 |
153 | throw Standard_DomainError("BRep_PointRepresentation"); |
7fd59977 |
154 | } |
155 | |
156 | |
157 | //======================================================================= |
158 | //function : PCurve |
159 | //purpose : |
160 | //======================================================================= |
161 | |
162 | const Handle(Geom2d_Curve)& BRep_PointRepresentation::PCurve()const |
163 | { |
9775fa61 |
164 | throw Standard_DomainError("BRep_PointRepresentation"); |
7fd59977 |
165 | } |
166 | |
167 | |
168 | //======================================================================= |
169 | //function : PCurve |
170 | //purpose : |
171 | //======================================================================= |
172 | |
173 | void BRep_PointRepresentation::PCurve(const Handle(Geom2d_Curve)& ) |
174 | { |
9775fa61 |
175 | throw Standard_DomainError("BRep_PointRepresentation"); |
7fd59977 |
176 | } |
177 | |
178 | |
179 | //======================================================================= |
180 | //function : Surface |
181 | //purpose : |
182 | //======================================================================= |
183 | |
184 | const Handle(Geom_Surface)& BRep_PointRepresentation::Surface()const |
185 | { |
9775fa61 |
186 | throw Standard_DomainError("BRep_PointRepresentation"); |
7fd59977 |
187 | } |
188 | |
189 | |
190 | //======================================================================= |
191 | //function : Surface |
192 | //purpose : |
193 | //======================================================================= |
194 | |
195 | void BRep_PointRepresentation::Surface(const Handle(Geom_Surface)& ) |
196 | { |
9775fa61 |
197 | throw Standard_DomainError("BRep_PointRepresentation"); |
7fd59977 |
198 | } |
199 | |
200 | |