comparison Framework/Toolbox/Slice.cpp @ 625:2eeb5857eb43

DicomInstanceParameters
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 07 May 2019 18:11:52 +0200
parents b70e9be013e4
children d2c0e347ddc2
comparison
equal deleted inserted replaced
624:573e35378999 625:2eeb5857eb43
192 dataset.CopyToString(orientation, Orthanc::DICOM_TAG_IMAGE_ORIENTATION_PATIENT, false)) 192 dataset.CopyToString(orientation, Orthanc::DICOM_TAG_IMAGE_ORIENTATION_PATIENT, false))
193 { 193 {
194 geometry_ = CoordinateSystem3D(position, orientation); 194 geometry_ = CoordinateSystem3D(position, orientation);
195 195
196 bool ok = true; 196 bool ok = true;
197 SopClassUid tmp; 197
198 198 switch (StringToSopClassUid(sopClassUid_))
199 if (StringToSopClassUid(tmp, sopClassUid_))
200 { 199 {
201 switch (tmp) 200 case SopClassUid_RTDose:
202 { 201 type_ = Type_OrthancRawFrame;
203 case SopClassUid_RTDose: 202 ok = ComputeRTDoseGeometry(dataset, frame);
204 type_ = Type_OrthancRawFrame; 203 break;
205 ok = ComputeRTDoseGeometry(dataset, frame);
206 break;
207 204
208 default: 205 default:
209 break; 206 break;
210 }
211 } 207 }
212 208
213 if (!ok) 209 if (!ok)
214 { 210 {
215 LOG(ERROR) << "Cannot deduce the 3D location of frame " << frame 211 LOG(ERROR) << "Cannot deduce the 3D location of frame " << frame