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
6 -- This file is part of Open CASCADE Technology software library.
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.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
17 class EventManager from ViewerTest inherits TShared from MMgt
19 ---Purpose: used to manage mouse event (move,select,shiftselect)
20 -- By default the events are transmitted to interactive context.
25 InteractiveContext from AIS,
26 Array1OfPnt2d from TColgp
29 Create (aView: View from V3d;
30 aCtx :InteractiveContext from AIS)
31 returns EventManager from ViewerTest;
34 xpix, ypix : Integer from Standard) is virtual;
36 Select(me:mutable) is virtual;
38 ShiftSelect(me:mutable) is virtual;
40 Select(me:mutable;xmin,ymin,xmax,ymax:Integer) is virtual;
42 ShiftSelect(me:mutable;xmin,ymin,xmax,ymax:Integer) is virtual;
44 Select(me:mutable;thePolyline:Array1OfPnt2d from TColgp) is virtual;
46 ShiftSelect(me:mutable;thePolyline:Array1OfPnt2d from TColgp) is virtual;
48 Context(me) returns InteractiveContext from AIS;
54 myCtx : InteractiveContext from AIS;
55 myView: View from V3d;
56 myX : Integer from Standard;
57 myY : Integer from Standard;