0026936: Drawbacks of inlining in new type system in OCCT 7.0 -- automatic
[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 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 <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>
25
26 IMPLEMENT_STANDARD_RTTIEXT(BRep_PointRepresentation,MMgt_TShared)
27
28 //=======================================================================
29 //function : BRep_PointRepresentation
30 //purpose  : 
31 //=======================================================================
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 {
120   Standard_DomainError::Raise("BRep_PointRepresentation");
121     return 0;
122 }
123
124
125 //=======================================================================
126 //function : Parameter2
127 //purpose  : 
128 //=======================================================================
129
130 void  BRep_PointRepresentation::Parameter2(const Standard_Real )
131 {
132   Standard_DomainError::Raise("BRep_PointRepresentation");
133 }
134
135
136 //=======================================================================
137 //function : Curve
138 //purpose  : 
139 //=======================================================================
140
141 const Handle(Geom_Curve)&  BRep_PointRepresentation::Curve()const 
142 {
143   Standard_DomainError::Raise("BRep_PointRepresentation");
144     return *((Handle(Geom_Curve)*) NULL);
145 }
146
147
148 //=======================================================================
149 //function : Curve
150 //purpose  : 
151 //=======================================================================
152
153 void  BRep_PointRepresentation::Curve(const Handle(Geom_Curve)& )
154 {
155   Standard_DomainError::Raise("BRep_PointRepresentation");
156 }
157
158
159 //=======================================================================
160 //function : PCurve
161 //purpose  : 
162 //=======================================================================
163
164 const Handle(Geom2d_Curve)&  BRep_PointRepresentation::PCurve()const 
165 {
166   Standard_DomainError::Raise("BRep_PointRepresentation");
167     return *((Handle(Geom2d_Curve)*) NULL);
168 }
169
170
171 //=======================================================================
172 //function : PCurve
173 //purpose  : 
174 //=======================================================================
175
176 void  BRep_PointRepresentation::PCurve(const Handle(Geom2d_Curve)& )
177 {
178   Standard_DomainError::Raise("BRep_PointRepresentation");
179 }
180
181
182 //=======================================================================
183 //function : Surface
184 //purpose  : 
185 //=======================================================================
186
187 const Handle(Geom_Surface)&  BRep_PointRepresentation::Surface()const 
188 {
189   Standard_DomainError::Raise("BRep_PointRepresentation");
190     return *((Handle(Geom_Surface)*) NULL);
191 }
192
193
194 //=======================================================================
195 //function : Surface
196 //purpose  : 
197 //=======================================================================
198
199 void  BRep_PointRepresentation::Surface(const Handle(Geom_Surface)& )
200 {
201   Standard_DomainError::Raise("BRep_PointRepresentation");
202 }
203
204