Mercurial > hg > orthanc-stone
comparison Applications/Samples/SingleFrameApplication.h @ 71:30c768873d47 wasm
OrthancSliceLoader::ScheduleLoadInstance
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 24 May 2017 10:27:18 +0200 |
parents | 298f375dcb68 |
children | 93b917b02fee |
comparison
equal
deleted
inserted
replaced
70:f73aed014bde | 71:30c768873d47 |
---|---|
51 { | 51 { |
52 } | 52 } |
53 | 53 |
54 virtual void NotifySlicesAvailable(const ParallelSlices& slices) | 54 virtual void NotifySlicesAvailable(const ParallelSlices& slices) |
55 { | 55 { |
56 printf("ICI\n"); | |
57 if (widget_ != NULL && | 56 if (widget_ != NULL && |
58 slices.GetSliceCount() > 0) | 57 slices.GetSliceCount() > 0) |
59 { | 58 { |
60 printf("GO\n"); | |
61 widget_->SetSlice(slices.GetSlice(0), 1.0 /* TODO */); | 59 widget_->SetSlice(slices.GetSlice(0), 1.0 /* TODO */); |
62 } | 60 } |
63 } | 61 } |
64 | 62 |
65 virtual void DeclareCommandLineOptions(boost::program_options::options_description& options) | 63 virtual void DeclareCommandLineOptions(boost::program_options::options_description& options) |
111 context.SetCentralWidget(widget.release()); | 109 context.SetCentralWidget(widget.release()); |
112 | 110 |
113 #else | 111 #else |
114 std::auto_ptr<LayerWidget> widget(new LayerWidget); | 112 std::auto_ptr<LayerWidget> widget(new LayerWidget); |
115 | 113 |
116 #if 0 | 114 #if 1 |
117 std::auto_ptr<OrthancFrameLayerSource> layer | 115 std::auto_ptr<OrthancFrameLayerSource> layer |
118 (new OrthancFrameLayerSource(context.GetWebService(), instance, frame)); | 116 (new OrthancFrameLayerSource(context.GetWebService(), instance, frame)); |
119 layer->SetObserver(*this); | 117 layer->SetObserver(*this); |
120 widget->AddLayer(layer.release()); | 118 widget->AddLayer(layer.release()); |
121 | 119 |