0024784: Move documentation in CDL files to proper location
[occt.git] / src / ViewerTest / ViewerTest_EventManager.cdl
1 -- Created on: 1998-08-27
2 -- Created by: Robert COUBLANC
3 -- Copyright (c) 1998-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
5 --
6 -- This file is part of Open CASCADE Technology software library.
7 --
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
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.
13 --
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
16
17 class EventManager from ViewerTest inherits TShared from MMgt
18
19         ---Purpose: used to manage mouse event (move,select,shiftselect)
20   --          By default the events are transmitted to interactive context.
21
22
23 uses
24     View                from V3d,
25     InteractiveContext  from AIS,
26     Array1OfPnt2d       from TColgp
27 is
28
29     Create (aView: View from V3d;
30             aCtx :InteractiveContext from AIS)
31     returns EventManager from ViewerTest;
32     
33     MoveTo (me:mutable;
34             xpix, ypix  : Integer from Standard) is virtual;
35     
36     Select(me:mutable) is virtual;
37     
38     ShiftSelect(me:mutable) is virtual;
39
40     Select(me:mutable;xmin,ymin,xmax,ymax:Integer) is virtual;
41     
42     ShiftSelect(me:mutable;xmin,ymin,xmax,ymax:Integer) is virtual;
43     
44     Select(me:mutable;thePolyline:Array1OfPnt2d from TColgp) is virtual;
45     
46     ShiftSelect(me:mutable;thePolyline:Array1OfPnt2d from TColgp) is virtual;
47
48     Context(me) returns InteractiveContext from AIS;
49     ---C++: inline
50     ---C++: return const&
51
52 fields
53
54     myCtx : InteractiveContext  from AIS;
55     myView: View                from V3d;
56     myX   : Integer             from Standard;
57     myY   : Integer             from Standard;
58     
59 end EventManager;