comparison Framework/Toolbox/DicomStructureSet.cpp @ 949:32eaf4929b08 toa2019081301

OrthancMultiframeVolumeLoader and OrthancSeriesVolumeProgressiveLoader now implement IGeometryProvider so that the geometry reference can be switched (CT or DOSE, for instance) + VolumeImageGeometry::SetSize renamed to VolumeImageGeometry::SetSizeInVoxels + prevent text layer update if text or properties do not change + a few stream operator<< for debug (Vector, Matrix,...) + fixed memory access aligment issues in ImageBuffer3D::ExtractSagittalSlice + fix for wrong screen Y offset of mpr slices in DicomVolumeImageMPRSlicer.
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 13 Aug 2019 16:01:05 +0200
parents 266e2b0b9abc
children a7351ad54960
comparison
equal deleted inserted replaced
948:141cc19e6b7d 949:32eaf4929b08
360 } 360 }
361 361
362 return structures_[index]; 362 return structures_[index];
363 } 363 }
364 364
365
366 DicomStructureSet::DicomStructureSet(const OrthancPlugins::FullOrthancDataset& tags) 365 DicomStructureSet::DicomStructureSet(const OrthancPlugins::FullOrthancDataset& tags)
367 { 366 {
368 OrthancPlugins::DicomDatasetReader reader(tags); 367 OrthancPlugins::DicomDatasetReader reader(tags);
369 368
370 size_t count, tmp; 369 size_t count, tmp;
386 "No interpretation"); 385 "No interpretation");
387 386
388 structures_[i].name_ = reader.GetStringValue 387 structures_[i].name_ = reader.GetStringValue
389 (OrthancPlugins::DicomPath(DICOM_TAG_STRUCTURE_SET_ROI_SEQUENCE, i, 388 (OrthancPlugins::DicomPath(DICOM_TAG_STRUCTURE_SET_ROI_SEQUENCE, i,
390 DICOM_TAG_ROI_NAME), 389 DICOM_TAG_ROI_NAME),
391 "No interpretation"); 390 "No name");
392 391
393 Vector color; 392 Vector color;
394 if (ParseVector(color, tags, OrthancPlugins::DicomPath(DICOM_TAG_ROI_CONTOUR_SEQUENCE, i, 393 if (ParseVector(color, tags, OrthancPlugins::DicomPath(DICOM_TAG_ROI_CONTOUR_SEQUENCE, i,
395 DICOM_TAG_ROI_DISPLAY_COLOR)) && 394 DICOM_TAG_ROI_DISPLAY_COLOR)) &&
396 color.size() == 3) 395 color.size() == 3)