Mercurial > hg > orthanc
comparison Core/DicomFormat/DicomTag.cpp @ 291:4d7469f72a0b
embedding of dicom dictionaries
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 14 Dec 2012 15:15:48 +0100 |
parents | fe180eae201d |
children | bdd72233b105 |
comparison
equal
deleted
inserted
replaced
290:b3322636b06d | 291:4d7469f72a0b |
---|---|
68 { | 68 { |
69 char b[16]; | 69 char b[16]; |
70 sprintf(b, "%04x,%04x", group_, element_); | 70 sprintf(b, "%04x,%04x", group_, element_); |
71 return std::string(b); | 71 return std::string(b); |
72 } | 72 } |
73 | |
74 | |
75 const char* DicomTag::GetMainTagsName() const | |
76 { | |
77 if (*this == DICOM_TAG_ACCESSION_NUMBER) | |
78 return "AccessionNumber"; | |
79 | |
80 if (*this == DICOM_TAG_SOP_INSTANCE_UID) | |
81 return "SOPInstanceUID"; | |
82 | |
83 if (*this == DICOM_TAG_PATIENT_ID) | |
84 return "PatientID"; | |
85 | |
86 if (*this == DICOM_TAG_SERIES_INSTANCE_UID) | |
87 return "SeriesInstanceUID"; | |
88 | |
89 if (*this == DICOM_TAG_STUDY_INSTANCE_UID) | |
90 return "StudyInstanceUID"; | |
91 | |
92 if (*this == DICOM_TAG_PIXEL_DATA) | |
93 return "PixelData"; | |
94 | |
95 if (*this == DICOM_TAG_IMAGE_INDEX) | |
96 return "ImageIndex"; | |
97 | |
98 if (*this == DICOM_TAG_INSTANCE_NUMBER) | |
99 return "InstanceNumber"; | |
100 | |
101 if (*this == DICOM_TAG_NUMBER_OF_SLICES) | |
102 return "NumberOfSlices"; | |
103 | |
104 if (*this == DICOM_TAG_NUMBER_OF_FRAMES) | |
105 return "NumberOfFrames"; | |
106 | |
107 if (*this == DICOM_TAG_CARDIAC_NUMBER_OF_IMAGES) | |
108 return "CardiacNumberOfImages"; | |
109 | |
110 if (*this == DICOM_TAG_IMAGES_IN_ACQUISITION) | |
111 return "ImagesInAcquisition"; | |
112 | |
113 if (*this == DICOM_TAG_PATIENT_NAME) | |
114 return "PatientName"; | |
115 | |
116 return ""; | |
117 } | |
73 } | 118 } |