annotate OrthancStone/Sources/Viewport/IViewportInteractor.h @ 1574:fb5e620430ae

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 21 Sep 2020 18:29:53 +0200
parents 314b6dc507d9
children 4fb8fdf03314
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1557
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 /**
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2 * Stone of Orthanc
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
4 * Department, University Hospital of Liege, Belgium
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
5 * Copyright (C) 2017-2020 Osimis S.A., Belgium
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
6 *
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
7 * This program is free software: you can redistribute it and/or
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
8 * modify it under the terms of the GNU Affero General Public License
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
9 * as published by the Free Software Foundation, either version 3 of
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
10 * the License, or (at your option) any later version.
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
11 *
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
12 * This program is distributed in the hope that it will be useful, but
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
15 * Affero General Public License for more details.
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
16 *
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
17 * You should have received a copy of the GNU Affero General Public License
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
19 **/
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
20
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
21 #pragma once
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
22
1558
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1557
diff changeset
23 #include "IViewport.h"
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1557
diff changeset
24 #include "../Scene2DViewport/IFlexiblePointerTracker.h"
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1557
diff changeset
25
1557
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
26 namespace OrthancStone
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
27 {
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
28 class IViewportInteractor : public boost::noncopyable
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
29 {
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
30 public:
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
31 virtual ~IViewportInteractor()
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
32 {
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
33 }
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
34
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
35 virtual IFlexiblePointerTracker* CreateTracker(boost::shared_ptr<IViewport> viewport,
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
36 const PointerEvent& event,
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
37 unsigned int viewportWidth,
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
38 unsigned int viewportHeight) = 0;
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
39 };
a6f339d8e4c2 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
40 }