annotate Applications/Samples/SampleMainNative.cpp @ 585:b9ce24c606ae

TextSceneLayer
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 19 Apr 2019 17:57:58 +0200
parents adc1be326b62
children b537002f83a9 2d8ab34c8c91
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 /**
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2 * Stone of Orthanc
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
4 * Department, University Hospital of Liege, Belgium
439
b70e9be013e4 preparing for 2019
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 294
diff changeset
5 * Copyright (C) 2017-2019 Osimis S.A., Belgium
0
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
6 *
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
7 * This program is free software: you can redistribute it and/or
47
28956ed68280 agpl license
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 40
diff changeset
8 * modify it under the terms of the GNU Affero General Public License
28956ed68280 agpl license
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 40
diff changeset
9 * as published by the Free Software Foundation, either version 3 of
28956ed68280 agpl license
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 40
diff changeset
10 * the License, or (at your option) any later version.
0
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
11 *
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
12 * This program is distributed in the hope that it will be useful, but
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
47
28956ed68280 agpl license
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 40
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28956ed68280 agpl license
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 40
diff changeset
15 * Affero General Public License for more details.
28956ed68280 agpl license
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 40
diff changeset
16 *
28956ed68280 agpl license
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 40
diff changeset
17 * You should have received a copy of the GNU Affero General Public License
0
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
19 **/
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
20
242
092db46c6291 improved SDL/Wasm unification
am@osimis.io
parents: 237
diff changeset
21
237
b4642964c355 SimpleViewer demo running both with SDL and Wasm
am@osimis.io
parents: 235
diff changeset
22 #include "SampleList.h"
276
5de5699ad570 first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents: 275
diff changeset
23 #if ORTHANC_ENABLE_SDL==1
294
faccc4b07b92 renamings
am@osimis.io
parents: 293
diff changeset
24 #include "../Sdl/SdlStoneApplicationRunner.h"
276
5de5699ad570 first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents: 275
diff changeset
25 #endif
5de5699ad570 first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents: 275
diff changeset
26 #if ORTHANC_ENABLE_QT==1
285
3c190e2bb3af refactoring: ApplicationRunner + app hierarchy
am@osimis.io
parents: 276
diff changeset
27 #include "Qt/SampleQtApplicationRunner.h"
276
5de5699ad570 first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents: 275
diff changeset
28 #endif
251
192e6e349e69 first usage of new message system (in SDL only)
am@osimis.io
parents: 242
diff changeset
29 #include "../../Framework/Messages/MessageBroker.h"
0
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
30
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
31 int main(int argc, char* argv[])
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
32 {
251
192e6e349e69 first usage of new message system (in SDL only)
am@osimis.io
parents: 242
diff changeset
33 OrthancStone::MessageBroker broker;
285
3c190e2bb3af refactoring: ApplicationRunner + app hierarchy
am@osimis.io
parents: 276
diff changeset
34 SampleApplication sampleStoneApplication(broker);
0
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
35
276
5de5699ad570 first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents: 275
diff changeset
36 #if ORTHANC_ENABLE_SDL==1
293
017044be141b renaming
am@osimis.io
parents: 285
diff changeset
37 OrthancStone::SdlStoneApplicationRunner sdlApplicationRunner(broker, sampleStoneApplication);
017044be141b renaming
am@osimis.io
parents: 285
diff changeset
38 return sdlApplicationRunner.Execute(argc, argv);
276
5de5699ad570 first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents: 275
diff changeset
39 #endif
5de5699ad570 first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents: 275
diff changeset
40 #if ORTHANC_ENABLE_QT==1
285
3c190e2bb3af refactoring: ApplicationRunner + app hierarchy
am@osimis.io
parents: 276
diff changeset
41 OrthancStone::Samples::SampleQtApplicationRunner qtAppRunner(broker, sampleStoneApplication);
3c190e2bb3af refactoring: ApplicationRunner + app hierarchy
am@osimis.io
parents: 276
diff changeset
42 return qtAppRunner.Execute(argc, argv);
276
5de5699ad570 first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents: 275
diff changeset
43 #endif
0
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
44 }
573
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 439
diff changeset
45