Public Types | |
enum | E_ApplicationProfile { AP_GeneralPurpose, AP_Default = AP_GeneralPurpose, AP_GeneralPurposeDVD, AP_GeneralPurposeMIME, AP_USBandFlash, AP_MPEG2MPatML, AP_BasicCardiac, AP_XrayAngiographic, AP_XrayAngiographicDVD, AP_DentalRadiograph, AP_CTandMR, AP_UltrasoundIDSF, AP_UltrasoundSCSF, AP_UltrasoundCCSF, AP_UltrasoundIDMF, AP_UltrasoundSCMF, AP_UltrasoundCCMF, AP_TwelveLeadECG, AP_HemodynamicWaveform } |
list of supported media storage application profiles More... | |
Public Member Functions | |
DicomDirInterface () | |
constructor (default). | |
virtual | ~DicomDirInterface () |
destructor (virtual). | |
void | cleanup () |
reset the object to its initial state. | |
OFBool | isDicomDirValid () const |
check whether current DICOMDIR is valid. | |
OFCondition | createNewDicomDir (const E_ApplicationProfile profile=AP_GeneralPurpose, const char *filename=DEFAULT_DICOMDIR_NAME, const char *filesetID=DEFAULT_FILESETID) |
create a new DICOMDIR object. | |
OFCondition | appendToDicomDir (const E_ApplicationProfile profile, const char *filename) |
create a DICOMDIR object based on an existing DICOMDIR file. | |
OFCondition | writeDicomDir (const E_EncodingType encodingType=EET_UndefinedLength, const E_GrpLenEncoding groupLength=EGL_withoutGL) |
write the current DICOMDIR object to file. | |
OFBool | isFilenameValid (const char *filename, const OFBool allowEmpty=OFFalse) |
check whether specified filename is valid. | |
OFBool | isCharsetValid (const char *charset) |
check whether given charset identifier is valid. | |
OFCondition | checkDicomFile (const char *filename, const char *directory=NULL) |
check whether specified DICOM file is suitable to be included into the DICOMDIR. | |
OFCondition | addDicomFile (const char *filename, const char *directory=NULL) |
add specified DICOM file to the current DICOMDIR. | |
OFCondition | setFilesetDescriptor (const char *filename, const char *charset=DEFAULT_DESCRIPTOR_CHARSET) |
set the fileset descriptor file ID and character set. | |
OFCondition | setIconSize (const unsigned int size) |
set preferred size of the icon images. | |
OFCondition | setIconPrefix (const char *prefix) |
set filename prefix for alternative icon images. | |
OFCondition | setDefaultIcon (const char *filename) |
set filename of default icon image. | |
OFBool | verboseMode () const |
get current status of the verbose mode | |
OFBool | abortMode () const |
get current status of the "abort on first error" mode. | |
OFBool | mapFilenamesMode () const |
get current status of the "map filenames" mode. | |
OFBool | inventMode () const |
get current status of the "invent missing values" mode. | |
OFBool | inventPatientIDMode () const |
get current status of the "invent missing patient ID" mode. | |
OFBool | iconImageMode () const |
get current status of the "create icon images" mode. | |
OFBool | backupMode () const |
get current status of the "create backup" mode. | |
OFBool | encodingCheck () const |
get current status of the "pixel encoding check" mode. | |
OFBool | resolutionCheck () const |
get current status of the "spatial resolution check" mode. | |
OFBool | transferSyntaxCheck () const |
get current status of the "transfer syntax check" mode. | |
OFBool | consistencyCheck () const |
get current status of the "consistency check" mode. | |
OFBool | enableVerboseMode (const OFBool newMode=OFTrue) |
enable/disable the verbose mode. | |
OFBool | enableAbortMode (const OFBool newMode=OFTrue) |
enable/disable the "abort on first error" mode. | |
OFBool | enableMapFilenamesMode (const OFBool newMode=OFTrue) |
enable/disable the "map filenames" mode. | |
OFBool | enableInventMode (const OFBool newMode=OFTrue) |
enable/disable the "invent missing values" mode. | |
OFBool | enableInventPatientIDMode (const OFBool newMode=OFTrue) |
enable/disable the "invent new patient ID" mode. | |
OFBool | enableIconImageMode (const OFBool newMode=OFTrue) |
enable/disable the "create icon images" mode. | |
OFBool | disableBackupMode (const OFBool newMode=OFFalse) |
disable/enable the "create backup file" mode. | |
OFBool | disableEncodingCheck (const OFBool newMode=OFFalse) |
disable/enable the "pixel encoding check". | |
OFBool | disableResolutionCheck (const OFBool newMode=OFFalse) |
disable/enable the "spatial resolution check". | |
OFBool | disableTransferSyntaxCheck (const OFBool newMode=OFFalse) |
disable/enable the "transfer syntax check". | |
OFBool | disableConsistencyCheck (const OFBool newMode=OFFalse) |
disable/enable the "consistency check". | |
OFBool | addImageSupport (DicomDirImagePlugin *plugin) |
add pluggable image support. | |
void | setLogStream (OFConsole *stream) |
set the log stream. | |
Static Public Member Functions | |
static const char * | getProfileName (const E_ApplicationProfile profile) |
get name/identifier associated with the given application profile | |
Protected Member Functions | |
OFCondition | selectApplicationProfile (const E_ApplicationProfile profile) |
select given application profile | |
OFCondition | loadAndCheckDicomFile (const char *filename, const char *directory, DcmFileFormat &fileformat) |
load and check DICOM file regarding the current application profile | |
OFCondition | checkSOPClassAndXfer (DcmMetaInfo *metainfo, DcmItem *dataset, const char *filename) |
check SOP class and transfer syntax for compliance with current profile | |
OFCondition | checkBasicCardiacAttributes (DcmItem *dataset, const char *filename) |
check attributes for compliance with Basic Cardiac application profile | |
OFCondition | checkXrayAngiographicAttributes (DcmItem *dataset, const OFString &sopClass, const char *filename) |
check attributes for compliance with X-ray Angiography application profile | |
OFCondition | checkDentalRadiographAttributes (DcmItem *dataset, const char *filename) |
check attributes for compliance with dental radiograph application profile | |
OFCondition | checkCTandMRAttributes (DcmItem *dataset, const OFString &sopClass, const char *filename) |
check attributes for compliance with CT and MR application profile | |
OFCondition | checkUltrasoundAttributes (DcmItem *dataset, const OFString &transferSyntax, const char *filename) |
check attributes for compliance with Ultrasound application profiles | |
OFCondition | checkMandatoryAttributes (DcmMetaInfo *metainfo, DcmItem *dataset, const char *filename) |
check attributes for comliance with current application profile | |
OFBool | recordMatchesDataset (DcmDirectoryRecord *record, DcmItem *dataset) |
check whether given DICOMDIR record matches dataset. | |
DcmDirectoryRecord * | findExistingRecord (DcmDirectoryRecord *parent, const E_DirRecType recordType, DcmItem *dataset) |
search for a given DICOMDIR record | |
DcmDirectoryRecord * | buildPatientRecord (DcmItem *dataset, const OFString &sourceFilename) |
create new patient record and copy required values from dataset | |
DcmDirectoryRecord * | buildStudyRecord (DcmItem *dataset, const OFString &sourceFilename) |
create new study record and copy required values from dataset | |
DcmDirectoryRecord * | buildSeriesRecord (DcmItem *dataset, const OFString &sourceFilename) |
create new series record and copy required values from dataset | |
DcmDirectoryRecord * | buildOverlayRecord (DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename) |
create new overlay record and copy required values from dataset | |
DcmDirectoryRecord * | buildModalityLutRecord (DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename) |
create new modality LUT record and copy required values from dataset | |
DcmDirectoryRecord * | buildVoiLutRecord (DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename) |
create new VOI LUT record and copy required values from dataset | |
DcmDirectoryRecord * | buildCurveRecord (DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename) |
create new curve record and copy required values from dataset | |
DcmDirectoryRecord * | buildStructReportRecord (DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename) |
create new structure reporting record and copy required values from dataset | |
DcmDirectoryRecord * | buildPresentationRecord (DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename) |
create new presentation state record and copy required values from dataset | |
DcmDirectoryRecord * | buildWaveformRecord (DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename) |
create new waveform record and copy required values from dataset | |
DcmDirectoryRecord * | buildRTDoseRecord (DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename) |
create new RT dose record and copy required values from dataset | |
DcmDirectoryRecord * | buildRTStructureSetRecord (DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename) |
create new RT structure set record and copy required values from dataset | |
DcmDirectoryRecord * | buildRTPlanRecord (DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename) |
create new RT plan record and copy required values from dataset | |
DcmDirectoryRecord * | buildRTTreatmentRecord (DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename) |
create new RT treatment record and copy required values from dataset | |
DcmDirectoryRecord * | buildStoredPrintRecord (DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename) |
create new stored print record and copy required values from dataset | |
DcmDirectoryRecord * | buildKeyObjectDocRecord (DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename) |
create new key object doc record and copy required values from dataset | |
DcmDirectoryRecord * | buildRegistrationRecord (DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename) |
create new registration record and copy required values from dataset | |
DcmDirectoryRecord * | buildFiducialRecord (DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename) |
create new fiducial record and copy required values from dataset | |
DcmDirectoryRecord * | buildRawDataRecord (DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename) |
create new raw data record and copy required values from dataset | |
DcmDirectoryRecord * | buildSpectroscopyRecord (DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename) |
create new spectroscopy record and copy required values from dataset | |
DcmDirectoryRecord * | buildEncapDocRecord (DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename) |
create new encap doc record and copy required values from dataset | |
DcmDirectoryRecord * | buildValueMapRecord (DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename) |
create new value map record and copy required values from dataset | |
DcmDirectoryRecord * | buildImageRecord (DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename) |
create new image record and copy required values from dataset | |
DcmDirectoryRecord * | buildHangingProtocolRecord (DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename) |
create new hanging protocol record and copy required values from dataset | |
OFBool | getIconFromFile (const OFString &filename, Uint8 *pixel, const unsigned long count, const unsigned int width, const unsigned int height) |
create icon image from given PGM (portable gray map) file. | |
OFBool | getIconFromDataset (DcmItem *dataset, Uint8 *pixel, const unsigned long count, const unsigned int width, const unsigned int height) |
create icon image from DICOM dataset. | |
OFCondition | addIconImage (DcmDirectoryRecord *record, DcmItem *dataset, const unsigned int size, const OFString &sourceFilename) |
add icon image sequence to DICOMDIR record. | |
DcmDirectoryRecord * | addRecord (DcmDirectoryRecord *parent, const E_DirRecType recordType, DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename) |
add child record to a given parent record. | |
void | inventMissingAttributes (DcmDirectoryRecord *parent, const OFBool recurse=OFTrue) |
invent missing type 1 attributes for all child records (from patient level) | |
void | inventMissingStudyLevelAttributes (DcmDirectoryRecord *parent) |
invent missing type 1 attributes for all child records (from study level) | |
void | inventMissingSeriesLevelAttributes (DcmDirectoryRecord *parent) |
invent missing type 1 attributes for all child records (from series level) | |
void | inventMissingInstanceLevelAttributes (DcmDirectoryRecord *parent) |
invent missing type 1 attributes for all child records (from instance level) | |
void | createDicomDirBackup (const char *filename) |
create backup of a given file | |
void | deleteDicomDirBackup () |
delete backup file if one has been created | |
void | printMessage (const char *message, const char *suffix=NULL) |
print a message on the log stream (stdout) | |
void | printWarningMessage (const char *message, const char *suffix=NULL) |
print a warning message on the log stream (stderr). | |
void | printErrorMessage (const char *message, const char *suffix=NULL) |
print an error message on the log stream (stderr). | |
void | printUnexpectedValueMessage (const DcmTagKey &key, const char *filename=NULL, const OFBool errorMsg=OFTrue) |
print a message that the value of a given tag is unexpected. | |
void | printRequiredAttributeMessage (const DcmTagKey &key, const char *filename=NULL, const OFBool emptyMsg=OFFalse) |
print an error message that a required attribute is missing/empty. | |
void | printAttributeErrorMessage (const DcmTagKey &key, const OFCondition &error, const char *operation) |
print an error message that something went wrong with an attribute. | |
void | printRecordErrorMessage (const OFCondition &error, const E_DirRecType recordType, const char *operation) |
print an error message that something went wrong with a given record. | |
void | printFileErrorMessage (const OFCondition &error, const char *operation, const char *filename) |
print the given error status to the log stream (stderr). | |
OFBool | copyFile (const char *fromFilename, const char *toFilename) |
copy contents of specified file | |
OFBool | warnAboutInconsistentAttributes (DcmDirectoryRecord *record, DcmItem *dataset, const OFString &sourceFilename, const OFBool abortCheck=OFFalse) |
see if all the attributes in record match the values in dataset and warn if not | |
OFBool | checkFilesetID (const OFString &filesetID) |
check whether given fileset ID is valid | |
OFBool | checkExists (DcmItem *dataset, const DcmTagKey &key, const char *filename=NULL) |
check whether given tag exists in the DICOM dataset | |
OFBool | checkExistsWithValue (DcmItem *dataset, const DcmTagKey &key, const char *filename=NULL) |
check whether given tag exists with a value in the DICOM dataset | |
OFBool | checkExistsWithStringValue (DcmItem *dataset, const DcmTagKey &key, const OFString &value, const char *filename=NULL) |
check whether given tag exists in the DICOM dataset and has the expected string value | |
OFBool | checkExistsWithIntegerValue (DcmItem *dataset, const DcmTagKey &key, const long value, const char *filename=NULL, const OFBool reject=OFTrue) |
check whether given tag exists in the DICOM dataset and has the expected integer value | |
OFBool | checkExistsWithMinMaxValue (DcmItem *dataset, const DcmTagKey &key, const long min, const long max, const char *filename=NULL, const OFBool reject=OFTrue) |
check whether given tag exists in the DICOM dataset and has an integer value in the expected range | |
OFString & | getStringFromDataset (DcmItem *dataset, const DcmTagKey &key, OFString &result, OFBool searchIntoSub=OFFalse) |
get string value from dataset and report an error (if any) | |
OFString & | getStringFromFile (const char *filename, const DcmTagKey &key, OFString &result, OFBool searchIntoSub=OFFalse) |
get string value from file and report an error (if any) | |
void | copyElement (DcmItem *dataset, const DcmTagKey &key, DcmDirectoryRecord *record, const OFBool optional=OFFalse, const OFBool copyEmpty=OFTrue) |
copy element from dataset to directory record | |
void | copyStringWithDefault (DcmItem *dataset, const DcmTagKey &key, DcmDirectoryRecord *record, const char *defaultValue="", const OFBool printWarning=OFFalse) |
copy optional string value from dataset to directory record | |
OFBool | compareStringAttributes (DcmItem *dataset, DcmTagKey &key, DcmDirectoryRecord *record, const OFString &sourceFilename) |
compare string attribute from dataset and record and report any deviation | |
OFBool | compareSequenceAttributes (DcmItem *dataset, DcmTagKey &key, DcmDirectoryRecord *record, const OFString &sourceFilename) |
compare sequence attribute from dataset and record and report any deviation | |
void | setDefaultValue (DcmDirectoryRecord *record, const DcmTagKey &key, const unsigned long number, const char *prefix=NULL) |
set default value (number or prefix and number) to a given tag | |
Private Member Functions | |
DicomDirInterface (const DicomDirInterface &obj) | |
private undefined copy constructor | |
DicomDirInterface & | operator= (const DicomDirInterface &obj) |
private undefined assignment operator | |
Private Attributes | |
OFConsole * | LogStream |
output stream for error messages, NULL for no messages | |
DcmDicomDir * | DicomDir |
pointer to the current DICOMDIR object | |
DicomDirImagePlugin * | ImagePlugin |
pointer to the optional image plugin (required for icon image support) | |
E_ApplicationProfile | ApplicationProfile |
currently selected application profile | |
OFBool | VerboseMode |
print verbose messages | |
OFBool | BackupMode |
create DICOMDIR backup | |
OFBool | AbortMode |
abort on first inconsistent record | |
OFBool | MapFilenamesMode |
automatically map filenames | |
OFBool | InventMode |
invent missing attributes mode | |
OFBool | InventPatientIDMode |
invent missing patient ID mode | |
OFBool | EncodingCheck |
check pixel encoding | |
OFBool | ResolutionCheck |
check image resolution | |
OFBool | TransferSyntaxCheck |
check transfer syntax | |
OFBool | ConsistencyCheck |
check consistency of newly added record | |
OFBool | IconImageMode |
create icon images | |
OFString | BackupFilename |
name of the DICOMDIR backup file | |
OFBool | BackupCreated |
flag indicating whether a backup has been created | |
unsigned int | IconSize |
size of the optional icon image in pixels | |
OFString | IconPrefix |
filename prefix for the external icon images | |
OFString | DefaultIcon |
filename of the default icon (if any) | |
OFBool | JPEGSupport |
flag indicating whether JPEG compression is supported | |
OFBool | RLESupport |
flag indicating whether RLE compression is supported | |
unsigned long | AutoPatientNumber |
current patient number used to invent missing attribute values | |
unsigned long | AutoStudyNumber |
current study number used to invent missing attribute values | |
unsigned long | AutoSeriesNumber |
current series number used to invent missing attribute values | |
unsigned long | AutoInstanceNumber |
current instance number used to invent missing attribute values | |
unsigned long | AutoOverlayNumber |
current overlay number used to invent missing attribute values | |
unsigned long | AutoLutNumber |
current LUT number used to invent missing attribute values | |
unsigned long | AutoCurveNumber |
current curve number used to invent missing attribute values |
Definition at line 113 of file dcddirif.h.
|
list of supported media storage application profiles
Definition at line 120 of file dcddirif.h. |
|
constructor (default). No DICOMDIR object is created by default (see methods createNewDicomDir and appendToDicomDir). |
|
destructor (virtual). Free all memory allocated by this class. |
|
get current status of the "abort on first error" mode. See enableAbortMode() for more details.
Definition at line 319 of file dcddirif.h. References AbortMode. |
|
add specified DICOM file to the current DICOMDIR. This method loads the given file, checks whether it conforms to the current application profile and finally adds it to the DICOMDIR (in case of conformance).
|
|
add icon image sequence to DICOMDIR record. If the icon image cannot be created from the DICOM dataset and there is no PGM file specified (neither for the particular image not a default one) a black image is used instead.
|
|
add pluggable image support. NB: This plugin is required to create icon images from DICOM files!
|
|
add child record to a given parent record. A new record is only added if it does not already exist.
|
|
create a DICOMDIR object based on an existing DICOMDIR file. This function can be used to append new entries to an existing DICOMDIR file. If the backup mode (see 'enableBackupMode') is enabled a backup copy ('filename' + ".BAK") is created from the existing file and automatically deleted after the new file has been written without any errors.
|
|
get current status of the "create backup" mode. See enableBackupMode() for more details.
Definition at line 364 of file dcddirif.h. References BackupMode. |
|
create new curve record and copy required values from dataset
|
|
create new encap doc record and copy required values from dataset
|
|
create new fiducial record and copy required values from dataset
|
|
create new hanging protocol record and copy required values from dataset
|
|
create new image record and copy required values from dataset
|
|
create new key object doc record and copy required values from dataset
|
|
create new modality LUT record and copy required values from dataset
|
|
create new overlay record and copy required values from dataset
|
|
create new patient record and copy required values from dataset
|
|
create new presentation state record and copy required values from dataset
|
|
create new raw data record and copy required values from dataset
|
|
create new registration record and copy required values from dataset
|
|
create new RT dose record and copy required values from dataset
|
|
create new RT plan record and copy required values from dataset
|
|
create new RT structure set record and copy required values from dataset
|
|
create new RT treatment record and copy required values from dataset
|
|
create new series record and copy required values from dataset
|
|
create new spectroscopy record and copy required values from dataset
|
|
create new stored print record and copy required values from dataset
|
|
create new structure reporting record and copy required values from dataset
|
|
create new study record and copy required values from dataset
|
|
create new value map record and copy required values from dataset
|
|
create new VOI LUT record and copy required values from dataset
|
|
create new waveform record and copy required values from dataset
|
|
check attributes for compliance with Basic Cardiac application profile
|
|
check attributes for compliance with CT and MR application profile
|
|
check attributes for compliance with dental radiograph application profile
|
|
check whether specified DICOM file is suitable to be included into the DICOMDIR. This method loads the given file and checks whether it conforms to the current application profile. Since this check is also performed by addDicomFile() there is usually no need to call this method directly.
|
|
check whether given tag exists in the DICOM dataset
|
|
check whether given tag exists in the DICOM dataset and has the expected integer value
|
|
check whether given tag exists in the DICOM dataset and has an integer value in the expected range
|
|
check whether given tag exists in the DICOM dataset and has the expected string value
|
|
check whether given tag exists with a value in the DICOM dataset
|
|
check whether given fileset ID is valid
|
|
check attributes for comliance with current application profile
|
|
check SOP class and transfer syntax for compliance with current profile
|
|
check attributes for compliance with Ultrasound application profiles
|
|
check attributes for compliance with X-ray Angiography application profile
|
|
reset the object to its initial state. That means e.g. free memory. |
|
compare sequence attribute from dataset and record and report any deviation
|
|
compare string attribute from dataset and record and report any deviation
|
|
get current status of the "consistency check" mode. See enableConsistencyCheck() for more details.
Definition at line 400 of file dcddirif.h. References ConsistencyCheck. |
|
copy element from dataset to directory record
|
|
copy contents of specified file
|
|
copy optional string value from dataset to directory record
|
|
create backup of a given file
|
|
create a new DICOMDIR object. This function replaces any previously existing DICOMDIR file with the specified 'filename'. If the backup mode (see 'enableBackupMode') is enabled a backup copy ('filename' + ".BAK") is created from the existing file and automatically deleted after the new file has been written without any errors.
|
|
disable/enable the "create backup file" mode. If this mode is disabled no backup file of an existing DICOMDIR is created. However, when appending new files to an existing DICOMDIR a _temporary_ backup file "<dicomdir>.$$$" is always created. Default: on, create a backup file "<dicomdir>.BAK"
|
|
disable/enable the "consistency check". If this mode is disabled the consistency of newly added records with already existing ones is not checked (see 'warnAboutInconsistentAttributes' for details). Default: on, perform consistency check
|
|
disable/enable the "pixel encoding check". If this mode is disabled the pixel encoding is not check for compliance with the selected application profile. Please use this switch with care since the resulting DICOMDIR will probably violate the rules for the selected application profile. Default: on, check pixel encoding (bits allocated/stored, high bit)
|
|
disable/enable the "spatial resolution check". If this mode is disabled the spatial resolution is not check for compliance with the selected application profile. Please use this switch with care since the resulting DICOMDIR will probably violate the rules for the selected application profile. Default: on, check spatial resolution
|
|
disable/enable the "transfer syntax check". If this mode is disabled the transfer syntax is not check for compliance with the selected application profile. Please use this switch with care since the resulting DICOMDIR will probably violate the rules for the selected application profile. Default: on, check transfer syntax
|
|
enable/disable the "abort on first error" mode. If the mode is enabled addDicomFile() reports an error message and returns with an error status code if something went wrong. Default: off, do not abort
|
|
enable/disable the "create icon images" mode. If the mode is enabled icon images are created for each IMAGE record. Please note that particular application profiles (e.g. Basic Cardiac) require an icon images to be present. Therefore, this mode does not affect the icon images creation of such profiles. Default: off, do not create (optional) icon images
|
|
enable/disable the "invent missing values" mode. If the mode is enabled required DICOMDIR attributes (type 1) are invented when missing in the DICOM file. Default: off, do not invent attribute values
|
|
enable/disable the "invent new patient ID" mode. If the mode is enabled a new PatientID is invented in case of inconsistent PatientsName attributes, i.e. when different patients share the same ID. Default: off, do not invent new patient ID
|
|
enable/disable the "map filenames" mode. If the mode is enabled filenames are automatically mapped to DICOM format (convert lower case to upper case characters and remove trailing period). Default: off, do not map filenames
|
|
enable/disable the verbose mode. If the mode is enabled messages like "creating DICOMDIR file ..." or "adding file ..." are reported to the log stream (see setLogStream). Default: off, no messages
|
|
get current status of the "pixel encoding check" mode. See disableEncodingCheck() for more details.
Definition at line 373 of file dcddirif.h. References EncodingCheck. |
|
search for a given DICOMDIR record
|
|
create icon image from DICOM dataset. Please note that the memory buffer has to be allocated by the caller.
|
|
create icon image from given PGM (portable gray map) file. Please note that only grayscale images in binary format are currently supported (magic word "P5"). Memory has to be allocated by the caller.
|
|
get name/identifier associated with the given application profile
|
|
get string value from dataset and report an error (if any)
|
|
get string value from file and report an error (if any)
|
|
get current status of the "create icon images" mode. See enableIconImageMode() for more details.
Definition at line 355 of file dcddirif.h. References IconImageMode. |
|
invent missing type 1 attributes for all child records (from patient level)
|
|
invent missing type 1 attributes for all child records (from instance level)
|
|
invent missing type 1 attributes for all child records (from series level)
|
|
invent missing type 1 attributes for all child records (from study level)
|
|
get current status of the "invent missing values" mode. See enableInventMode() for more details.
Definition at line 337 of file dcddirif.h. References InventMode. |
|
get current status of the "invent missing patient ID" mode. See enableInventPatientIDMode() for more details.
Definition at line 346 of file dcddirif.h. References InventPatientIDMode. |
|
check whether given charset identifier is valid. Valid character sets are (see DICOM PS3.3 for details): ISO_IR 100, ISO_IR 101, ISO_IR 109, ISO_IR 110, ISO_IR 144, ISO_IR 127, ISO_IR 126, ISO_IR 138, ISO_IR 148, ISO_IR 166, ISO_IR 13, ISO_IR 192.
|
|
check whether current DICOMDIR is valid. That means e.g. that it can be written to a file.
|
|
check whether specified filename is valid. i.e. conforms to the DICOM standard requirements (length, number of component and proper characters). This function is called automatically for the following methods: checkDicomFile(), addDicomFile() and setFilesetDescriptor(). So usually there's no need to call it manually (especially not in addition to the above mentioned methods).
|
|
load and check DICOM file regarding the current application profile
|
|
get current status of the "map filenames" mode. See enableMapFilenamesMode() for more details.
Definition at line 328 of file dcddirif.h. References MapFilenamesMode. |
|
print an error message that something went wrong with an attribute. The output format is: "Error: <error.text()>: [cannot <operation> ]<key.tagName()> <key>"
|
|
print an error message on the log stream (stderr). The prefix "Error: " is printed automatically.
|
|
print the given error status to the log stream (stderr). The output format is: "Error: <error.text()>: [<operation> ][file: <filename>]"
|
|
print a message on the log stream (stdout)
|
|
print an error message that something went wrong with a given record. The output format is: "Error: <error.text()>: [cannot <operation> ]<recordType> directory record"
|
|
print an error message that a required attribute is missing/empty. The output format is: "Error: <error.text()>: required attribute <key.tagName()> <key> {empty|missing}[ in file: <filename>]"
|
|
print a message that the value of a given tag is unexpected. The output format is: "{Error|Warning}: attribute <key.tagName()> <key> has other value than expected[ in file: <filename>]"
|
|
print a warning message on the log stream (stderr). The prefix "Warning: " is printed automatically.
|
|
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.
|
|
get current status of the "spatial resolution check" mode. See disableResolutionCheck() for more details.
Definition at line 382 of file dcddirif.h. References ResolutionCheck. |
|
select given application profile
|
|
set filename of default icon image. For cases that the icon image cannot be created (neither from PGM nor from DICOM file, respectively) a default icon (8 bit binary PGM) can be specified. If this image also fails to load a black icon (filled with zeros) is used.
|
|
set default value (number or prefix and number) to a given tag
|
|
set the fileset descriptor file ID and character set. Prior to any internal modification both 'filename' and 'charset' are checked using the above checking routines. Existence of 'filename' is not checked. NB: Requires a DICOMDIR to exist (see createNewDicomDir and appendToDicomDir).
|
|
set filename prefix for alternative icon images. If non-empty the filename prefix is used to create the icon image from an externally stored PGM (portable gray map, 8 bit binary) file instead of the DICOM image file. The PGM filename is: 'prefix' + 'dicom_filename'. The image does not need to have the correct size as it is scaled automatically.
|
|
set preferred size of the icon images. NB: some application profiles require a particicular icon size. In those cases this manual setting is implicitly ignored.
|
|
set the log stream. The log stream is used to report any warnings, debug and error messages.
|
|
get current status of the "transfer syntax check" mode. See disableTransferSyntaxCheck() for more details.
Definition at line 391 of file dcddirif.h. References TransferSyntaxCheck. |
|
get current status of the verbose mode
Definition at line 310 of file dcddirif.h. References VerboseMode. |
|
see if all the attributes in record match the values in dataset and warn if not
|
|
write the current DICOMDIR object to file. NB: The filename has already been specified for the object creation (see above).
|