Mercurial > hg > orthanc-stone
annotate Applications/Samples/SampleMainNative.cpp @ 593:6bf8f881fcb5
OpenGLBasicPolylineRenderer
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 26 Apr 2019 13:04:56 +0200 |
parents | adc1be326b62 |
children | b537002f83a9 2d8ab34c8c91 |
rev | line source |
---|---|
0 | 1 /** |
2 * Stone of Orthanc | |
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | |
4 * Department, University Hospital of Liege, Belgium | |
439 | 5 * Copyright (C) 2017-2019 Osimis S.A., Belgium |
0 | 6 * |
7 * This program is free software: you can redistribute it and/or | |
47 | 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. | |
0 | 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 | |
47 | 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 | |
0 | 18 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 **/ | |
20 | |
242 | 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 | 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 | 30 |
31 int main(int argc, char* argv[]) | |
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 | 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 | 37 OrthancStone::SdlStoneApplicationRunner sdlApplicationRunner(broker, sampleStoneApplication); |
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 | 44 } |
573 | 45 |