comparison Framework/Loaders/OrthancSeriesVolumeProgressiveLoader.cpp @ 1075:81b29bc7c3d4 broker

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 17 Oct 2019 14:39:51 +0200
parents 9d42f89b8c3c
children 8e3763d1736a
comparison
equal deleted inserted replaced
1074:229ea1389845 1075:81b29bc7c3d4
290 tmp->SetExpectedPixelFormat(slice.GetExpectedPixelFormat()); 290 tmp->SetExpectedPixelFormat(slice.GetExpectedPixelFormat());
291 command.reset(tmp.release()); 291 command.reset(tmp.release());
292 } 292 }
293 293
294 command->SetPayload(new Orthanc::SingleValueObject<unsigned int>(sliceIndex)); 294 command->SetPayload(new Orthanc::SingleValueObject<unsigned int>(sliceIndex));
295 oracle_.Schedule(*this, command.release()); 295
296 boost::shared_ptr<IObserver> observer(GetSharedObserver());
297 oracle_.Schedule(observer, command.release());
296 } 298 }
297 else 299 else
298 { 300 {
299 // loading is finished! 301 // loading is finished!
300 volumeImageReadyInHighQuality_ = true; 302 volumeImageReadyInHighQuality_ = true;
477 479
478 std::auto_ptr<OrthancRestApiCommand> command(new OrthancRestApiCommand); 480 std::auto_ptr<OrthancRestApiCommand> command(new OrthancRestApiCommand);
479 command->SetUri("/series/" + seriesId + "/instances-tags"); 481 command->SetUri("/series/" + seriesId + "/instances-tags");
480 482
481 // LOG(TRACE) << "OrthancSeriesVolumeProgressiveLoader::LoadSeries about to call oracle_.Schedule"; 483 // LOG(TRACE) << "OrthancSeriesVolumeProgressiveLoader::LoadSeries about to call oracle_.Schedule";
482 oracle_.Schedule(*this, command.release()); 484 boost::shared_ptr<IObserver> observer(GetSharedObserver());
485 oracle_.Schedule(observer, command.release());
483 // LOG(TRACE) << "OrthancSeriesVolumeProgressiveLoader::LoadSeries called oracle_.Schedule"; 486 // LOG(TRACE) << "OrthancSeriesVolumeProgressiveLoader::LoadSeries called oracle_.Schedule";
484 } 487 }
485 } 488 }
486 489
487 490