📄 dcddirif.h
字号:
protected: /** select given application profile * @param profile storage media application profile to be selected * @return EC_Normal upon success, an error code otherwise */ OFCondition selectApplicationProfile(const E_ApplicationProfile profile); /** load and check DICOM file regarding the current application profile * @param filename name of the DICOM file to be checked * @param directory directory where the DICOM file is stored (optional) * @param fileformat object in which the loaded data is stored * @return EC_Normal upon success, an error code otherwise */ OFCondition loadAndCheckDicomFile(const char *filename, const char *directory, DcmFileFormat &fileformat); /** check SOP class and transfer syntax for compliance with current profile * @param metainfo object where the DICOM file meta information is stored * @param dataset object where the DICOM dataset is stored * @param filename name of the DICOM file to be checked * @return EC_Normal upon success, an error code otherwise */ OFCondition checkSOPClassAndXfer(DcmMetaInfo *metainfo, DcmItem *dataset, const char *filename); /** check attributes for compliance with Basic Cardiac application profile * @param dataset object where the DICOM dataset is stored * @param filename name of the DICOM file to be checked * @return EC_Normal upon success, an error code otherwise */ OFCondition checkBasicCardiacAttributes(DcmItem *dataset, const char *filename); /** check attributes for compliance with X-ray Angiography application profile * @param dataset object where the DICOM dataset is stored * @param sopClass SOP class of the DICOM data to be checked * @param filename name of the DICOM file to be checked * @return EC_Normal upon success, an error code otherwise */ OFCondition checkXrayAngiographicAttributes(DcmItem *dataset, const OFString &sopClass, const char *filename); /** check attributes for compliance with dental radiograph application profile * @param dataset object where the DICOM dataset is stored * @param filename name of the DICOM file to be checked * @return EC_Normal upon success, an error code otherwise */ OFCondition checkDentalRadiographAttributes(DcmItem *dataset, const char *filename); /** check attributes for compliance with CT and MR application profile * @param dataset object where the DICOM dataset is stored * @param sopClass SOP class of the DICOM data to be checked * @param filename name of the DICOM file to be checked * @return EC_Normal upon success, an error code otherwise */ OFCondition checkCTandMRAttributes(DcmItem *dataset, const OFString &sopClass, const char *filename); /** check attributes for compliance with Ultrasound application profiles * @param dataset object where the DICOM dataset is stored * @param transferSyntax transfer syntax of the DICOM data to be checked * @param filename name of the DICOM file to be checked * @return EC_Normal upon success, an error code otherwise */ OFCondition checkUltrasoundAttributes(DcmItem *dataset, const OFString &transferSyntax, const char *filename); /** check attributes for comliance with current application profile * @param metainfo object where the DICOM file meta information is stored * @param dataset object where the DICOM dataset is stored * @param filename name of the DICOM file to be checked * @return EC_Normal upon success, an error code otherwise */ OFCondition checkMandatoryAttributes(DcmMetaInfo *metainfo, DcmItem *dataset, const char *filename); /** check whether given DICOMDIR record matches dataset. * The check depends on the record type and is performed mainly based on * the unique key defined for the particular record type (e.g. SOPInstanceUID * for IMAGE records). For PATIENT records the PatientsName may also be used * if the PatientID is absent. * @param record DICOMDIR record to be checked * @param dataset DICOM dataset of the current file * @return OFTrue if record matches, OFFalse otherwise */ OFBool recordMatchesDataset(DcmDirectoryRecord *record, DcmItem *dataset); /** search for a given DICOMDIR record * @param parent higher-level structure where the records are stored * @param recordType type of DICOMDIR record to be searched for * @param dataset DICOM dataset of the current file * @return pointer to record if found, NULL otherwise */ DcmDirectoryRecord *findExistingRecord(DcmDirectoryRecord *parent, const E_DirRecType recordType, DcmItem* dataset); /** create new patient record and copy required values from dataset * @param dataset DICOM dataset of the current file * @param sourceFilename name of the source DICOM file * @return pointer to new record, NULL if an error occurred */ DcmDirectoryRecord *buildPatientRecord(DcmItem *dataset, const OFString &sourceFilename); /** create new study record and copy required values from dataset * @param dataset DICOM dataset of the current file * @param sourceFilename name of the source DICOM file * @return pointer to new record, NULL if an error occurred */ DcmDirectoryRecord *buildStudyRecord(DcmItem *dataset, const OFString &sourceFilename); /** create new series record and copy required values from dataset * @param dataset DICOM dataset of the current file * @param sourceFilename name of the source DICOM file * @return pointer to new record, NULL if an error occurred */ DcmDirectoryRecord *buildSeriesRecord(DcmItem *dataset, const OFString &sourceFilename); /** create new overlay record and copy required values from dataset * @param dataset DICOM dataset of the current file * @param referencedFileID value of the Referenced File ID attribute * @param sourceFilename name of the source DICOM file * @return pointer to new record, NULL if an error occurred */ DcmDirectoryRecord *buildOverlayRecord(DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename); /** create new modality LUT record and copy required values from dataset * @param dataset DICOM dataset of the current file * @param referencedFileID value of the Referenced File ID attribute * @param sourceFilename name of the source DICOM file * @return pointer to new record, NULL if an error occurred */ DcmDirectoryRecord *buildModalityLutRecord(DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename); /** create new VOI LUT record and copy required values from dataset * @param dataset DICOM dataset of the current file * @param referencedFileID value of the Referenced File ID attribute * @param sourceFilename name of the source DICOM file * @return pointer to new record, NULL if an error occurred */ DcmDirectoryRecord *buildVoiLutRecord(DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename); /** create new curve record and copy required values from dataset * @param dataset DICOM dataset of the current file * @param referencedFileID value of the Referenced File ID attribute * @param sourceFilename name of the source DICOM file * @return pointer to new record, NULL if an error occurred */ DcmDirectoryRecord *buildCurveRecord(DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename); /** create new structure reporting record and copy required values from dataset * @param dataset DICOM dataset of the current file * @param referencedFileID value of the Referenced File ID attribute * @param sourceFilename name of the source DICOM file * @return pointer to new record, NULL if an error occurred */ DcmDirectoryRecord *buildStructReportRecord(DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename); /** create new presentation state record and copy required values from dataset * @param dataset DICOM dataset of the current file * @param referencedFileID value of the Referenced File ID attribute * @param sourceFilename name of the source DICOM file * @return pointer to new record, NULL if an error occurred */ DcmDirectoryRecord *buildPresentationRecord(DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename); /** create new waveform record and copy required values from dataset * @param dataset DICOM dataset of the current file * @param referencedFileID value of the Referenced File ID attribute * @param sourceFilename name of the source DICOM file * @return pointer to new record, NULL if an error occurred */ DcmDirectoryRecord *buildWaveformRecord(DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename); /** create new RT dose record and copy required values from dataset * @param dataset DICOM dataset of the current file * @param referencedFileID value of the Referenced File ID attribute * @param sourceFilename name of the source DICOM file * @return pointer to new record, NULL if an error occurred */ DcmDirectoryRecord *buildRTDoseRecord(DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename); /** create new RT structure set record and copy required values from dataset * @param dataset DICOM dataset of the current file * @param referencedFileID value of the Referenced File ID attribute * @param sourceFilename name of the source DICOM file * @return pointer to new record, NULL if an error occurred */ DcmDirectoryRecord *buildRTStructureSetRecord(DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename); /** create new RT plan record and copy required values from dataset * @param dataset DICOM dataset of the current file * @param referencedFileID value of the Referenced File ID attribute * @param sourceFilename name of the source DICOM file * @return pointer to new record, NULL if an error occurred */ DcmDirectoryRecord *buildRTPlanRecord(DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename); /** create new RT treatment record and copy required values from dataset * @param dataset DICOM dataset of the current file * @param referencedFileID value of the Referenced File ID attribute * @param sourceFilename name of the source DICOM file * @return pointer to new record, NULL if an error occurred */ DcmDirectoryRecord *buildRTTreatmentRecord(DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename); /** create new stored print record and copy required values from dataset * @param dataset DICOM dataset of the current file * @param referencedFileID value of the Referenced File ID attribute * @param sourceFilename name of the source DICOM file * @return pointer to new record, NULL if an error occurred */ DcmDirectoryRecord *buildStoredPrintRecord(DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename); /** create new key object doc record and copy required values from dataset * @param dataset DICOM dataset of the current file * @param referencedFileID value of the Referenced File ID attribute * @param sourceFilename name of the source DICOM file * @return pointer to new record, NULL if an error occurred */ DcmDirectoryRecord *buildKeyObjectDocRecord(DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename); /** create new registration record and copy required values from dataset * @param dataset DICOM dataset of the current file * @param referencedFileID value of the Referenced File ID attribute * @param sourceFilename name of the source DICOM file * @return pointer to new record, NULL if an error occurred */ DcmDirectoryRecord *buildRegistrationRecord(DcmItem *dataset,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -