blob: 4329eaba7e9afdf0515857660352d1b429789094 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
|
-- File: BRep_PointRepresentation.cdl
-- Created: Tue Aug 10 14:01:46 1993
-- Author: Remi LEQUETTE
-- <rle@phylox>
---Copyright: Matra Datavision 1993
deferred class PointRepresentation from BRep inherits TShared from MMgt
---Purpose: Root class for the points representations.
-- Contains a location and a parameter.
uses
Curve from Geom2d,
Curve from Geom,
Surface from Geom,
Location from TopLoc
raises
DomainError from Standard
is
Initialize(P : Real;
L : Location from TopLoc);
-------------------------------------------------
-- What kind of representation
-------------------------------------------------
IsPointOnCurve(me) returns Boolean
---Purpose: A point on a 3d curve.
is virtual;
IsPointOnCurveOnSurface(me) returns Boolean
---Purpose: A point on a 2d curve on a surface.
is virtual;
IsPointOnSurface(me) returns Boolean
---Purpose: A point on a surface.
is virtual;
IsPointOnCurve(me; C : Curve from Geom;
L : Location from TopLoc) returns Boolean
---Purpose: A point on the curve <C>.
is virtual;
IsPointOnCurveOnSurface(me; PC : Curve from Geom2d;
S : Surface from Geom;
L : Location from TopLoc) returns Boolean
---Purpose: A point on the 2d curve <PC> on the surface <S>.
is virtual;
IsPointOnSurface(me; S : Surface from Geom;
L : Location from TopLoc) returns Boolean
---Purpose: A point on the surface <S>.
is virtual;
-------------------------------------------------
-- Location
-------------------------------------------------
Location(me) returns Location from TopLoc
---C++: return const &
---C++: inline
is static;
Location(me : mutable; L : Location from TopLoc)
---C++: inline
is static;
-------------------------------------------------
-- Parameters
-------------------------------------------------
Parameter(me) returns Real
---C++: inline
is static;
Parameter(me : mutable; P : Real)
---C++: inline
is static;
Parameter2(me) returns Real
raises
DomainError from Standard -- if !IsPointOnSurface
is virtual;
Parameter2(me : mutable; P : Real)
raises
DomainError from Standard -- if !IsPointOnSurface
is virtual;
-------------------------------------------------
-- 3d curve
-------------------------------------------------
Curve(me) returns any Curve from Geom
---C++: return const &
raises
DomainError from Standard -- if !IsPointOnCurve
is virtual;
Curve(me : mutable; C : Curve from Geom)
raises
DomainError from Standard -- if !IsPointOnCurve
is virtual;
-------------------------------------------------
-- curve on surface
-------------------------------------------------
PCurve(me) returns any Curve from Geom2d
---C++: return const &
raises
DomainError from Standard -- if !IsPointOnCurveOnSurface
is virtual;
PCurve(me : mutable; C : Curve from Geom2d)
raises
DomainError from Standard -- if !IsPointOnCurveOnSurface
is virtual;
-------------------------------------------------
-- surface
-------------------------------------------------
Surface(me) returns any Surface from Geom
---C++: return const &
raises
DomainError from Standard -- if IsPointOnCurve()
is virtual;
Surface(me : mutable; S : Surface from Geom)
raises
DomainError from Standard -- if IsPointOnCurve()
is virtual;
fields
myLocation : Location from TopLoc;
myParameter : Real;
end PointRepresentation;
|