DCMTK Version 3.6.8
OFFIS DICOM Toolkit
|
img2dcm output plugin interface serving as a base class for specific output plugins More...
Public Member Functions | |
I2DOutputPlug () | |
Constructor, initializes member variables. | |
virtual | ~I2DOutputPlug () |
Destructor. | |
virtual OFString | ident ()=0 |
Virtual function that returns a short name of the plugin. More... | |
virtual void | supportedSOPClassUIDs (OFList< OFString > &suppSOPs)=0 |
Virtual function that returns the Storage SOP class UID, the plugin writes. More... | |
virtual OFCondition | convert (DcmDataset &dataset) const =0 |
Outputs SOP class specific information into dataset. More... | |
virtual OFString | isValid (DcmDataset &dataset) const =0 |
Do some completeness / validity checks. More... | |
virtual OFBool | supportsMultiframe () const =0 |
check if the output format supported by this plugin can write multi-frame images. More... | |
virtual OFCondition | insertMultiFrameAttributes (DcmDataset *targetDataset, size_t numberOfFrames) const =0 |
Add multiframe specific attributes. More... | |
virtual void | setValidityChecking (OFBool doChecks, OFBool insertMissingType2=OFTrue, OFBool inventMissingType1=OFTrue) |
Enable/Disable basic validity checks for output dataset. More... | |
Protected Member Functions | |
virtual OFString | checkType1Attrib (const DcmTagKey &key, DcmDataset *targetDset) const |
Checks whether a given tag exists in a dataset and is non-empty, otherwise returns an error string. More... | |
virtual OFString | checkAndInventType1Attrib (const DcmTagKey &key, DcmDataset *targetDset, const OFString &defaultValue="") const |
Checks whether a given tag exists in a dataset and provides a non-empty value. More... | |
virtual OFString | checkAndInventType1CodeSQ (const DcmTagKey &key, DcmDataset *targetDset, const OFString &codeValue, const OFString &codeMeaning, const OFString &codingSchemeDesignator) const |
Checks whether a given code sequence exists in a dataset and contains an item with the required attributes. More... | |
virtual OFString | checkAndInventType2Attrib (const DcmTagKey &key, DcmDataset *targetDset, const OFString &defaultValue="") const |
Checks whether a given tag exists in a dataset (can be empty) If not, the tag is inserted (if enabled) with empty value. More... | |
Protected Attributes | |
OFBool | m_doAttribChecking |
if enabled, some simple attribute checking is performed default: enabled (OFTrue) | |
OFBool | m_inventMissingType2Attribs |
if enabled, missing type 2 attributes in the dataset are added automatically. More... | |
OFBool | m_inventMissingType1Attribs |
if enbled, missing type 1 attributes are inserted and filled with a predefined value. More... | |
img2dcm output plugin interface serving as a base class for specific output plugins
|
protectedvirtual |
Checks whether a given tag exists in a dataset and provides a non-empty value.
If not, the tag is inserted (if enabled) and a default value is inserted.
key | - [in] The tag to be checked/inserted |
targetDset | - [in/out] The dataset to search (and insert) in |
defaultValue | - [in] The default value to set |
|
protectedvirtual |
Checks whether a given code sequence exists in a dataset and contains an item with the required attributes.
If not, the sequence is inserted (if enabled) and default values are inserted.
key | - [in] The code sequence tag to be checked/inserted |
targetDset | - [in/out] The dataset to search (and insert) in |
codeValue | - [in] Code Value to be used |
codeMeaning | - [in] Code Meaning to be used |
codingSchemeDesignator | - [in] Coding Scheme Designator to be used |
|
protectedvirtual |
Checks whether a given tag exists in a dataset (can be empty) If not, the tag is inserted (if enabled) with empty value.
key | - [in] The tag to be checked/inserted |
targetDset | - [in/out] The dataset to search (and insert) in |
defaultValue | - [in] The default value to set |
|
protectedvirtual |
Checks whether a given tag exists in a dataset and is non-empty, otherwise returns an error string.
key | - [in] The tag to be checked/inserted |
targetDset | - [in/out] The dataset to search (and insert) in |
|
pure virtual |
Outputs SOP class specific information into dataset.
dataset | - [in/out] Dataset to write to |
Implemented in I2DOutputPlugNewSC, I2DOutputPlugOphthalmicPhotography, I2DOutputPlugSC, and I2DOutputPlugVLP.
|
pure virtual |
Virtual function that returns a short name of the plugin.
Implemented in I2DOutputPlugNewSC, I2DOutputPlugOphthalmicPhotography, I2DOutputPlugSC, and I2DOutputPlugVLP.
|
pure virtual |
Add multiframe specific attributes.
targetDataset | pointer to DICOM dataset, must not be NULL |
numberOfFrames | number of frames in this dataset |
Implemented in I2DOutputPlugNewSC, I2DOutputPlugOphthalmicPhotography, I2DOutputPlugSC, and I2DOutputPlugVLP.
|
pure virtual |
Do some completeness / validity checks.
Should be called when dataset is completed and is about to be saved.
dataset | - [in] The dataset to check |
Implemented in I2DOutputPlugNewSC, I2DOutputPlugOphthalmicPhotography, I2DOutputPlugSC, and I2DOutputPlugVLP.
|
virtual |
Enable/Disable basic validity checks for output dataset.
doChecks | - [in] OFTrue enables checking, OFFalse turns it off. |
insertMissingType2 | - [in] If true (default), missing type 2 attributes are inserted automatically |
inventMissingType1 | - [in] If true (default), missing type 1 attributes are inserted automatically with a predefined value (if possible). An existing empty type 1 attribute is assigned a value, too. |
Virtual function that returns the Storage SOP class UID, the plugin writes.
suppSOPs | - [out] List containing supported output SOP classes |
Implemented in I2DOutputPlugNewSC, I2DOutputPlugOphthalmicPhotography, I2DOutputPlugSC, and I2DOutputPlugVLP.
|
pure virtual |
check if the output format supported by this plugin can write multi-frame images.
Implemented in I2DOutputPlugNewSC, I2DOutputPlugOphthalmicPhotography, I2DOutputPlugSC, and I2DOutputPlugVLP.
|
protected |
if enbled, missing type 1 attributes are inserted and filled with a predefined value.
Default: disabled (OFFalse)
|
protected |
if enabled, missing type 2 attributes in the dataset are added automatically.
default: enabled (OFTrue)