blob: 1243c942f3fbea7542c24ae7854ad4ce67a38ba0 (
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
|
-- File: Classifier2d.cdl
-- Created: Tue Nov 17 11:38:42 1992
-- Author: Remi LEQUETTE
-- <rle@phylox>
---Copyright: Matra Datavision 1992
-- Modified by skv - Wed Jul 12 15:15:38 2006 OCC12627
generic class Classifier2d from TopClass
(TheEdge as any;
TheIntersector as any) -- as Intersection2d from TopClass
---Purpose:
uses
Lin2d from gp,
CurveTransition from TopTrans,
Orientation from TopAbs,
State from TopAbs
raises
DomainError
is
Create returns Classifier2d from TopClass;
---Purpose: Creates an undefined classifier.
Reset(me : in out; L : Lin2d from gp; P : Real; Tol : Real)
---Purpose: Starts a classification process. The point to
-- classify is the origin of the line <L>. <P> is
-- the original length of the segment on <L> used to
-- compute intersections. <Tol> is the tolerance
-- attached to the line segment in intersections.
is static;
Compare(me : in out; E : TheEdge;
Or : Orientation from TopAbs)
---Purpose: Updates the classification process with the edge
-- <E> from the boundary.
raises
DomainError -- The classifier has not been set
is static;
Parameter(me) returns Real
---Purpose: Returns the current value of the parameter.
---C++: inline
is static;
Intersector(me : in out) returns TheIntersector
---Purpose: Returns the intersecting algorithm.
--
---C++: inline
---C++: return &
is static;
ClosestIntersection(me) returns Integer
---Purpose: Returns 0 if the last compared edge had no
-- relevant intersection. Else returns the index of
-- this intersection in the last intersection
-- algorithm.
--
---C++: inline
is static;
State(me) returns State from TopAbs
---Purpose: Returns the current state of the point.
--
---C++: inline
is static;
-- Modified by skv - Wed Jul 12 15:15:38 2006 OCC12627 Begin
IsHeadOrEnd(me)
---Purpose: Returns the Standard_True if the closest intersection point
-- represents head or end of the edge. Returns Standard_False
-- otherwise.
---C++: inline
returns Boolean from Standard
is static;
-- Modified by skv - Wed Jul 12 15:15:38 2006 OCC12627 End
fields
myIsSet : Boolean from Standard;
myFirstCompare : Boolean from Standard;
myFirstTrans : Boolean from Standard;
myLin : Lin2d from gp;
myParam : Real from Standard;
myTolerance : Real from Standard;
myTrans : CurveTransition from TopTrans;
myIntersector : TheIntersector;
myClosest : Integer from Standard;
myState : State from TopAbs;
-- Modified by skv - Wed Jul 12 15:15:38 2006 OCC12627 Begin
myIsHeadOrEnd : Boolean from Standard;
-- Modified by skv - Wed Jul 12 15:15:38 2006 OCC12627 End
end Classifier2d;
|