Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/StoneEnumerations.cpp @ 1665:f62f685e0eb2
avoid loading instance metadata on RTSTRUCT to avoid JSON parsing that freezes the browser
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 19 Nov 2020 15:39:30 +0100 |
parents | 8563ea5d8ae4 |
children | 9ac2a65d4172 |
comparison
equal
deleted
inserted
replaced
1664:32e765ca7193 | 1665:f62f685e0eb2 |
---|---|
34 | 34 |
35 if (s == "1.2.840.10008.5.1.4.1.1.481.2") | 35 if (s == "1.2.840.10008.5.1.4.1.1.481.2") |
36 { | 36 { |
37 return SopClassUid_RTDose; | 37 return SopClassUid_RTDose; |
38 } | 38 } |
39 else if (s == "1.2.840.10008.5.1.4.1.1.481.5") | |
40 { | |
41 return SopClassUid_RTPlan; | |
42 } | |
43 else if (s == "1.2.840.10008.5.1.4.1.1.481.3") | |
44 { | |
45 return SopClassUid_RTStruct; | |
46 } | |
47 else if (s == "1.2.840.10008.5.1.4.1.1.104.1") | |
48 { | |
49 return SopClassUid_EncapsulatedPdf; | |
50 } | |
51 else if (s == "1.2.840.10008.5.1.4.1.1.77.1.1.1") | |
52 { | |
53 return SopClassUid_VideoEndoscopicImageStorage; | |
54 } | |
55 else if (s == "1.2.840.10008.5.1.4.1.1.77.1.2.1") | |
56 { | |
57 return SopClassUid_VideoMicroscopicImageStorage; | |
58 } | |
59 else if (s == "1.2.840.10008.5.1.4.1.1.77.1.4.1") | |
60 { | |
61 return SopClassUid_VideoPhotographicImageStorage; | |
62 } | |
39 else | 63 else |
40 { | 64 { |
41 //LOG(INFO) << "Other SOP class UID: " << source; | 65 //LOG(INFO) << "Other SOP class UID: " << source; |
42 return SopClassUid_Other; | 66 return SopClassUid_Other; |
43 } | 67 } |
173 default: | 197 default: |
174 break; | 198 break; |
175 } | 199 } |
176 } | 200 } |
177 } | 201 } |
202 | |
203 | |
204 SeriesThumbnailType GetSeriesThumbnailType(SopClassUid sopClassUid) | |
205 { | |
206 switch (sopClassUid) | |
207 { | |
208 case SopClassUid_EncapsulatedPdf: | |
209 return SeriesThumbnailType_Pdf; | |
210 | |
211 case SopClassUid_VideoEndoscopicImageStorage: | |
212 case SopClassUid_VideoMicroscopicImageStorage: | |
213 case SopClassUid_VideoPhotographicImageStorage: | |
214 return SeriesThumbnailType_Video; | |
215 | |
216 default: | |
217 return SeriesThumbnailType_Unsupported; | |
218 } | |
219 } | |
178 } | 220 } |