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