Mercurial > hg > orthanc-stone
annotate Framework/Widgets/IWorldSceneInteractor.h @ 79:4e21f6b3aa0d wasm
cleaning up
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 24 May 2017 21:23:29 +0200 |
parents | d2adc6189a95 |
children | 53025eecbc95 |
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 | |
40
7207a407bcd8
shared copyright with osimis
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
0
diff
changeset
|
5 * Copyright (C) 2017 Osimis, 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/SliceGeometry.h" | |
27 #include "../Toolbox/ViewportGeometry.h" | |
28 #include "../Enumerations.h" | |
29 #include "../Viewport/IStatusBar.h" | |
30 | |
31 namespace OrthancStone | |
32 { | |
33 class WorldSceneWidget; | |
34 | |
53
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
47
diff
changeset
|
35 class IWorldSceneInteractor : public boost::noncopyable |
0 | 36 { |
37 public: | |
53
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
47
diff
changeset
|
38 virtual ~IWorldSceneInteractor() |
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 } |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
47
diff
changeset
|
41 |
0 | 42 virtual IWorldSceneMouseTracker* CreateMouseTracker(WorldSceneWidget& widget, |
43 const ViewportGeometry& view, | |
44 MouseButton button, | |
45 double x, | |
46 double y, | |
47 IStatusBar* statusBar) = 0; | |
48 | |
49 virtual void MouseOver(CairoContext& context, | |
50 WorldSceneWidget& widget, | |
51 const ViewportGeometry& view, | |
52 double x, | |
53 double y, | |
54 IStatusBar* statusBar) = 0; | |
55 | |
56 virtual void MouseWheel(WorldSceneWidget& widget, | |
57 MouseWheelDirection direction, | |
58 KeyboardModifiers modifiers, | |
59 IStatusBar* statusBar) = 0; | |
60 | |
61 virtual void KeyPressed(WorldSceneWidget& widget, | |
62 char key, | |
63 KeyboardModifiers modifiers, | |
64 IStatusBar* statusBar) = 0; | |
65 }; | |
66 } |