comparison Framework/Deprecated/Loaders/OrthancMultiframeVolumeLoader.cpp @ 1310:9bea7e15b519 broker

- first pass at changes to cope with the refactoring of the loading system - global loader-related data accessible through ILoadersContext::ILock - many changes in legacy loaders (CT, RTSTRUCT, DOSE) + loader cache - NOT FINISHED! there are shared_from_this calls in ctors! this will crash!
author Benjamin Golinvaux <bgo@osimis.io>
date Mon, 09 Mar 2020 14:53:22 +0100
parents 257f2c9a02ac
children 9b126de2cde2
comparison
equal deleted inserted replaced
1309:1f877e0846fe 1310:9bea7e15b519
506 { 506 {
507 return volume_->GetGeometry(); 507 return volume_->GetGeometry();
508 } 508 }
509 509
510 OrthancMultiframeVolumeLoader::OrthancMultiframeVolumeLoader( 510 OrthancMultiframeVolumeLoader::OrthancMultiframeVolumeLoader(
511 OrthancStone::ILoadersContext& loadersContext,
511 boost::shared_ptr<OrthancStone::DicomVolumeImage> volume, 512 boost::shared_ptr<OrthancStone::DicomVolumeImage> volume,
512 OrthancStone::IOracle& oracle, 513 float outliersHalfRejectionRate)
513 OrthancStone::IObservable& oracleObservable, 514 : LoaderStateMachine(loadersContext)
514 float outliersHalfRejectionRate) : 515 , volume_(volume)
515 LoaderStateMachine(oracle, oracleObservable), 516 , pixelDataLoaded_(false)
516 volume_(volume), 517 , outliersHalfRejectionRate_(outliersHalfRejectionRate)
517 pixelDataLoaded_(false), 518 , distributionRawMin_(0)
518 outliersHalfRejectionRate_(outliersHalfRejectionRate), 519 , distributionRawMax_(0)
519 distributionRawMin_(0), 520 , computedDistributionMin_(0)
520 distributionRawMax_(0), 521 , computedDistributionMax_(0)
521 computedDistributionMin_(0),
522 computedDistributionMax_(0)
523 { 522 {
524 if (volume.get() == NULL) 523 if (volume.get() == NULL)
525 { 524 {
526 throw Orthanc::OrthancException(Orthanc::ErrorCode_NullPointer); 525 throw Orthanc::OrthancException(Orthanc::ErrorCode_NullPointer);
527 } 526 }