0025265: Perspective projection - selecting front point of two
[occt.git] / src / Select3D / Select3D_SensitivePoint.cdl
CommitLineData
b311480e 1-- Created on: 1995-02-23
2-- Created by: Mister rmi
3-- Copyright (c) 1995-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--
d5f74e42 8-- This library is free software; you can redistribute it and/or modify it under
9-- the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 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
17class SensitivePoint from Select3D
18inherits SensitiveEntity from Select3D
19
20 ---Purpose: A framework to define sensitive 3D points.
21
22uses
23 Pnt from gp,
24 Pnt2d from gp,
25 Projector from Select3D,
26 Lin from gp,
27 EntityOwner from SelectBasics,
28 ListOfBox2d from SelectBasics,
4269bd1b 29 PickArgs from SelectBasics,
7fd59977 30 Location from TopLoc,
31 Box2d from Bnd,
32 Array1OfPnt2d from TColgp,
33 Pnt from Select3D,
34 Pnt2d from Select3D
35
36is
37
38 Create (OwnerId : EntityOwner from SelectBasics;
39 Point : Pnt from gp)
6e33d3ce 40 returns SensitivePoint;
7fd59977 41 ---Purpose: Constructs a sensitive point object defined by the
42 -- owner OwnerId and the point Point.
43
44
45 Project (me:mutable;aProjector : Projector from Select3D)
46 is redefined static;
47 ---Level: Public
48 ---Purpose:Converts the stored 3D point into a 2D point according
49 -- to <aProjector> ; this method is called by the selection Manager.
50
51
52 Areas(me:mutable; aresult : in out ListOfBox2d from SelectBasics)
53 is redefined static;
54 ---Level: Public
55 ---Purpose: stores in <aresult> the 2D sensitive box which represents
56 -- the point area in the selection process.
57
58 GetConnected(me:mutable;aLocation: Location from TopLoc)
59 returns SensitiveEntity from Select3D is redefined static;
4269bd1b 60
61 Matches (me : mutable;
62 thePickArgs : PickArgs from SelectBasics;
63 theMatchDMin, theMatchDepth : out Real from Standard)
64 returns Boolean is redefined static;
65 ---Level: Public
66 ---Purpose: Checks whether the sensitive entity matches the picking
67 -- detection area (close to the picking line).
68 -- For details please refer to base class declaration.
7fd59977 69
70 Matches (me :mutable;
71 XMin,YMin,XMax,YMax : Real from Standard;
72 aTol: Real from Standard)
73 returns Boolean
74 is static;
75
76
77 Matches (me :mutable;
78 Polyline:Array1OfPnt2d from TColgp;
79 aBox:Box2d from Bnd;
80 aTol: Real from Standard)
81 returns Boolean
82 is redefined virtual;
83 ---Level: Public
84
85
86 ComputeDepth(me;EyeLine: Lin from gp)
4269bd1b 87 returns Real from Standard;
7fd59977 88
89
90 Point(me) returns Pnt from gp;
91 ---Purpose: Returns the point used at the time of construction.
92
93
94 Dump(me; S: in out OStream;FullDump : Boolean from Standard = Standard_True) is redefined virtual;
95
96fields
97
98 mypoint : Pnt from Select3D;
99 myprojpt : Pnt2d from Select3D;
100
101
102end SensitivePoint;
103
104