Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Toolbox/DicomStructureSet.cpp @ 1754:34ab7f643327
removed STONE_TIME_BLOCKING_OPS
author | bgo@SHARKNADO.localdomain |
---|---|
date | Mon, 26 Apr 2021 12:05:02 +0200 |
parents | 946eb7200b82 |
children | 126522623e20 |
comparison
equal
deleted
inserted
replaced
1753:f19f69476d9d | 1754:34ab7f643327 |
---|---|
489 { | 489 { |
490 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadFileFormat); | 490 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadFileFormat); |
491 } | 491 } |
492 | 492 |
493 structures_.resize(count); | 493 structures_.resize(count); |
494 #if STONE_TIME_BLOCKING_OPS | |
495 LOG(WARNING) << "DicomStructureSet::Setup(...) structures_.size() = " << structures_.size(); | |
496 #endif | |
497 for (size_t i = 0; i < count; i++) | 494 for (size_t i = 0; i < count; i++) |
498 { | 495 { |
499 structures_[i].interpretation_ = reader.GetStringValue | 496 structures_[i].interpretation_ = reader.GetStringValue |
500 (DicomPath(DICOM_TAG_RT_ROI_OBSERVATIONS_SEQUENCE, i, | 497 (DicomPath(DICOM_TAG_RT_ROI_OBSERVATIONS_SEQUENCE, i, |
501 DICOM_TAG_RT_ROI_INTERPRETED_TYPE), | 498 DICOM_TAG_RT_ROI_INTERPRETED_TYPE), |
526 if (!tags.GetSequenceSize(countSlices, DicomPath(DICOM_TAG_ROI_CONTOUR_SEQUENCE, i, | 523 if (!tags.GetSequenceSize(countSlices, DicomPath(DICOM_TAG_ROI_CONTOUR_SEQUENCE, i, |
527 DICOM_TAG_CONTOUR_SEQUENCE))) | 524 DICOM_TAG_CONTOUR_SEQUENCE))) |
528 { | 525 { |
529 countSlices = 0; | 526 countSlices = 0; |
530 } | 527 } |
531 | |
532 #if STONE_TIME_BLOCKING_OPS | |
533 LOG(WARNING) << "DicomStructureSet::Setup(...) structure # " << i << " : countSlices = " << countSlices; | |
534 #endif | |
535 | 528 |
536 LOG(INFO) << "New RT structure: \"" << structures_[i].name_ | 529 LOG(INFO) << "New RT structure: \"" << structures_[i].name_ |
537 << "\" with interpretation \"" << structures_[i].interpretation_ | 530 << "\" with interpretation \"" << structures_[i].interpretation_ |
538 << "\" containing " << countSlices << " slices (color: " | 531 << "\" containing " << countSlices << " slices (color: " |
539 << static_cast<int>(structures_[i].red_) << "," | 532 << static_cast<int>(structures_[i].red_) << "," |