1 -- File: Select3D_SensitiveCurve.cdl
2 -- Created: Fri Mar 10 16:13:39 1995
5 -- Modified on july 97 by ROB : Field HArray instead Of ArrayOfPnt3D
6 -- (connected entities)
7 ---Copyright: Matra Datavision 1995
10 class SensitiveCurve from Select3D
11 inherits SensitivePoly from Select3D
13 ---Purpose: A framework to define a sensitive 3D curve.
14 -- In some cases this class can raise Standard_ConstructionError and
15 -- Standard_OutOfRange exceptions. For more details see Select3D_SensitivePoly.
20 Projector from Select3D,
22 EntityOwner from SelectBasics,
23 ListOfBox2d from SelectBasics,
25 Array1OfPnt from TColgp,
26 Array1OfPnt2d from TColgp,
27 HArray1OfPnt from TColgp,
30 SensitiveEntity from Select3D
33 ConstructionError from Standard,
34 OutOfRange from Standard
38 Create (OwnerId : EntityOwner from SelectBasics;
39 TheCurve : Curve from Geom;
40 MaxPoints : Integer = 17)
41 returns mutable SensitiveCurve;
43 ---Purpose: Constructs a sensitive curve object defined by the
44 -- owner OwnerId, the curve TheCurve, and the
45 -- maximum number of points on the curve: MaxPoints.
47 Create (OwnerId : EntityOwner from SelectBasics;
48 ThePoints : HArray1OfPnt from TColgp)
49 returns mutable SensitiveCurve;
51 ---Purpose: Constructs a sensitive curve object defined by the
52 -- owner OwnerId and the set of points ThePoints.
54 Create (OwnerId : EntityOwner from SelectBasics;
55 ThePoints : Array1OfPnt from TColgp)
56 returns mutable SensitiveCurve;
58 ---Purpose: Creation of Sensitive Curve from Points.
59 -- Warning : This Method should disappear in the next version...
62 X,Y : Real from Standard;
63 aTol: Real from Standard;
64 DMin: out Real from Standard)
69 XMin,YMin,XMax,YMax : Real from Standard;
70 aTol: Real from Standard)
75 Polyline:Array1OfPnt2d from TColgp;
77 aTol: Real from Standard)
83 ComputeDepth(me;EyeLine: Lin from gp)
84 returns Real from Standard is redefined static;
87 GetLastDetected(me) returns Integer from Standard;
88 ---Purpose: Gets index of last detected segment
92 ---Category: Internal Methods
93 Dump(me; S: in out OStream;FullDump : Boolean from Standard = Standard_True) is redefined virtual;
95 LoadPoints(me:mutable;aCurve:Curve from Geom;NbPoints: Integer) is static private;
97 GetConnected(me: mutable; theLocation : Location from TopLoc)
98 returns SensitiveEntity from Select3D
101 ---Purpose: Returns the copy of this
104 mylastseg : Integer from Standard;
105 myCurve : Curve from Geom;