0024428: Implementation of LGPL license
[occt.git] / src / TopClass / TopClass_Classifier3d.cdl
CommitLineData
b311480e 1-- Created on: 1994-03-30
2-- Created by: Laurent BUCHARD
3-- Copyright (c) 1994-1999 Matra Datavision
973c2be1 4-- Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5--
973c2be1 6-- This file is part of Open CASCADE Technology software library.
b311480e 7--
973c2be1 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.
b311480e 13--
973c2be1 14-- Alternatively, this file may be used under the terms of Open CASCADE
15-- commercial license or contractual agreement.
7fd59977 16
17generic class Classifier3d from TopClass
18 (TheIntersector as any) -- as Intersection3d from TopClass
19
20 ---Purpose:
21
22uses
23 Lin from gp,
24 CurveTransition from TopTrans,
25 Orientation from TopAbs,
26 State from TopAbs,
27 Face from TopoDS
28
29raises
30 DomainError from Standard
31
32is
33 Create returns Classifier3d from TopClass;
34 ---Purpose: Creates an undefined classifier.
35
36 Reset(me : in out; L : Lin from gp;
37 P : Real from Standard;
38 Tol : Real from Standard)
39 ---Purpose: Starts a classification process. The point to
40 -- classify is the origin of the line <L>. <P> is
41 -- the original length of the segment on <L> used to
42 -- compute intersections. <Tol> is the tolerance
43 -- attached to the intersections.
44 is static;
45
46 Compare(me : in out; F : Face from TopoDS;
47 Or : Orientation from TopAbs)
48 ---Purpose: Updates the classification process with the face
49 -- <F> from the boundary.
50 raises
51 DomainError -- The classifier has not been set
52 is static;
53
54 Parameter(me) returns Real
55 ---Purpose: Returns the current value of the parameter.
56 ---C++: inline
57 is static;
58
59 HasIntersection(me) returns Boolean from Standard
60 ---Purpose: Returns True if an intersection is computed.
61 is static;
62
63 Intersector(me : in out) returns TheIntersector
64 ---Purpose: Returns the intersecting algorithm.
65 --
66 ---C++: inline
67 ---C++: return &
68 is static;
69
70 State(me) returns State from TopAbs
71 ---Purpose: Returns the current state of the point.
72 --
73 ---C++: inline
74 is static;
75
76
77fields
78 isSet : Boolean from Standard;
79 myFace : Face from TopoDS;
80 myLin : Lin from gp;
81 myParam : Real from Standard;
82 myTolerance : Real from Standard;
83 myState : State from TopAbs;
84 hasIntersect : Boolean from Standard;
85 myIntersector : TheIntersector;
86
87end Classifier3d;
88