comparison Applications/Samples/SingleVolumeApplication.h @ 369:557c8ff1db5c am-2

integration mainline->am-2
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 05 Nov 2018 10:03:14 +0100
parents ce4405d98b92 ce48c3b3b0e9
children 3e6e10a5a6c8
comparison
equal deleted inserted replaced
367:face7b7008de 369:557c8ff1db5c
171 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); 171 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange);
172 } 172 }
173 173
174 std::auto_ptr<LayerWidget> widget(new LayerWidget); 174 std::auto_ptr<LayerWidget> widget(new LayerWidget);
175 175
176 #if 0 176 #if 1
177 std::auto_ptr<OrthancVolumeImage> volume(new OrthancVolumeImage(context_->GetWebService(), true)); 177 std::auto_ptr<OrthancVolumeImage> volume(new OrthancVolumeImage(context.GetWebService(), true));
178 if (series.empty()) 178 if (series.empty())
179 { 179 {
180 volume->ScheduleLoadInstance(instance); 180 volume->ScheduleLoadInstance(instance);
181 } 181 }
182 else 182 else
187 widget->AddLayer(new VolumeImageSource(*volume)); 187 widget->AddLayer(new VolumeImageSource(*volume));
188 188
189 context_->AddInteractor(new Interactor(*volume, *widget, projection, 0)); 189 context_->AddInteractor(new Interactor(*volume, *widget, projection, 0));
190 context_->AddSlicedVolume(volume.release()); 190 context_->AddSlicedVolume(volume.release());
191 191
192 if (1)
193 {
194 RenderStyle s;
195 //s.drawGrid_ = true;
196 s.alpha_ = 1;
197 s.windowing_ = ImageWindowing_Bone;
198 widget->SetLayerStyle(0, s);
199 }
200 else
192 { 201 {
193 RenderStyle s; 202 RenderStyle s;
194 s.alpha_ = 1; 203 s.alpha_ = 1;
195 s.applyLut_ = true; 204 s.applyLut_ = true;
196 s.lut_ = Orthanc::EmbeddedResources::COLORMAP_JET; 205 s.lut_ = Orthanc::EmbeddedResources::COLORMAP_JET;