Mercurial > hg > orthanc-stone
annotate OrthancStone/Sources/StoneInitialization.h @ 1512:244ad1e4e76a
reorganization of folders
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 07 Jul 2020 16:21:02 +0200 |
parents | Framework/StoneInitialization.h@15173a383a00 |
children | 5887a4f8594b |
rev | line source |
---|---|
610
0c4c0693b97c
OrthancStone::StoneInitialize()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1 /** |
0c4c0693b97c
OrthancStone::StoneInitialize()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2 * Stone of Orthanc |
0c4c0693b97c
OrthancStone::StoneInitialize()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics |
0c4c0693b97c
OrthancStone::StoneInitialize()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
4 * Department, University Hospital of Liege, Belgium |
1270
2d8ab34c8c91
upgrade to year 2020
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
663
diff
changeset
|
5 * Copyright (C) 2017-2020 Osimis S.A., Belgium |
610
0c4c0693b97c
OrthancStone::StoneInitialize()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
6 * |
0c4c0693b97c
OrthancStone::StoneInitialize()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
7 * This program is free software: you can redistribute it and/or |
0c4c0693b97c
OrthancStone::StoneInitialize()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
8 * modify it under the terms of the GNU Affero General Public License |
0c4c0693b97c
OrthancStone::StoneInitialize()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
9 * as published by the Free Software Foundation, either version 3 of |
0c4c0693b97c
OrthancStone::StoneInitialize()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
10 * the License, or (at your option) any later version. |
0c4c0693b97c
OrthancStone::StoneInitialize()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
11 * |
0c4c0693b97c
OrthancStone::StoneInitialize()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
12 * This program is distributed in the hope that it will be useful, but |
0c4c0693b97c
OrthancStone::StoneInitialize()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
13 * WITHOUT ANY WARRANTY; without even the implied warranty of |
0c4c0693b97c
OrthancStone::StoneInitialize()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
0c4c0693b97c
OrthancStone::StoneInitialize()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
15 * Affero General Public License for more details. |
0c4c0693b97c
OrthancStone::StoneInitialize()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
16 * |
0c4c0693b97c
OrthancStone::StoneInitialize()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
17 * You should have received a copy of the GNU Affero General Public License |
0c4c0693b97c
OrthancStone::StoneInitialize()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
18 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
0c4c0693b97c
OrthancStone::StoneInitialize()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
19 **/ |
0c4c0693b97c
OrthancStone::StoneInitialize()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
20 |
0c4c0693b97c
OrthancStone::StoneInitialize()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
21 |
0c4c0693b97c
OrthancStone::StoneInitialize()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
22 #pragma once |
0c4c0693b97c
OrthancStone::StoneInitialize()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
23 |
1236
358461330978
global function GetWebGLViewportsRegistry()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
663
diff
changeset
|
24 #if !defined(ORTHANC_ENABLE_WASM) |
358461330978
global function GetWebGLViewportsRegistry()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
663
diff
changeset
|
25 # error Macro ORTHANC_ENABLE_WASM must be defined |
358461330978
global function GetWebGLViewportsRegistry()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
663
diff
changeset
|
26 #endif |
358461330978
global function GetWebGLViewportsRegistry()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
663
diff
changeset
|
27 |
358461330978
global function GetWebGLViewportsRegistry()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
663
diff
changeset
|
28 #if ORTHANC_ENABLE_WASM == 1 |
358461330978
global function GetWebGLViewportsRegistry()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
663
diff
changeset
|
29 # include "Viewport/WebGLViewportsRegistry.h" |
358461330978
global function GetWebGLViewportsRegistry()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
663
diff
changeset
|
30 #endif |
358461330978
global function GetWebGLViewportsRegistry()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
663
diff
changeset
|
31 |
1455
30deba7bc8e2
simplifying include_directories
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1279
diff
changeset
|
32 #include <Logging.h> |
663
b8b2bb75fde1
fix to include Stone within an Orthanc plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
610
diff
changeset
|
33 |
610
0c4c0693b97c
OrthancStone::StoneInitialize()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
34 namespace OrthancStone |
0c4c0693b97c
OrthancStone::StoneInitialize()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
35 { |
1455
30deba7bc8e2
simplifying include_directories
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1279
diff
changeset
|
36 void StoneInitialize(void* pluginContext); |
30deba7bc8e2
simplifying include_directories
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1279
diff
changeset
|
37 |
1457 | 38 inline void StoneInitialize() |
1455
30deba7bc8e2
simplifying include_directories
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1279
diff
changeset
|
39 { |
30deba7bc8e2
simplifying include_directories
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1279
diff
changeset
|
40 StoneInitialize(NULL); |
30deba7bc8e2
simplifying include_directories
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1279
diff
changeset
|
41 } |
610
0c4c0693b97c
OrthancStone::StoneInitialize()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
42 |
0c4c0693b97c
OrthancStone::StoneInitialize()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
43 void StoneFinalize(); |
1236
358461330978
global function GetWebGLViewportsRegistry()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
663
diff
changeset
|
44 |
358461330978
global function GetWebGLViewportsRegistry()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
663
diff
changeset
|
45 #if ORTHANC_ENABLE_WASM == 1 |
358461330978
global function GetWebGLViewportsRegistry()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
663
diff
changeset
|
46 void SetWebGLViewportsRegistryTimeout(double timeout); |
358461330978
global function GetWebGLViewportsRegistry()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
663
diff
changeset
|
47 #endif |
358461330978
global function GetWebGLViewportsRegistry()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
663
diff
changeset
|
48 |
358461330978
global function GetWebGLViewportsRegistry()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
663
diff
changeset
|
49 #if ORTHANC_ENABLE_WASM == 1 |
358461330978
global function GetWebGLViewportsRegistry()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
663
diff
changeset
|
50 WebGLViewportsRegistry& GetWebGLViewportsRegistry(); |
358461330978
global function GetWebGLViewportsRegistry()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
663
diff
changeset
|
51 #endif |
610
0c4c0693b97c
OrthancStone::StoneInitialize()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
52 } |