comparison Applications/Samples/CtPetDoseStructFusion/MainWidgetInteractor.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
comparison
equal deleted inserted replaced
538:9d124a81c34a 540:7428c5dfa5df
1 /**
2 * Stone of Orthanc
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
4 * Department, University Hospital of Liege, Belgium
5 * Copyright (C) 2017-2019 Osimis S.A., Belgium
6 *
7 * This program is free software: you can redistribute it and/or
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.
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
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
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 **/
20
21 #pragma once
22
23 #include "Framework/Widgets/IWorldSceneInteractor.h"
24
25 using namespace OrthancStone;
26
27 namespace CtPetDoseStructFusion {
28
29 class CtPetDoseStructFusionApplication;
30
31 class MainWidgetInteractor : public IWorldSceneInteractor
32 {
33 private:
34 CtPetDoseStructFusionApplication& application_;
35
36 public:
37 MainWidgetInteractor(CtPetDoseStructFusionApplication& application) :
38 application_(application)
39 {
40 }
41
42 /**
43 WorldSceneWidget:
44 */
45 virtual IWorldSceneMouseTracker* CreateMouseTracker(WorldSceneWidget& widget,
46 const ViewportGeometry& view,
47 MouseButton button,
48 KeyboardModifiers modifiers,
49 int viewportX,
50 int viewportY,
51 double x,
52 double y,
53 IStatusBar* statusBar,
54 const std::vector<Touch>& displayTouches);
55
56 virtual void MouseOver(CairoContext& context,
57 WorldSceneWidget& widget,
58 const ViewportGeometry& view,
59 double x,
60 double y,
61 IStatusBar* statusBar);
62
63 virtual void MouseWheel(WorldSceneWidget& widget,
64 MouseWheelDirection direction,
65 KeyboardModifiers modifiers,
66 IStatusBar* statusBar);
67
68 virtual void KeyPressed(WorldSceneWidget& widget,
69 KeyboardKeys key,
70 char keyChar,
71 KeyboardModifiers modifiers,
72 IStatusBar* statusBar);
73 };
74
75
76 }