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
6 -- This file is part of Open CASCADE Technology software library.
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.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
17 deferred class PointRepresentation from BRep inherits TShared from MMgt
19 ---Purpose: Root class for the points representations.
20 -- Contains a location and a parameter.
29 DomainError from Standard
34 L : Location from TopLoc);
36 -------------------------------------------------
37 -- What kind of representation
38 -------------------------------------------------
40 IsPointOnCurve(me) returns Boolean
41 ---Purpose: A point on a 3d curve.
44 IsPointOnCurveOnSurface(me) returns Boolean
45 ---Purpose: A point on a 2d curve on a surface.
48 IsPointOnSurface(me) returns Boolean
49 ---Purpose: A point on a surface.
52 IsPointOnCurve(me; C : Curve from Geom;
53 L : Location from TopLoc) returns Boolean
54 ---Purpose: A point on the curve <C>.
57 IsPointOnCurveOnSurface(me; PC : Curve from Geom2d;
58 S : Surface from Geom;
59 L : Location from TopLoc) returns Boolean
60 ---Purpose: A point on the 2d curve <PC> on the surface <S>.
63 IsPointOnSurface(me; S : Surface from Geom;
64 L : Location from TopLoc) returns Boolean
65 ---Purpose: A point on the surface <S>.
68 -------------------------------------------------
70 -------------------------------------------------
72 Location(me) returns Location from TopLoc
73 ---C++: return const &
77 Location(me : mutable; L : Location from TopLoc)
81 -------------------------------------------------
83 -------------------------------------------------
85 Parameter(me) returns Real
89 Parameter(me : mutable; P : Real)
93 Parameter2(me) returns Real
95 DomainError from Standard -- if !IsPointOnSurface
98 Parameter2(me : mutable; P : Real)
100 DomainError from Standard -- if !IsPointOnSurface
103 -------------------------------------------------
105 -------------------------------------------------
107 Curve(me) returns any Curve from Geom
108 ---C++: return const &
110 DomainError from Standard -- if !IsPointOnCurve
113 Curve(me : mutable; C : Curve from Geom)
115 DomainError from Standard -- if !IsPointOnCurve
119 -------------------------------------------------
121 -------------------------------------------------
123 PCurve(me) returns any Curve from Geom2d
124 ---C++: return const &
126 DomainError from Standard -- if !IsPointOnCurveOnSurface
129 PCurve(me : mutable; C : Curve from Geom2d)
131 DomainError from Standard -- if !IsPointOnCurveOnSurface
134 -------------------------------------------------
136 -------------------------------------------------
138 Surface(me) returns any Surface from Geom
139 ---C++: return const &
141 DomainError from Standard -- if IsPointOnCurve()
144 Surface(me : mutable; S : Surface from Geom)
146 DomainError from Standard -- if IsPointOnCurve()
151 myLocation : Location from TopLoc;
154 end PointRepresentation;