comparison Framework/Toolbox/Slice.cpp @ 318:3a4ca166fafa am-2

ImageAccessor refactoring + implemented Image Cache in SmartLoader
author am@osimis.io
date Mon, 08 Oct 2018 17:10:08 +0200
parents 5412adf19980
children b70e9be013e4
comparison
equal deleted inserted replaced
317:b66d13708f40 318:3a4ca166fafa
43 catch (boost::bad_lexical_cast&) 43 catch (boost::bad_lexical_cast&)
44 { 44 {
45 return false; 45 return false;
46 } 46 }
47 } 47 }
48
49 Slice* Slice::Clone() const
50 {
51 std::auto_ptr<Slice> target(new Slice());
52
53 target->type_ = type_;
54 target->orthancInstanceId_ = orthancInstanceId_;
55 target->sopClassUid_ = sopClassUid_;
56 target->frame_ = frame_;
57 target->frameCount_ = frameCount_;
58 target->geometry_ = geometry_;
59 target->pixelSpacingX_ = pixelSpacingX_;
60 target->pixelSpacingY_ = pixelSpacingY_;
61 target->thickness_ = thickness_;
62 target->width_ = width_;
63 target->height_ = height_;
64 target->converter_ = converter_;
65 if (imageInformation_.get() != NULL)
66 target->imageInformation_.reset(imageInformation_->Clone());
67
68 return target.release();
69 }
48 70
49 bool Slice::ComputeRTDoseGeometry(const Orthanc::DicomMap& dataset, 71 bool Slice::ComputeRTDoseGeometry(const Orthanc::DicomMap& dataset,
50 unsigned int frame) 72 unsigned int frame)
51 { 73 {
52 // http://dicom.nema.org/medical/Dicom/2016a/output/chtml/part03/sect_C.8.8.3.2.html 74 // http://dicom.nema.org/medical/Dicom/2016a/output/chtml/part03/sect_C.8.8.3.2.html