blob: 108ef65cdc90be4df605fbe81cebb1aabc5e6b81 (
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
|
-- File: StdSelect_ViewerSelector2d.cdl
-- Created: Thu Feb 23 17:08:17 1995
-- Author: Mister rmi
-- <rmi@photon>
---Copyright: Matra Datavision 1995
class ViewerSelector2d from StdSelect inherits ViewerSelector from SelectMgr
---Purpose: A viewer selection framework.
-- The objects defined in this framework can be passed to a selection manager.
uses
View from V2d,
Projector from Select2D,
Selection from SelectMgr,
GraphicObject from Graphic2d
is
Create returns mutable ViewerSelector2d from StdSelect;
--- Purpose: Constructs an empty viewer selection framework.
Create (aProjector: Projector from Select2D)
returns mutable ViewerSelector2d from StdSelect;
---Purpose: Constructs the viewer selection framework defined by
-- the projector aProjector.
Set(me:mutable; aSensitivity : Integer) is static;
---Level: Public
---Purpose: Sets a pixel tolerance for the selection.
-- will be converted for picking in a view.
Set(me:mutable; aProjector: Projector from Select2D) is static;
---Purpose: Sets the new projector aProjector.
Convert(me:mutable;aSelection:mutable Selection from SelectMgr)
is redefined static;
Pick (me : mutable;XPix,YPix:Integer;
aView : View from V2d) is static;
---Purpose: Returns the pixel coordinates of the mouse Xpix, Ypix
-- in the view aView.
Pick (me:mutable;XPMin,YPMin,XPMax,YPMax:Integer;aView:View from V2d) is static;
---Purpose: Returns the minimum and maximum pixel coordinates
-- XPMin, YPMin and XPMax, YPMax defining a 2D area in the view aView.
Projector (me) returns any Projector from Select2D;
---Purpose: Returns the projector which defines this framework.
---C++: inline
DisplayAreas (me:mutable;aView:View from V2d) is static;
---Purpose: Displays the active areas in the given view;
ClearAreas(me:mutable) is static;
---Purpose: Clear the displayed sensitive areas from this framework..
fields
myprj : Projector from Select2D;
mypixtol : Integer;
mygo : GraphicObject from Graphic2d;
end ViewerSelector2d;
|