Mercurial > hg > orthanc-stone
comparison Framework/Loaders/DicomStructureSetLoader.cpp @ 1345:0d6a01ffa1dd broker
Clean version of the hack commited in
the previous commit : the DicomStructureSetLoader
now properly increments its revision during
progressive loading. The "force update" method
in the VolumeSceneLayerSource isn't needed
anymore.
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Mon, 06 Apr 2020 09:17:40 +0200 |
parents | 13573ff63eb6 |
children | f4a06ad1580b |
comparison
equal
deleted
inserted
replaced
1344:00c8322bbe69 | 1345:0d6a01ffa1dd |
---|---|
74 | 74 |
75 loader.content_->AddReferencedSlice(dicom); | 75 loader.content_->AddReferencedSlice(dicom); |
76 loader.countProcessedInstances_ ++; | 76 loader.countProcessedInstances_ ++; |
77 assert(loader.countProcessedInstances_ <= loader.countReferencedInstances_); | 77 assert(loader.countProcessedInstances_ <= loader.countReferencedInstances_); |
78 | 78 |
79 loader.revision_++; | |
79 loader.SetStructuresUpdated(); | 80 loader.SetStructuresUpdated(); |
80 | 81 |
81 if (loader.countProcessedInstances_ == loader.countReferencedInstances_) | 82 if (loader.countProcessedInstances_ == loader.countReferencedInstances_) |
82 { | 83 { |
83 // All the referenced instances have been loaded, finalize the RT-STRUCT | 84 // All the referenced instances have been loaded, finalize the RT-STRUCT |