Mercurial > hg > orthanc-stone
comparison Applications/Samples/SampleApplicationContext.h @ 235:ce4405d98b92 am
Added SimpleViewerApplication (working in SDL)
author | am@osimis.io |
---|---|
date | Tue, 19 Jun 2018 16:02:41 +0200 |
parents | 84844649a8fd |
children | b4642964c355 |
comparison
equal
deleted
inserted
replaced
234:9afb50d1ac14 | 235:ce4405d98b92 |
---|---|
30 | 30 |
31 #include <list> | 31 #include <list> |
32 #include <boost/thread.hpp> | 32 #include <boost/thread.hpp> |
33 | 33 |
34 | 34 |
35 #if ORTHANC_ENABLE_SDL==1 | |
36 #include "../Sdl/BasicSdlApplicationContext.h" | |
37 #else | |
38 #include "../Wasm/BasicWasmApplicationContext.h" | |
39 #endif | |
40 | |
35 namespace OrthancStone | 41 namespace OrthancStone |
36 { | 42 { |
37 | 43 |
38 #if ORTHANC_ENABLE_SDL | 44 #if ORTHANC_ENABLE_SDL==1 |
39 #include "../Sdl/BasicSdlApplicationContext.h" | 45 typedef BasicSdlApplicationContext BasicApplicationContext_; |
40 typedef BasicSdlApplicationContext BasicApplicationContext_; | |
41 #else | 46 #else |
42 #include "../Wasm/BasicWasmApplicationContext.h" | 47 typedef BasicWasmApplicationContext BasicApplicationContext_; |
43 typedef BasicWasmApplicationContext BasicApplicationContext_; | |
44 #endif | 48 #endif |
45 | 49 |
46 class SampleApplicationContext : public BasicApplicationContext_ | 50 class SampleApplicationContext : public BasicApplicationContext_ |
47 { | 51 { |
48 private: | 52 private: |
54 VolumeLoaders volumeLoaders_; | 58 VolumeLoaders volumeLoaders_; |
55 Interactors interactors_; | 59 Interactors interactors_; |
56 | 60 |
57 public: | 61 public: |
58 | 62 |
59 SampleApplicationContext(Orthanc::WebServiceParameters& orthanc); | 63 SampleApplicationContext(Orthanc::WebServiceParameters& orthanc, WidgetViewport* centralViewport); |
60 | 64 |
61 virtual ~SampleApplicationContext(); | 65 virtual ~SampleApplicationContext(); |
62 | 66 |
63 ISlicedVolume& AddSlicedVolume(ISlicedVolume* volume); | 67 ISlicedVolume& AddSlicedVolume(ISlicedVolume* volume); |
64 | 68 |