0030675: Visualization - remove redundant proxy classes in hierarchy of PrsMgr_Presen...
[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,Standard_Transient)
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   throw Standard_DomainError("BRep_PointRepresentation");
121 }
122
123
124 //=======================================================================
125 //function : Parameter2
126 //purpose  : 
127 //=======================================================================
128
129 void  BRep_PointRepresentation::Parameter2(const Standard_Real )
130 {
131   throw Standard_DomainError("BRep_PointRepresentation");
132 }
133
134
135 //=======================================================================
136 //function : Curve
137 //purpose  : 
138 //=======================================================================
139
140 const Handle(Geom_Curve)&  BRep_PointRepresentation::Curve()const 
141 {
142   throw Standard_DomainError("BRep_PointRepresentation");
143 }
144
145
146 //=======================================================================
147 //function : Curve
148 //purpose  : 
149 //=======================================================================
150
151 void  BRep_PointRepresentation::Curve(const Handle(Geom_Curve)& )
152 {
153   throw Standard_DomainError("BRep_PointRepresentation");
154 }
155
156
157 //=======================================================================
158 //function : PCurve
159 //purpose  : 
160 //=======================================================================
161
162 const Handle(Geom2d_Curve)&  BRep_PointRepresentation::PCurve()const 
163 {
164   throw Standard_DomainError("BRep_PointRepresentation");
165 }
166
167
168 //=======================================================================
169 //function : PCurve
170 //purpose  : 
171 //=======================================================================
172
173 void  BRep_PointRepresentation::PCurve(const Handle(Geom2d_Curve)& )
174 {
175   throw Standard_DomainError("BRep_PointRepresentation");
176 }
177
178
179 //=======================================================================
180 //function : Surface
181 //purpose  : 
182 //=======================================================================
183
184 const Handle(Geom_Surface)&  BRep_PointRepresentation::Surface()const 
185 {
186   throw Standard_DomainError("BRep_PointRepresentation");
187 }
188
189
190 //=======================================================================
191 //function : Surface
192 //purpose  : 
193 //=======================================================================
194
195 void  BRep_PointRepresentation::Surface(const Handle(Geom_Surface)& )
196 {
197   throw Standard_DomainError("BRep_PointRepresentation");
198 }
199
200