1 -- File: IntersectionSegment.cdl
2 -- Created: Fri Apr 3 14:45:13 1992
3 -- Author: Laurent BUCHARD
5 ---Copyright: Matra Datavision 1992
8 class IntersectionSegment from IntRes2d
10 ---Purpose: Definition of an intersection curve between
14 inherits Storable from Standard
16 uses IntersectionPoint from IntRes2d
18 raises DomainError from Standard
24 ---Purpose: Empty constructor.
26 returns IntersectionSegment from IntRes2d;
29 Create(P1,P2 : IntersectionPoint from IntRes2d;
30 Oppos : Boolean from Standard;
31 ReverseFlag : Boolean from Standard)
33 --Purpose: Creates an IntersectionSegment from two
34 -- IntersectionPoint. Oppos is True if the 2 curves
35 -- have the same orientation. if ReverseFlag is True,
36 -- P1 and P2 are the point on the first curve, and on
37 -- the second curve. else, P1 is the point on the
38 -- second curve and P2 the intersection point on the
43 returns IntersectionSegment from IntRes2d;
46 Create(P : IntersectionPoint from IntRes2d;
47 First : Boolean from Standard;
48 Oppos : Boolean from Standard;
49 ReverseFlag: Boolean from Standard)
51 --Purpose: Creates a semi-infinite segment of intersection.
52 -- if First is set to True, P is the first point of
53 -- the segment. Otherwise P is the last point of the
54 -- segment. P belongs to the first curve if
55 -- ReversedFlag is set to False; otherwise it belongs
56 -- to the second curve.
60 returns IntersectionSegment from IntRes2d;
63 Create(Oppos: Boolean from Standard)
65 ---Purpose: Creates an infinite segment of intersection.
69 returns IntersectionSegment from IntRes2d;
74 ---Purpose: Returns TRUE if the intersection segment has got
75 -- the same orientation on both curves.
79 returns Boolean from Standard
85 ---Purpose: Returns True if the segment is limited by a first
86 -- point. This point defines the lowest parameter
87 -- admitted on the first curve for the segment. If
88 -- IsOpposite returns False, it defines the lowest
89 -- parameter on the second curve, otherwise, it is
90 -- the highest parameter on the second curve.
94 returns Boolean from Standard
100 ---Purpose: Returns the first point of the segment as an
101 -- IntersectionPoint (with a transition). The
102 -- exception DomainError is raised if HasFirstPoint
106 ---C++: return const &
108 returns IntersectionPoint from IntRes2d
109 raises DomainError from Standard
115 ---Purpose: Returns True if the segment is limited by a last
116 -- point. This point defines the highest parameter
117 -- admitted on the first curve for the segment. If
118 -- IsOpposite returns False, it defines the highest
119 -- parameter on the second curve, otherwise, it is
120 -- the lowest parameter on the second curve.
124 returns Boolean from Standard
130 ---Purpose: Returns the last point of the segment as an
131 -- IntersectionPoint (with a transition). The
132 -- exception DomainError is raised if
133 -- HasLastExtremity returns False.
136 ---C++: return const &
138 returns IntersectionPoint from IntRes2d
139 raises DomainError from Standard
145 oppos : Boolean from Standard;
146 first : Boolean from Standard;
147 last : Boolean from Standard;
148 ptfirst : IntersectionPoint from IntRes2d;
149 ptlast : IntersectionPoint from IntRes2d;
151 end IntersectionSegment;