comparison Applications/Samples/SingleVolumeApplication.h @ 105:e0ddd8cad909 wasm

cleaning
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 01 Jun 2017 12:33:24 +0200
parents eccd64f8e297
children 4c5f7cda8624
comparison
equal deleted inserted replaced
104:eccd64f8e297 105:e0ddd8cad909
98 98
99 #if 1 99 #if 1
100 std::auto_ptr<OrthancVolumeImage> volume(new OrthancVolumeImage(context.GetWebService())); 100 std::auto_ptr<OrthancVolumeImage> volume(new OrthancVolumeImage(context.GetWebService()));
101 volume->ScheduleLoadSeries(series); 101 volume->ScheduleLoadSeries(series);
102 102
103 { 103 widget->AddLayer(new VolumeImageSource(*volume));
104 std::auto_ptr<VolumeImageSource> source(new VolumeImageSource(*volume));
105 widget->AddLayer(source.release());
106 }
107 104
108 context.AddInteractor(new VolumeImageInteractor(*volume, *widget, projection)); 105 context.AddInteractor(new VolumeImageInteractor(*volume, *widget, projection));
109 context.AddVolume(volume.release()); 106 context.AddVolume(volume.release());
110 #else 107 #else
111 std::auto_ptr<OrthancVolumeImage> ct(new OrthancVolumeImage(context.GetWebService())); 108 std::auto_ptr<OrthancVolumeImage> ct(new OrthancVolumeImage(context.GetWebService()));
112 ct->ScheduleLoadSeries("dd069910-4f090474-7d2bba07-e5c10783-f9e4fb1d"); 109 ct->ScheduleLoadSeries("dd069910-4f090474-7d2bba07-e5c10783-f9e4fb1d");
113 110
114 std::auto_ptr<OrthancVolumeImage> pet(new OrthancVolumeImage(context.GetWebService())); 111 std::auto_ptr<OrthancVolumeImage> pet(new OrthancVolumeImage(context.GetWebService()));
115 pet->ScheduleLoadSeries("aabad2e7-80702b5d-e599d26c-4f13398e-38d58a9e"); 112 pet->ScheduleLoadSeries("aabad2e7-80702b5d-e599d26c-4f13398e-38d58a9e");
116 113
114 widget->AddLayer(new VolumeImageSource(*ct));
115 widget->AddLayer(new VolumeImageSource(*pet));
116
117 context.AddInteractor(new VolumeImageInteractor(*pet, *widget, projection)); 117 context.AddInteractor(new VolumeImageInteractor(*pet, *widget, projection));
118
119 {
120 std::auto_ptr<VolumeImageSource> source(new VolumeImageSource(*ct));
121 widget->AddLayer(source.release());
122 }
123
124 {
125 std::auto_ptr<VolumeImageSource> source(new VolumeImageSource(*pet));
126 widget->AddLayer(source.release());
127 }
128
129 context.AddVolume(ct.release()); 118 context.AddVolume(ct.release());
130 context.AddVolume(pet.release()); 119 context.AddVolume(pet.release());
131 120
132 { 121 {
133 RenderStyle s; 122 RenderStyle s;