Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Loaders/SeriesMetadataLoader.cpp @ 1850:932dc2265baa
Group together in a single "virtual series" all the instances without the tag "NumberOfFrames"
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 29 Jun 2021 14:09:54 +0200 |
parents | 9ac2a65d4172 |
children | 3889ae96d2e9 |
comparison
equal
deleted
inserted
replaced
1849:023cce3d7844 | 1850:932dc2265baa |
---|---|
234 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls); | 234 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls); |
235 } | 235 } |
236 } | 236 } |
237 | 237 |
238 | 238 |
239 bool SeriesMetadataLoader::Accessor::LookupInstance(Orthanc::DicomMap& target, | |
240 const std::string& sopInstanceUid) const | |
241 { | |
242 if (IsComplete()) | |
243 { | |
244 if (series_->HasResource(sopInstanceUid)) | |
245 { | |
246 target.Clear(); | |
247 series_->MergeResource(target, sopInstanceUid); | |
248 return true; | |
249 } | |
250 else | |
251 { | |
252 return false; | |
253 } | |
254 } | |
255 else | |
256 { | |
257 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls); | |
258 } | |
259 } | |
260 | |
261 | |
239 void SeriesMetadataLoader::ScheduleLoadSeries(int priority, | 262 void SeriesMetadataLoader::ScheduleLoadSeries(int priority, |
240 const DicomSource& source, | 263 const DicomSource& source, |
241 const std::string& studyInstanceUid, | 264 const std::string& studyInstanceUid, |
242 const std::string& seriesInstanceUid) | 265 const std::string& seriesInstanceUid) |
243 { | 266 { |