1 -- File: Select3D_SensitivePoint.cdl
2 -- Created: Thu Feb 23 09:46:31 1995
5 ---Copyright: Matra Datavision 1995
8 class SensitivePoint from Select3D
9 inherits SensitiveEntity from Select3D
11 ---Purpose: A framework to define sensitive 3D points.
16 Projector from Select3D,
18 EntityOwner from SelectBasics,
19 ListOfBox2d from SelectBasics,
22 Array1OfPnt2d from TColgp,
28 Create (OwnerId : EntityOwner from SelectBasics;
30 returns mutable SensitivePoint;
31 ---Purpose: Constructs a sensitive point object defined by the
32 -- owner OwnerId and the point Point.
35 Project (me:mutable;aProjector : Projector from Select3D)
38 ---Purpose:Converts the stored 3D point into a 2D point according
39 -- to <aProjector> ; this method is called by the selection Manager.
42 Areas(me:mutable; aresult : in out ListOfBox2d from SelectBasics)
45 ---Purpose: stores in <aresult> the 2D sensitive box which represents
46 -- the point area in the selection process.
48 GetConnected(me:mutable;aLocation: Location from TopLoc)
49 returns SensitiveEntity from Select3D is redefined static;
52 X,Y : Real from Standard;
53 aTol: Real from Standard;
54 DMin: out Real from Standard)
58 ---Purpose: returns true if the X,Y position matches the point
59 -- else gives the distance between them.
62 XMin,YMin,XMax,YMax : Real from Standard;
63 aTol: Real from Standard)
69 Polyline:Array1OfPnt2d from TColgp;
71 aTol: Real from Standard)
77 ComputeDepth(me;EyeLine: Lin from gp)
78 returns Real from Standard is redefined static;
81 Point(me) returns Pnt from gp;
82 ---Purpose: Returns the point used at the time of construction.
85 Dump(me; S: in out OStream;FullDump : Boolean from Standard = Standard_True) is redefined virtual;
89 mypoint : Pnt from Select3D;
90 myprojpt : Pnt2d from Select3D;