annotate Applications/Samples/CtPetDoseStructFusion/ThumbnailInteractor.h @ 540:7428c5dfa5df ct-pet-dose-struct

Initial commit non working app
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 19 Mar 2019 16:29:07 +0100
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
540
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
1 /**
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
2 * Stone of Orthanc
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
4 * Department, University Hospital of Liege, Belgium
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
5 * Copyright (C) 2017-2019 Osimis S.A., Belgium
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
6 *
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
7 * This program is free software: you can redistribute it and/or
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
8 * modify it under the terms of the GNU Affero General Public License
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
9 * as published by the Free Software Foundation, either version 3 of
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
10 * the License, or (at your option) any later version.
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
11 *
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
12 * This program is distributed in the hope that it will be useful, but
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
15 * Affero General Public License for more details.
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
16 *
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
17 * You should have received a copy of the GNU Affero General Public License
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
19 **/
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
20
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
21
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
22 #pragma once
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
23
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
24 #include "Framework/Widgets/IWorldSceneInteractor.h"
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
25
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
26 using namespace OrthancStone;
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
27
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
28 namespace CtPetDoseStructFusion {
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
29
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
30 class CtPetDoseStructFusionApplication;
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
31
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
32 class ThumbnailInteractor : public IWorldSceneInteractor
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
33 {
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
34 private:
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
35 CtPetDoseStructFusionApplication& application_;
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
36 public:
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
37 ThumbnailInteractor(CtPetDoseStructFusionApplication& application) :
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
38 application_(application)
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
39 {
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
40 }
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
41
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
42 virtual IWorldSceneMouseTracker* CreateMouseTracker(WorldSceneWidget& widget,
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
43 const ViewportGeometry& view,
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
44 MouseButton button,
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
45 KeyboardModifiers modifiers,
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
46 int viewportX,
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
47 int viewportY,
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
48 double x,
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
49 double y,
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
50 IStatusBar* statusBar,
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
51 const std::vector<Touch>& displayTouches);
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
52
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
53 virtual void MouseOver(CairoContext& context,
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
54 WorldSceneWidget& widget,
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
55 const ViewportGeometry& view,
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
56 double x,
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
57 double y,
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
58 IStatusBar* statusBar)
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
59 {}
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
60
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
61 virtual void MouseWheel(WorldSceneWidget& widget,
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
62 MouseWheelDirection direction,
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
63 KeyboardModifiers modifiers,
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
64 IStatusBar* statusBar)
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
65 {}
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
66
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
67 virtual void KeyPressed(WorldSceneWidget& widget,
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
68 KeyboardKeys key,
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
69 char keyChar,
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
70 KeyboardModifiers modifiers,
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
71 IStatusBar* statusBar)
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
72 {}
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
73
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
74 };
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
75
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
76
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
77 }