Mercurial > hg > orthanc-stone
annotate Framework/Widgets/IWorldSceneInteractor.h @ 274:dc1beee33134 am-2
split SdlApplication into NativeApplication and SdlApplication
author | am@osimis.io |
---|---|
date | Fri, 24 Aug 2018 13:52:55 +0200 |
parents | fccffbf99ba1 |
children | 300d8b8c48b3 |
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 | |
134
4cff7b1ed31d
upgrade to year 2018
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
47
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" | |
194
7a031ac16b2d
rename Enumerations.h to StoneEnumerations.h to avoid clashes with Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
135
diff
changeset
|
27 #include "../StoneEnumerations.h" |
0 | 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 } |