Mercurial > hg > orthanc-stone
annotate Framework/Widgets/IWorldSceneInteractor.h @ 166:4f661e2f7b6c wasm
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 22 Feb 2018 19:36:23 +0100 |
parents | e2fe9352f240 |
children | 7a031ac16b2d |
rev | line source |
---|---|
0 | 1 /** |
2 * Stone of Orthanc | |
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | |
4 * Department, University Hospital of Liege, Belgium | |
135
e2fe9352f240
upgrade to year 2018
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
110
diff
changeset
|
5 * Copyright (C) 2017-2018 Osimis S.A., Belgium |
0 | 6 * |
7 * This program is free software: you can redistribute it and/or | |
47 | 8 * modify it under the terms of the GNU Affero General Public License |
9 * as published by the Free Software Foundation, either version 3 of | |
10 * the License, or (at your option) any later version. | |
0 | 11 * |
12 * This program is distributed in the hope that it will be useful, but | |
13 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
47 | 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
15 * Affero General Public License for more details. | |
16 * | |
17 * You should have received a copy of the GNU Affero General Public License | |
0 | 18 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 **/ | |
20 | |
21 | |
22 #pragma once | |
23 | |
24 #include "IWorldSceneMouseTracker.h" | |
25 | |
26 #include "../Toolbox/ViewportGeometry.h" | |
27 #include "../Enumerations.h" | |
28 #include "../Viewport/IStatusBar.h" | |
29 | |
30 namespace OrthancStone | |
31 { | |
32 class WorldSceneWidget; | |
33 | |
53
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
47
diff
changeset
|
34 class IWorldSceneInteractor : public boost::noncopyable |
0 | 35 { |
36 public: | |
53
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
47
diff
changeset
|
37 virtual ~IWorldSceneInteractor() |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
47
diff
changeset
|
38 { |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
47
diff
changeset
|
39 } |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
47
diff
changeset
|
40 |
0 | 41 virtual IWorldSceneMouseTracker* CreateMouseTracker(WorldSceneWidget& widget, |
42 const ViewportGeometry& view, | |
43 MouseButton button, | |
44 double x, | |
45 double y, | |
46 IStatusBar* statusBar) = 0; | |
47 | |
48 virtual void MouseOver(CairoContext& context, | |
49 WorldSceneWidget& widget, | |
50 const ViewportGeometry& view, | |
51 double x, | |
52 double y, | |
53 IStatusBar* statusBar) = 0; | |
54 | |
55 virtual void MouseWheel(WorldSceneWidget& widget, | |
56 MouseWheelDirection direction, | |
57 KeyboardModifiers modifiers, | |
58 IStatusBar* statusBar) = 0; | |
59 | |
60 virtual void KeyPressed(WorldSceneWidget& widget, | |
61 char key, | |
62 KeyboardModifiers modifiers, | |
63 IStatusBar* statusBar) = 0; | |
64 }; | |
65 } |