📄 dsrtypes.h
字号:
** @param documentType SR document type to be converted ** @return SOP class UID if successful, empty string otherwise (never NULL) */ static const char *documentTypeToSOPClassUID(const E_DocumentType documentType); /** convert SR document type to modality ** @param documentType SR document type to be converted ** @return modality if successful, empty string otherwise (never NULL) */ static const char *documentTypeToModality(const E_DocumentType documentType); /** convert SR document type to readable name. * Such a readable name is better suited for printing/rendering. ** @param documentType SR document type to be converted ** @return readable name if successful, empty string otherwise (never NULL) */ static const char *documentTypeToReadableName(const E_DocumentType documentType); /** convert SR document type to document title. * This document title is used for printing/rendering. ** @param documentType SR document type to be converted * @param documentTitle reference to variable where the resulting string is stored ** @return document title if successful, empty string otherwise (never NULL) */ static const char *documentTypeToDocumentTitle(const E_DocumentType documentType, OFString &documentTitle); /** convert relationship type to DICOM defined term ** @param relationshipType relationship type to be converted ** @return defined term if successful, empty string otherwise (never NULL) */ static const char *relationshipTypeToDefinedTerm(const E_RelationshipType relationshipType); /** convert relationship type to readable name. * Such a readable name is better suited for printing/rendering. ** @param relationshipType relationship type to be converted ** @return readable name if successful, empty string otherwise (never NULL) */ static const char *relationshipTypeToReadableName(const E_RelationshipType relationshipType); /** convert value type to DICOM defined term ** @param valueType value type to be converted ** @return defined term if successful, empty string otherwise (never NULL) */ static const char *valueTypeToDefinedTerm(const E_ValueType valueType); /** convert value type to XML tag name ** @param valueType value type to be converted ** @return XML tag name if successful, empty string otherwise (never NULL) */ static const char *valueTypeToXMLTagName(const E_ValueType valueType); /** convert value type to readable name. * Such a readable name is better suited for printing/rendering. ** @param valueType value type to be converted ** @return readable name if successful, empty string otherwise (never NULL) */ static const char *valueTypeToReadableName(const E_ValueType valueType); /** convert graphic type to DICOM enumerated value ** @param graphicType graphic type to be converted ** @return enumerated value if successful, empty string otherwise (never NULL) */ static const char *graphicTypeToEnumeratedValue(const E_GraphicType graphicType); /** convert graphic type to readable name. * Such a readable name is better suited for printing/rendering. ** @param graphicType graphic type to be converted ** @return readable name if successful, empty string otherwise (never NULL) */ static const char *graphicTypeToReadableName(const E_GraphicType graphicType); /** convert temporal range type to DICOM enumerated value ** @param temporalRangeType temporal range type to be converted ** @return enumerated value if successful, empty string otherwise (never NULL) */ static const char *temporalRangeTypeToEnumeratedValue(const E_TemporalRangeType temporalRangeType); /** convert temporal range type to readable name. * Such a readable name is better suited for printing/rendering. ** @param temporalRangeType temporal range type to be converted ** @return readable name if successful, empty string otherwise (never NULL) */ static const char *temporalRangeTypeToReadableName(const E_TemporalRangeType temporalRangeType); /** convert continuity of content flag to DICOM enumerated value ** @param continuityOfContent continuity of content flag to be converted ** @return enumerated value if successful, empty string otherwise (never NULL) */ static const char *continuityOfContentToEnumeratedValue(const E_ContinuityOfContent continuityOfContent); /** convert completion flag to DICOM enumerated value ** @param completionFlag completion flag to be converted ** @return enumerated value if successful, empty string otherwise (never NULL) */ static const char *completionFlagToEnumeratedValue(const E_CompletionFlag completionFlag); /** convert verification flag to DICOM enumerated value ** @param verificationFlag verification flag to be converted ** @return enumerated value if successful, empty string otherwise (never NULL) */ static const char *verificationFlagToEnumeratedValue(const E_VerificationFlag verificationFlag); /** convert character set to DICOM defined term ** @param characterSet character set to be converted ** @return defined term if successful, empty string otherwise (never NULL) */ static const char *characterSetToDefinedTerm(const E_CharacterSet characterSet); /** convert character set to HTML name. * This HTML (IANA) name is used to specify the character set in an HTML document. ** @param characterSet character set to be converted ** @return HTML name if successful, empty string or "?" otherwise (never NULL) */ static const char *characterSetToHTMLName(const E_CharacterSet characterSet); /** convert character set to XML name. * This XML name is used to specify the character set in an XML document. ** @param characterSet character set to be converted ** @return XML name if successful, empty string or "?" otherwise (never NULL) */ static const char *characterSetToXMLName(const E_CharacterSet characterSet); /** convert SOP class UID to SR document type ** @param sopClassUID SOP class UID to be converted ** @return SR document type if successful, DT_invalid otherwise */ static E_DocumentType sopClassUIDToDocumentType(const OFString &sopClassUID); /** convert DICOM defined term to relationship type ** @param definedTerm defined term to be converted ** @return relationship type if successful, RT_invalid/unknown otherwise */ static E_RelationshipType definedTermToRelationshipType(const OFString &definedTerm); /** convert DICOM defined term to value type ** @param definedTerm defined term to be converted ** @return value type if successful, VT_invalid/unknown otherwise */ static E_ValueType definedTermToValueType(const OFString &definedTerm); /** convert XML tag name to value type ** @param xmlTagName XML tag name to be converted ** @return value type if successful, VT_invalid/unknown otherwise */ static E_ValueType xmlTagNameToValueType(const OFString &xmlTagName); /** convert DICOM enumerated value to graphic type ** @param enumeratedValue enumerated value to be converted ** @return graphic type if successful, GT_invalid otherwise */ static E_GraphicType enumeratedValueToGraphicType(const OFString &enumeratedValue); /** convert DICOM enumerated value to temporal range type ** @param enumeratedValue enumerated value to be converted ** @return temporal range type if successful, GT_invalid otherwise */ static E_TemporalRangeType enumeratedValueToTemporalRangeType(const OFString &enumeratedValue); /** convert DICOM enumerated value to continuity of content flag ** @param enumeratedValue enumerated value to be converted ** @return continuity of content flag type if successful, COC_invalid otherwise */ static E_ContinuityOfContent enumeratedValueToContinuityOfContent(const OFString &enumeratedValue); /** convert DICOM enumerated value to completion flag ** @param enumeratedValue enumerated value to be converted ** @return completion flag type if successful, CF_invalid otherwise */ static E_CompletionFlag enumeratedValueToCompletionFlag(const OFString &enumeratedValue); /** convert DICOM enumerated value to verification flag ** @param enumeratedValue enumerated value to be converted ** @return verification flag type if successful, VF_invalid otherwise */ static E_VerificationFlag enumeratedValueToVerificationFlag(const OFString &enumeratedValue); /** convert DICOM defined term to character set ** @param definedTerm defined term to be converted ** @return character set if successful, CS_invalid/unknown otherwise */ static E_CharacterSet definedTermToCharacterSet(const OFString &definedTerm); // --- misc helper functions --- /** check whether specified SR document type is supported by this library. * Currently all three general SOP classes, the Key Object Selection Document, the * Mammography and Chest CAD SR class as defined in the DICOM 2003 standard are supported. ** @param documentType SR document type to be checked ** @return status, OFTrue if SR document type is supported, OFFalse otherwise */ static OFBool isDocumentTypeSupported(const E_DocumentType documentType); /** get current date in DICOM 'DA' format. (YYYYMMDD) ** @param dateString string used to store the current date. * ('19000101' if current date could not be retrieved) ** @return resulting character string (see 'dateString') */ static const OFString ¤tDate(OFString &dateString); /** get current time in DICOM 'TM' format. (HHMMSS) * The optional UTC notation (e.g. +0100) is currently not supported. ** @param timeString string used to store the current time * ('000000' if current time could not be retrieved) ** @return resulting character string (see 'timeString') */ static const OFString ¤tTime(OFString &timeString); /** get current date and time in DICOM 'DT' format. (YYYYMMDDHHMMSS) * The optional UTC notation (e.g. +0100) as well as the optional fractional second * part are currently not supported. ** @param dateTimeString string used to store the current date and time * ('19000101000000' if current date/time could not * be retrieved) ** @return resulting character string (see 'dateTimeString') */ static const OFString ¤tDateTime(OFString &dateTimeString); /** convert DICOM date string to readable format. * The ISO format "YYYY-MM-DD" is used for the readable format. ** @param dicomDate date in DICOM DA format (YYYYMMDD) * @param readableDate reference to variable where the resulting string is stored ** @return reference to resulting string (might be empty) */ static const OFString &dicomToReadableDate(const OFString &dicomDate, OFString &readableDate); /** convert DICOM time string to readable format. * The ISO format "HH:MM" or "HH:MM:SS" (if seconds are available) is used for the * readable format. ** @param dicomTime time in DICOM TM format (HHMM or HHMMSS...) * @param readableTime reference to variable where the resulting string is stored ** @return reference to resulting string (might be empty) */ static const OFString &dicomToReadableTime(const OFString &dicomTime, OFString &readableTime); /** convert DICOM date time string to readable format. * The format "YYYY-MM-DD, HH:MM" or "YYYY-MM-DD, HH:MM:SS" is used for the readable format. ** @param dicomDateTime time in DICOM DT format (YYYYMMDDHHMMSS...). Possible suffixes * (fractional second or UTC notation) are currently ignored. * @param readableDateTime reference to variable where the resulting string is stored ** @return reference to resulting string (might be empty) */ static const OFString &dicomToReadableDateTime(const OFString &dicomDateTime, OFString &readableDateTime); /** convert DICOM person name to readable format. * The format "<prefix> <first_name> <middle_name> <last_name>, <suffix>" is used for the * readable format. * Please note that only the first component group (characters before the first '=') of * the DICOM person name is used - see DcmPersonName::getNameComponents() for details. ** @param dicomPersonName person name in DICOM PN format (ln^fn^mn^p^s) * @param readablePersonName reference to variable where the resulting string is stored ** @return reference to resulting string (might be empty) */ static const OFString &dicomToReadablePersonName(const OFString &dicomPersonName, OFString &readablePersonName); /** convert DICOM person name to XML format. * The tags <prefix>, <first>, <middle>, <last> and <suffix> are used for the XML format * of a person name. The string is automatically converted to the markup notation (see * convertToMarkupString()). Two tags are separated by a newline. * Please note that only the first component group (characters before the first '=') of * the DICOM person name is used - see DcmPersonName::getNameComponents() for details. ** @param dicomPersonName person name in DICOM PN format (ln^fn^mn^p^s) * @param xmlPersonName reference to variable where the resulting string is stored * @param writeEmptyValue optional flag indicating whether an empty value should be written ** @return reference to resulting string (might be empty) */ static const OFString &dicomToXMLPersonName(const OFString &dicomPersonName, OFString &xmlPersonName, const OFBool writeEmptyValue = OFFalse); /** convert unsigned integer number to character string ** @param number unsigned integer number to be converted * @param stringValue character string used to store the result ** @return pointer to the first character of the resulting string (may be NULL if 'string' was NULL) */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -